Select with condition of multiple values from column
suggest changeSELECT * FROM Cars WHERE status IN ( 'Waiting', 'Working' )
This is semantically equivalent to
SELECT * FROM Cars WHERE ( status = 'Waiting' OR status = 'Working' )
i.e. value IN ( <value list> ) is a shorthand for disjunction (logical OR).
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents