My SQL query contains a WHERE similar to this:
WHERE name1 in ('Emily', 'Jack', 'James', 'Chloe') OR name2 in ('Emily', 'Jack', 'James', 'Chloe')
Note that the same list appears twice, which is pretty unsatisfactory (and my real list is actually longer).
What would be the best way to write this query?
source share