I’m sure this is simple, please forgive me if so,
I would like to know how to check if the first 5 letters of a column value (eg. name1) are equal to the first five letters of another column value eg. (name2)
I’m sure something simple like
SELECT * FROM table1
WHERE name1*first 5* = name2*first 5*
Thank
You
T-SQL:
but ANSI form is:
For PostgreSQL, use the ANSI form: http://www.postgresql.org/docs/current/static/functions-string.html