I'm running a series of SQL queries to find data that needs cleaning up. One of them I want to do is look for:
- 2 or more uppercase letters in a row
- starting with a lowercase letter
- space then a lowercase letter
For example my name should be "John Doe". I would want it to find "JOhn Doe" or "JOHN DOE" or "John doe", but I would not want it to find "John Doe" since that is formatted correctly.
I am using SQL Server 2008.