If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > displaying yesterday's date in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-07, 09:44
mandla.srinivas mandla.srinivas is offline
Registered User
 
Join Date: Jan 2007
Posts: 6
Arrow displaying yesterday's date in DB2

Hi,
I am writing a sql ovrride in informatica tool.
I need to write a query which extracts the data of today and yesterday's data from a table.

select today,today-1 from tfct_cllg_inmcg;

in clear terms actually I require a particular day data and previous day data
like the following query.

select date,date-1 from tfct_cllg_incmg.

Could you please help me in getting the sql query.

you could send me the query to mandla.srinivas@gmail.com

Last edited by mandla.srinivas; 01-05-07 at 09:46. Reason: added mail id
Reply With Quote
  #2 (permalink)  
Old 01-05-07, 10:00
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
values current date

1
----------
01/05/2007

values current date - 1 day

1
----------
01/04/2007
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On