Viewing 3 posts - 1 through 4 (of 4 total)
Thanks, Noel, that nested CASE does exactly what I want, minus the cheese factor of my earlier solution.
--Matt
April 25, 2005 at 1:49 pm
When I try to run that, I get the same error (syntax error converting datetime from character string), yes.
The crappy workaround I've developed is:
SELECT txtDate
FROM Table
WHERE
CASE
WHEN ISDATE(...
April 25, 2005 at 1:45 pm
Ah! Now we're getting somewhere.
Massaging your SQL into:
Select dtValidDates.txtDate from
(SELECT txtDate
FROM Table
WHERE ISDATE( txtDate ) = 1) dtValidDates
WHERE dtValidDates.txtDate BETWEEN '01/01/2003 00:00:00' AND
'04/30/2005 23:59:59'
gives me 1 of the 4...
April 25, 2005 at 1:06 pm
Viewing 3 posts - 1 through 4 (of 4 total)