Skip to content
Advertisement

Update just one of the row that have the same ID SQL Server Query

I have two table. Table1 and Table2 , i want to update Table 2 with Table 1 field, and i want to update just one of the row with same CN number in table2

Advertisement

Answer

Use a join with row_number() to get just one row per id:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement