Computing.Net > Forums > Programming > Date queries in SQL/Delphi

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Date queries in SQL/Delphi

Reply to Message Icon

Name: d.officer
Date: April 15, 2003 at 14:10:54 Pacific
OS: Windows 98
CPU/Ram: Athlon 1400 / 128
Comment:

Being fairly new to Delphi and SQL, I am having a problem in querying dates within a database - using the form
WHERE table.datefield > 'requireddate'
does not seem to return the right results. I am using Delphi 5, Paradox 7 tables and my date format is dd/mm/yyyy. If it is a problem with the date format, please can you tell me how to change it.

Thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: mark
Date: April 17, 2003 at 02:57:41 Pacific
Reply:

what are the results you are trying to receive

WHERE table.datefield > 'requireddate'

for equal date value you should use = not >

only use ,= if you want the dates before / after date value


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Date queries in SQL/Delphi

Doubt in Sql query building www.computing.net/answers/programming/doubt-in-sql-query-building/17694.html

Duplicate rows in SQL Joins www.computing.net/answers/programming/duplicate-rows-in-sql-joins/12430.html

Help in SQL www.computing.net/answers/programming/help-in-sql/10207.html