I have a MySql table, which I want to query for rows in which pairs of columns are in a specific set. For example, say my table looks like this:
<
SELECT * FROM my_table WHERE (f1= 'a' AND f2=30) OR (f1='b' AND f2=20);