DBA > Job Interview Questions > MySQL and SQL

How would you write a query to select all teams

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(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 Job Interview Questions