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 > Informix > Sql syntax for yesterday's business date?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-09, 14:37
Beebo Beebo is offline
Registered User
 
Join Date: May 2009
Posts: 19
Sql syntax for yesterday's business date?

Do you guys know what the syntax would be for getting yesterday's business date?

I think there is a weekday function.....I was thinking something to the effect of WEEKDAY(TODAY)-1

I need to create a parameter for yesterday's business date. Although, the syntax above returns no results.

Last edited by Beebo; 06-03-09 at 18:37.
Reply With Quote
  #2 (permalink)  
Old 06-04-09, 01:27
Patrick Kong Patrick Kong is offline
Registered User
 
Join Date: Jul 2008
Posts: 8
try: weekday(today - 1 units day)
Reply With Quote
  #3 (permalink)  
Old 06-04-09, 17:10
Beebo Beebo is offline
Registered User
 
Join Date: May 2009
Posts: 19
Patrick, I was not able to pull back any results with that syntax.
Reply With Quote
  #4 (permalink)  
Old 06-04-09, 22:50
Patrick Kong Patrick Kong is offline
Registered User
 
Join Date: Jul 2008
Posts: 8
select weekday(today - 1 units day) from systables where tabid = 1
should returns in dbaccess.
Reply With Quote
  #5 (permalink)  
Old 06-05-09, 12:05
skisalomon77 skisalomon77 is offline
Registered User
 
Join Date: May 2008
Posts: 16
SELECT * FROM database.table WHERE column = today -1
Reply With Quote
Reply

Thread Tools
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