
September 8th, 2003, 11:09 PM
|
 |
SQL Consultant
|
|
Join Date: Feb 2003
Location: Toronto Canada
|
|
not sure which field you want the top 5 of, whether asc or desc, and which final order you want...
... but you should be able to figure it out from this:
Code:
select employee
, post
, rank
, date
, salary
from (
select top 5
employee
, post
, rank
, date
, salary
from sales
where rank <> 0
and year=2002
order
by rank desc
) as derivedtable
order
by salary desc
rudy
http://r937.com/
|