Learn with Abdou

Chapter 7 · Concept 4 of 6 · Practice

The staff chart loses its top row

one table, two roles · level 3 of 6

Opening your saved work…

Sign in to save across devices → · Download your guest work before switching accounts.

The staff chart loses its top row · one table, two roles · level 3 of 6

How many rows with INNER?

Level 3: Predict the result · Exercise 1 of 1

Fourteen staff members; one has a NULL supervisor_id. Before you run it, how many rows does an INNER self-join on m.id = e.supervisor_id return?

SELECT COUNT(*) AS rows_returned
FROM staff e
JOIN staff m ON m.id = e.supervisor_id;
The query. Predict before you run it.

Data: Twin Ports Tool Library.

Opens once your prediction is right, or after the worked answer.

Query results

The real result appears here after you run it.

The real result appears here after you run it.

Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.