Hi there
I am a bit of a novice in this but hope you can help.
I am use SQL 2005 and have a table with 4000 lines in it. One of the columns should be a number count from 1 to 4000.
I would like to know how I could check with some sort of SQL script that there are no gaps within it, and if there are where the gaps are.
I know I could do a count but there are probably duplicates in there that I am not worried about.
Hope you can help.
I am a bit of a novice in this but hope you can help.
I am use SQL 2005 and have a table with 4000 lines in it. One of the columns should be a number count from 1 to 4000.
I would like to know how I could check with some sort of SQL script that there are no gaps within it, and if there are where the gaps are.
I know I could do a count but there are probably duplicates in there that I am not worried about.
Hope you can help.