mikedaruke
Technical User
Need help with SQL Query!
I have a bunch of dates like this
8/31/2005
9/1/2003
3/15/2001
In my MSQL database I have a date field in this format:
2005-08-31 00:00:05.000
I want to write some kind of query to say something like this:
select Id from table where date in ("8/31/2005', '9/1/2003')
Then it would return
ID, 2005-08-31 00:00:05.000
But it doesnt work with just having 8/31/2005 in the brackets, if I put the exact string 2005-08-31 00:00:05.000 it finds it.
Any help! Thanks
I have a bunch of dates like this
8/31/2005
9/1/2003
3/15/2001
In my MSQL database I have a date field in this format:
2005-08-31 00:00:05.000
I want to write some kind of query to say something like this:
select Id from table where date in ("8/31/2005', '9/1/2003')
Then it would return
ID, 2005-08-31 00:00:05.000
But it doesnt work with just having 8/31/2005 in the brackets, if I put the exact string 2005-08-31 00:00:05.000 it finds it.
Any help! Thanks