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

Querying Informix Database by Date Range

Status
Not open for further replies.

safari7391

Programmer
Apr 29, 2003
33
US
How can I use this statement to query an Informix database from SQL Server Enterprise Manager?

where (row_date BETWEEN { fn NOW() } - 15 AND { fn NOW() } - 10)
 
Hi:

In informix you must use the today keyword. Assuming row_date is a date type:

... where row_date between today - 15 and today -10

Regards,


Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top