SQL DISTINCT and Column Aliases Explained Simply
How SQL DISTINCT removes duplicate rows (and why it applies to every selected column), how it treats NULL, COUNT(DISTINCT), and how to use column and table aliases, including why an alias works in ORDER BY but not in WHERE.









