I have two columns that I would like to compare: the first column is a residential number that appears in the format of (555) 555-5555, the second column appears in the format of 5555555555.00. I would like to compare the first 6 digits of each number in a third column that displaying TRUE if the first 6 digits match and false if they do not. I have the query done, but converting the columns to be in the same format is killing me. Any help on this?
Share
In MySql, a quick solution would be like this:
Please see this fiddle.