I have a table that contains a list of the starting letters in a post code e.g. LS for Leeds and SO for Southampton.
I want to match these against a user entered full postcode e.g. LS19 1AB.
I've looked into using LIKE and some regexp stuff in my query but I'm struggling to find a way to do this the right way round.
Any ideas?