Hi, I want to find the SQL statement that gets the next unused number within that category.
Simplified Table:
Table name: MyUnit.
Attributes:
-UnitNo
-CategoryNo
Let's assume the statement
SELECT UnitNo FROM MyUnit WHERE (CategoryNo=@Category)
returns the set {1,2,3,4,5,7,8,10,11,12} if...