Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Yesterday" in an expression

Status
Not open for further replies.

Whodini

Technical User
Nov 22, 2004
2
US
What date expression would I use to create a SQL query to search a table from "Yesterday"?
 
mp9,

Thank you for your quick response.

I am still having problems.

I tried your suggestion in the following expression:

STOREMST.STORE NOT IN (Select storenum from XBR_STORE where transdate = date()-1; and XBR_STORE.AS_SALES_CT <> 0)

I get an error: 'Date' is not a recognized function name.

What could I be doing wrong?

 
What about this ?
where CLng(transdate) = CLng(Now())-1 and XBR_STORE.AS_SALES_CT <> 0

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top