I have one obviously simple problem, but cannot find good solution, so I would appreciate community help.
Let’s say that my table has three columns: DealID, TransID and Number. And let’s say that I have 4 rows, value for DealID is same in all 4 rows, TransID has different value in each row (and data is ordered ascending by this column) and Number has some value in first row and NULLs in all other rows.
My simple question is: For exact Trans_Id, how to determine in sproc for all Trans_Id values greater than current, are all values for Number NULLs? I.e. I want to know is there any Number value that is different from NULL for any other Trans_Id that is greater than current Trans_Id value.
TnX in advance!
Nemanja
How’s this: