I suspect the issue is that it is a varchar......thus "BETWEEN" is not
processing the way you would expect a date to be processed

If you think about it......what is between 2 strings......what falls
between "cat" and "dog"? ;-)

Can you change the data type for dateWorked?

Cheers


On Fri, 2011-02-11 at 11:38 -0500, Torrent Girl wrote:

> Hello all.
> 
> This simple query is not retrieving any records in mySQL:
> 
> SELECT * FROM agentdaily where dateWorked BETWEEN '10/01/2010' AND 
> '02/01/2011'
> 
> The data type for dateWorked in varchar.
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/sql/message.cfm/messageid:3379
Subscription: http://www.houseoffusion.com/groups/sql/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/sql/unsubscribe.cfm

Reply via email to