easy5 pts · first answer countssqljoins
Rows returned by a LEFT JOIN
How many rows does this query return?
-- users: (1, 'Ana'), (2, 'Bo'), (3, 'Cy') -- orders: (10, user_id = 1), (11, user_id = 1), (12, user_id = 3) SELECT u.name, o.id FROM users u LEFT JOIN orders o ON o.user_id = u.id;
Discussion 0
Join free to post in the discussion.
Related questions
- Stopping SQL injectionBackend Developer
- Purpose of a database indexBackend Developer
- What a foreign key enforcesBackend Developer
- Atomicity in a money transferBackend Developer
- COUNT and AVG with NULLsBackend Developer
- Filtering grouped resultsBackend Developer
- Duplicate emails despite a checkBackend Developer
- What EXPLAIN tells youBackend Developer