Możesz zrobić tak: SELECT city FROM user WHERE (firstName, lastName) IN (('a', 'b'), ('c', 'd')); Sqlfiddle .