Hi
I would like to return X number of rows from a query and sequentially number one of the fields regardless of matching the Where clause.
ie: I would like this to return 10 records (with the field Nbr numbered sequentially) even if no data matches "Price <= 10":
Select Nbr, Type, Price
From Prod
Where Price <= 10
Group By Nbr
Order BY Nbr
Thanks in advance
I know I've done this before in stored procs but I can't remember right now where to find them (I'm not doing this in a stored proc anyway).
I would like to return X number of rows from a query and sequentially number one of the fields regardless of matching the Where clause.
ie: I would like this to return 10 records (with the field Nbr numbered sequentially) even if no data matches "Price <= 10":
Select Nbr, Type, Price
From Prod
Where Price <= 10
Group By Nbr
Order BY Nbr
Thanks in advance
I know I've done this before in stored procs but I can't remember right now where to find them (I'm not doing this in a stored proc anyway).