I have a query that I am trying to combine but with different columns. The specifics of this are:
- Same table
- Different Where clause
- Oracle DB
- Ran in DBVisualizer
This is what I was trying to do: it runs but it does not join the two columns. they are being outputted into separate Result tabs in DBVisualizer
Select count (distinct CODE) AS Comp_PCT
from cons.GM
Where POLICY='NR'
And PCT is null
UNION
Select count (distinct CODE) AS Comp_DTY
from cons.GM
Where POLICY='NR'
And DTY is null