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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

returning one of many

Status
Not open for further replies.

misterhux

Programmer
Aug 27, 2003
36
US
I have a table with lots of recurring dates in it.. i.e.
8/23/03
8/24/03
8/23/03
8/25/03
8/23/03
8/25/03... etc.

I would like to return from a select statement only one date each.
Date
----
8/23/03
8/24/03
8/25/03

instead right now I get all the dates... is there a way to filter out dates that already have appeared?
thanks in advance.
 
Code:
SELECT DISTINCT [date]
FROM tbl
ORDER BY [date]

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top