skip to today's puzzle
SQL Sip

A table alias is a short name for a table

When a query uses more than one table, you write the table name in front of a column to say where it comes from. That gets long, so you give the table an alias — a short nickname written right after its name — and use the alias in front of the columns instead.

A tiny example

In plain English: Show me each student's name next to the title of the class they belong to.

SELECT s.name, c.title
FROM students s
JOIN classes c ON c.id = s.class_id;

What comes back

nametitle
AmaraBiology
TheoHistory

The name came from students (s) and the title from classes (c) — the aliases say which table each column is from.

Related SQL lessons

Ready for a break?

Take on today's cozy puzzle. A fresh, bite-sized query waits every morning — no timers, no pressure.

play today's sip