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...