SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
-- Get city_id for all cities named 'London' SELECT city_id FROM city WHERE city LIKE '%London%'; -- < hereyou can use equal instead like -- get all data from addresses where city_id is London's city_id SELECT * FROM address WHERE city_id IN (SELECT city_id FROM city WHERE city LIKE '%London%'); -- change the above query for retreive only address, postal_code

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear