Is there a way, without modifying a table, to find gaps in the primary key... IE... where rows have been deleted, and to select the two rows surrounding it?
So In this table..
I would either get the row results
2, Jim; 4, Suzi
5, Donald; 7, Jeffrey
7, Jeffrey; 10, Zach
or
2. Jim
4. Suzi
5. Donald
7 Jeffrey
10 Zach
Thanks,
Tony
So In this table..
Code:
ID | Name
---------
1 | John
2 | Jim
4 | Suzi
5 | Donald
7 | Jeffrey
10 | Zach
11 | Kimmy
12 | Bobby
I would either get the row results
2, Jim; 4, Suzi
5, Donald; 7, Jeffrey
7, Jeffrey; 10, Zach
or
2. Jim
4. Suzi
5. Donald
7 Jeffrey
10 Zach
Thanks,
Tony