Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-04-16 : 10:10:42
Jack writes "I have a table that contains rates for a service by different service providers. I want to write a query that will return the four lowest rates for a selected service."

Nazim
A custom title

1408 Posts

Posted - 2002-04-16 : 10:20:38
select top 4 servicecharge from
tablename
where service='xxx'
order by servicecharge

HTH

--------------------------------------------------------------
Go to Top of Page
   

- Advertisement -