I have a database table :
srno | passportnumber | flightnumber
I need a SQL query to update the srno such that the srno is same where ever passportnumber is the same.
I mean if passport abc123 and it occurs 4 times in the table then every time its serial number should be the same for all four.
1 Answer