Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
My requirement is to fire query on table and fetch data wher

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: My requirement is to fire query on table and fetch data wher
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    Post subject: Re: My requirement is to fire query on table and fetch data
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10373
Location: italy

PostPosted: Mon Sep 20, 2010 5:48 pm    Post subject: Reply to: My requirement is to fire query on table and fetch
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
http://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

Senior Member


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

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

Please have a look here, if it helps you: http://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    Post subject:
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

Senior Member


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

PostPosted: Mon Sep 20, 2010 5:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts query to fetch record which has only ... maxsubrat DB2 2 Mon Dec 11, 2017 5:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Native SQL Query kishpra DB2 1 Wed Nov 22, 2017 8:38 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us