Jump to content

query using BETWEEN on date field not working


jim.davidson

Recommended Posts

I'm trying to query a table that has a date field lableld created_sort.

 

Here's the query

SELECT needs_id, email_id, status, name, email FROM needs WHERE created_sort BETWEEN 2010-07-01 AND 2010-08-05

 

I know there are two records that fall between those dates but the query comes back empty.  What's wrong with my query?  Any help will be greatly appreciated.  I've been fighting with this for hours.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.