StepsEasy
SQL FULL JOIN - Example
Run
Reset
Destroy & Close
← Back to lesson
Code Editor
sql
-- INNER JOIN SELECT orders.id, customers.name, orders.total FROM orders INNER JOIN customers ON orders.customer_id = customers.id; -- LEFT JOIN (all customers, even without orders) SELECT c.name, COUNT(o.id) AS order_count FROM customers c LEFT JOIN orders o ON c.id = o.customer_id GROUP BY c.id, c.name;
Result
Click "Run" to execute the code...
Loading runtime...
Ready
SQL | In-Browser Execution