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: 10873
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: 6250
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: 6250
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top