In essence I have one table with two columns
One Two
-----------
A B
B C
C D
and I want to count the number of A's through D.
Resulting
Letter Count
---------------
A 1
B 2
C 2
D 1
My code now is
Select one, count("") from table
group by one
union
Select two, count("*") from table
group by two
Right now I am getting
Letter Count
---------------
A 1
B 1
B 1
C 1
C 1
D 1
How do I fix it?