Learn VisualLearn SQL

SELECT Chooses the Columns

SELECT chooses which columns come out of a query. SELECT id, name FROM customers returns just id and name, for every row in customers. SELECT * means every column. Projecting columns never changes how many rows you get.

GOAL

Predict which columns a SELECT list produces, and that the row count is unchanged.

SELECT id, name FROM customers returns how many columns?