How do you get the UNION of these two queries:
SELECT dom,sub FROM table WHERE table.dom = X OR table.sub = X
SELECT dom,sub FROM table WHERE table.dom = Y OR table.sub = Y
dom and sub are integers, both queries return a set of integers, how do you then get the union of these two sets??
Any assistance appreciated…
You have got an answer using UNION, but why not just
or
(assuming you are indeed talking about the same table in both queries)?