Table Aliases
Short aliases make joins easier to read. Use them for every table in a join.
Example
SELECT s.name, c.title FROM students s, enrolments e, courses c
WHERE s.id = e.student_id AND c.id = e.course_id
ORDER BY s.name LIMIT 3;Result
name | title Ada | Intro to HTML Ada | JavaScript Amina | Python
Exercise
Alias a table.
FROM students s
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.