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!

Problems querying a date field

Status
Not open for further replies.

SelbyGlenn

Technical User
Oct 7, 2002
444
GB
Hi there,

I've only been writing SQL queries for about 2 days now so apologies if this is obviously wrong:


I am trying to query a field that contains dates but nothing is being returned. I was trying:

SELECT * from TABLE where AppDate = '01/09/2005'

Please help!

Thanks,



Glenn
BEng MCSE CCA
 
The ANSI way:
SELECT * from TABLE where AppDate = '2005-09-01'

But the syntax highly depends on which RDBMS you play with ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Excellent! That worked a treat.

Thanks for the quick reply.

Glenn
BEng MCSE CCA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top