Hi,
I'd like to find first "gap" in a counter column in SQL table. For example, if there are values 1,2,4 and 5 I'd like to find out 3.
I can of course get the values in order and go through it manually but I'd like to know if there would be a way to do it in SQL.
In addition, it should be quite standard SQL, working with different DBMSs.