IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

My requirement is to fire query on table and fetch data wher


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhamarekm

New User


Joined: 20 Sep 2010
Posts: 9
Location: Pune

PostPosted: Mon Sep 20, 2010 5:40 pm
Reply with quote

Hi All,

My requirement is to fire query on table and fetch data where condition date = current date – 3 days. I wan result using query only.
Does anyone let me know is there any in build function like Current date in DB2?

Thank you on advance.
Kiran
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Sep 20, 2010 5:44 pm
Reply with quote

bhamarekm wrote:
Hi All,

My requirement is to fire query on table and fetch data where condition date = current date – 3 days. I wan result using query only.
Does anyone let me know is there any in build function like Current date in DB2?

Thank you on advance.
Kiran
RTFM
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10902
Location: italy

PostPosted: Mon Sep 20, 2010 5:48 pm
Reply with quote

a google search DB2 CURRENT DATE returns 209000 hits
( the number might change depending on the google/browser settings )

like for example
www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html

anyway the bible is the manual, for which You can click the link at the top of the page
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Mon Sep 20, 2010 5:49 pm
Reply with quote

Please have a look here, if it helps you: www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html
Back to top
View user's profile Send private message
bhamarekm

New User


Joined: 20 Sep 2010
Posts: 9
Location: Pune

PostPosted: Mon Sep 20, 2010 5:54 pm
Reply with quote

Yes this help me icon_smile.gif thank for your valuable inputs Anuj and enrico .
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Mon Sep 20, 2010 5:57 pm
Reply with quote

Good Luck.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts Alternate key data extracttion COBOL Programming 13
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
Search our Forums:


Back to Top