Largest Value
SELECT a.StoreId FROM Stores a WHERE (n-1) = (select count(*) from Stores b where b.StoreId > a.StoreId)
Smallest Value
SELECT a.StoreId FROM Stores a WHERE (n-1) = (select count(*) from Stores b where b.StoreId < a.StoreId)
Monday, July 13, 2009
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment