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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Ist time query 1

Status
Not open for further replies.

shibuyauk

IS-IT--Management
May 18, 2005
33
GB
Hi, sory if this is a very basic question. I am not a programer/developer by trade, but have found a great need to use SQL reporting services. I simply want to extract all this data on just 1 day, what is wrong with my transact code?

Select *
FROM applyTracking
WHERE (hitDate <= '01-Apr-2005') AND (deal = 'true')

Its a long time since i did any of this, i dont understand why it wont work.
My hitdate table also uses seconds in the field, so when i just use '01-Apr-2005' it only finds records with a date stamp of '01-Apr-2005 00:00:00' no others
iS there a between comand i can put in there? If so what is the syntax

Also it doesnt like AND (deal = 'true') at all, is the syntax wrong there?

Thanks for any help for a N00b!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top