So I have a table with an int valued column, which has values between 0 and 43 (both included)
I would like a query that returns the min value of the range [0,44) which is not in the table.
For example, if the table contains: 3,5, 14. The query should return 0 if the table contains: 0,1, 14. The query should return 2 if the table contains: 0,3, 14. The query should return 1
if the table contains all values, the query should return empty.
how can I achieve that?