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)
 syntax unique

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2005-03-14 : 03:25:03
I want to select all unique states from zipcodes (zipcodes table has many entries and I basically wnat to get the list of states from it)

when I do select unique statecode from zipcodes

I get an error. What is the correct syntax?

LarsG
Constraint Violating Yak Guru

284 Posts

Posted - 2005-03-14 : 03:56:03
[code]
select distinct statecode from zipcode
[/code]
Go to Top of Page
   

- Advertisement -