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!

Query Help --- Retrive last 45 days back record anytime.

Status
Not open for further replies.

sd110404

Programmer
Nov 3, 2004
63
US
Hi All,

I need help on this query. Any help will be appreciated.

I have a date field (mm/dd/yyyy format) in Customer table.

I need to retrieve 15 days back customer names

Select customername frm customer where joindate between.....

The query must return All the customer whose joindate is within the last 15 days.

Thanks in advance.
 
Select customername frm customer where joindate between Date()-15 And Date()

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