Skip to content
Advertisement

diffrent serial no for each ID in MSSQL

I have a table where I Have 2 ids table is like

I want Output as below table is like

Like based on date serial no should come for each ID numbering should start from the latest date Kindly Suggest something thanks

Advertisement

Answer

You can try using row_number()

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