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
 SQL Server Development (2000)
 Select unique data.

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-09-13 : 09:58:15
Dale Cebula writes "Hi don't know if you help.

I'm returning a list of holiday data based upon certain criteria:

for example:

resort    airport
------    -------
TIGNES    LHR
MERIBEL    LGW
TIGNES    CAR
VAL THORENS    BOH


The problem is I need to return a top ten list of resorts (unique) but because TIGNES has an airport LHR and and airport CAR this is counted as a DISTINCT row.

Is there any way I can apply something like a distinct statement to the data so only the unquie resort is returned as well as the airport data???


Many thanks,

Dale Cebula,
Ski-Holidays.com"
   

- Advertisement -