I am a bit stuck with SQL queries.
User should be able to search Postcode, Company name or Location
I have the following tables:
company table
companyid | name | location
1 Shop One New York
2 Shop Two France
postcode_areas table
postcode | companyid
BB1 1
BB3 1
BB1 2
So if user type in BB1, then it should show the result Shop One, and Shop Two.
If user type the name of company or location – it will just search from company table.
Maybe: