How to select all rows except those where I get an error message that causes CONVERTin one of the columns?
For example, I do this:
SELECT rowid
FROM batchinfo
WHERE CONVERT(DATE, reporttime, 101) between '2010-07-01' and '2010-07-31';
And I get errors for some values. I have two questions:
- How to skip error lines?
- How to get only error strings?
source
share