Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10256
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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us