We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Namespacing on Tables

When working with multiple tables, you can specify which table a field belongs to using a .. For example:

table_name.column_name

SELECT students.name, classes.name
FROM students
INNER JOIN classes ON classes.class_id = students.class_id;

The above query returns the name field from the students table and the name field from the classes table.

Assignment

Adjust the query to: