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

SQL Between Two Dates

Status
Not open for further replies.

Razoe

Technical User
Apr 26, 2011
1
GD
Heyz, i kind of need help with an SQL statement...

In the Table "Invite", there is a Field Called "Invite_Date"

and we suppose to create an SQL query to show all the invitations between 2 dates of our choosing...can anyone help me in writing this SQL?

I know im suppose to use the "Between" statement, but it doesnt seem to be working for me, i know im doing something wrong, but i just dont know what....here is what i tried...


SELECT Members.*, Invite.Invite_Date
FROM Members
WHERE Invite.Invite_Date >= ('2011/04/01', 'yyyy/mm/dd')
AND Invite.Invite_Date <= ('2011/04/30','yyyy/mm/dd');
 
How are joined Members and Invite ?
Anyway, see the JetSQL syntax below:
WHERE Invite.Invite_Date BETWEEN #2011-04-01# And #2011-04-30#

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top