I have a table of rows that have a “release_date” column I need to clean up. It’s a varchar column that has data like:
“2012”
“January 10, 2013”
“January 5, 13”
“December 10”
“November 6, 2011 (US)”
Now, the top two samples are okay, but the bottom three are not. I’m trying to figure out a query that will select all rows that don’t have the last four characters of the “release_date” column not matching a properly formatted 4-digit year. Trying to think of a query that can do a 4-character substring of each row to confirm the 4 numeric characters at the end of the string.
All feedback appreciated.
Cheers!
Ryan