Is there any way this query could be written that doesnt scan thesubquery table twice?
SELECT * FROM my_tableWHERE (one,two) NOT IN (SELECT sub_one, sub_two FROM my_sub_table)AND (two,one) NOT IN (SELECT sub_one, sub_two FROM my_sub_table)