Can any body send me a query for the below problem:
I would like to get a number that is next in the series.
Consider a Table Tbl1 having a integer type column having the following data
1
2
3
4
999
Now i want to get a number that is the next missing number in the series. In the above example i shold get answer = 5 bcz in the series 5 is the next number.
CAn somebody tell me a select statement that gets the above mentioned result.
I would like to get a number that is next in the series.
Consider a Table Tbl1 having a integer type column having the following data
1
2
3
4
999
Now i want to get a number that is the next missing number in the series. In the above example i shold get answer = 5 bcz in the series 5 is the next number.
CAn somebody tell me a select statement that gets the above mentioned result.