I have a table TABLE1 (PARENT TABLE) with columns
StaffID (PK)
Name
CategoryID (FK)
I also have another related table TABLE2 (RELATED TABLE) with columns
LeaveID (PK)
StaffId (FK)
StartDate
What i want to do is write a T-SQL query to update StartDate column of all rows in TABLE2 whose CategoryID in TABLE1 = '3'
TABLE2 is related to TABLE1 through the StaffID foreign key column