Also called: AS
Example
COUNT(*) AS total names the column, so the code can read it as total.
In code
SELECT COUNT(*) AS total FROM bookings AS b WHERE b.status = 'paid';
Learn more
Related terms
Added 2026-11-30 · Last reviewed 2026-11-30
Alias (AS)A short temporary name for a table or column inside a query.
Also called: AS
COUNT(*) AS total names the column, so the code can read it as total.
SELECT COUNT(*) AS total FROM bookings AS b WHERE b.status = 'paid';
Added 2026-11-30 · Last reviewed 2026-11-30