I have a char(8) field which should
really contain a value in a yyyymmdd dateformat.
Given a (hypothetical) table id(int)|datestring(char(8))
I would like to be able to do something like
SELECT id, isValidDate(datestring) FROM my_hypothetical_table
It's important for me that this can be run like so as a query (so I could, for example, SELECT * from othertable INNER JOIN hypothetical_table on hypothetical_table.id = othertable.hypothetical_FK WHERE isValidDate(hypothetical_table.datestring) = 1
). Catching errors doesn't seem viable.
Note that the IsDate() function only works with slash delimited dates, and not yyyymmdd formats.