column1 column2
A 1
A 2
A 3
B 1
C 1
C 2
D 1
I want a query that prints
column1 column2
B 1
D 1
Since B and D occur just once in the table.
I have tried queries like select column1 from table group by column1 having count(column1)=1
but this didn’t work.
2
Answers
Hope this works in your case
Maybe you need in this: