I have a table containing user records. One of the table cells contains zipcodes like 77000,77001,77002,77003,77004,77005
I need to create a query to match this user to another record which also has similar cell conataining zipcodes 77005,77006,77007,77008,77009.
If atleast one zipcode matches at least one from table 2, I need to get that record.
How can I do that?
I was thinking of something like
WHERE t1.zip LIKE t2.zip
But this does not look like it would work, especially if each cell contains say 50 zipcodes, would it?