I Have 2 Table
Table1
| column name | type |
|-------------+-------------|
| ID1 | Int |
| Name | NVARCHAR(50)|
Table2
| column name | type |
|-------------+-------------|
| ID1 | Int |
| ID | Int |
| Name | NVARCHAR(50)|
I want to create a relation in Table1.ID1 And Table2.ID1 with TRIGGER For Cascade UPDATE that support the bellow T-Sql:
Update Table1 Set ID1 = ID1 + 1
How To create a trigger to cascade on update where the updated row count is more than 1?
(@@RowCount > 1)