Hi,
I have one table with two columns. S.No and Date. S.No has null values.
| S.No | Date(DD-MM-YYYY) |
| Null | 19-10-1993 |
| Null | 12-03-1995 |
| Null | 15-02-2017 |
| Null | 26-08-2010 |
| Null | 01-06-2016 |
I need to replace these nulls with number in the sequence based on date.
Can you please help on this?
Thanks in advance!!!


Nilesh ShahRank #42 · 34.2K reputationPosted Jun 14, 2017, 7:04 AM EDT
Rajeevkumar15 reputationPosted Jun 14, 2017, 2:37 AM EDT
Rajeevkumar15 reputationPosted Jun 14, 2017, 6:24 AM EDT
Sundaram SubramanianRank #150 · 15.2K reputationPosted Jun 14, 2017, 2:11 AM EDT
ALTER TABLE [yourTable] DROP COLUMN ID ALTER TABLE [yourTable] ADD ID INT IDENTITY(1,1)Code AloneRank #488 · 5.1K reputationPosted Jun 14, 2017, 2:29 AM EDT
Sundaram SubramanianRank #150 · 15.2K reputationPosted Jun 14, 2017, 2:43 AM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Jun 14, 2017, 2:48 AM EDT
Code AloneRank #488 · 5.1K reputationPosted Jun 14, 2017, 4:22 AM EDT