Interview Questions

How would you write a query to select all teams that won either 2, 4, 6 or 8 games?

MySQL and SQL


(Continued from previous question...)

How would you write a query to select all teams that won either 2, 4, 6 or 8 games?

SELECT team_name FROM teams WHERE team_won IN (2, 4, 6, 8)

(Continued on next question...)

Other Interview Questions