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

get data from past 5 days

Status
Not open for further replies.

mistektips

Programmer
Apr 4, 2006
20
0
0
US
Hi,
I have to get data from past 5 days from AS400 table.
I tried using this query:
Code:
SELECT     *
FROM         TESTSQL.C27AUDIT
WHERE     TESTSQL.C27AUDIT.C0027_DATE >= CURRENT (DATE) - 5
But it gives me an error.
Also, I just wanted to clarify that the C0027_DATE field is a numeric field.
Could someone suggest how should I accomplish this task?
Any help will be appreciated.
Thanks in advance.

 
I answered this in thread513-1223347.

Feles mala! Cur cista non uteris? Stramentum novum in ea posui!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top