Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
SELECT c.country, COUNT(customer_id) AS customers FROM customer cus, address a, city ci, country c WHERE cus.address_id = a.address_id AND a.city_id = ci.city_id AND ci.country_id = c.country_id GROUP BY c.country HAVING customers > 30;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear