Create table tbl_students(Studentid int identity(1,1) , Studentname nvarchar(150))
Suppose it contains the following data:-
1 Vivek Johari
2 Chandra Singh
4 Avinash Dubey
7 Sunny Rana
As one can see from the data that some rows are deleted from the table as some studentids are missing.
So write a query which gives the studentid which are deleted from this table.