I have two tables:
regional
imd
The regional contains a location column with information about cities of UK. The imd table contains a column 'Name' which also includes the city names.
I want to join both tables based on the location and Name but in regional table, the location also includes the country name whereas the imd table only contains the city name. I want to join tables based on partial string match I've tried the following code but it is not working.
SELECT *
FROM s.regional, s.imd
WHERE s.regional.location like concat('%',s.imd.Name)