Lynn is absolutely right to convert the date string into the standard, universal format (yyyy-mm-dd) to avoid inconsistencies between locales, then casts it to a date.
Stating what DBMS you use would be helpful.
I'm using MS SQL Server. Here's SQL cod...
Stating what DBMS you use would be helpful.
I'm using MS SQL Server. Here's SQL cod...