PDA

View Full Version : Selecting just one


oracleguy
12-15-2002, 09:18 PM
Okay lets say I have a table organized like this:

Events
Event1
Event1
Event1
Event2
Event2
Event3
Event3
Event4

How can I query the database so that it only returns one of each?

So it would return:
Event1
Event2
Event3
Event4

Spookster
12-15-2002, 11:08 PM
SELECT DISTINCT event FROM tablename;

oracleguy
12-16-2002, 06:59 AM
Thanks :thumbsup: that did it.