Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique Records

Status
Not open for further replies.

sweed

Programmer
Joined
Jan 12, 2001
Messages
3
Location
US
In sybase, what is the SELECT statement to select the unique values of a table. Let's say I have the following sequence in my table:
A
A
A
B
C
B
C
B
B
A

...and I want to just see what unique values are in that table: A,B,and C. What is the select statement in Sybase to do this, I know the one in Oracle, but it does not work in Sybase. Any help would be nice.
 
select distinct
column1
from table


This is identical to Oracle, so either I do not understand the question, or something else is missing in the explanation.

jlipman@netzero.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top