E.g:
with the select query I got below result:
columnA columnB
type1 typea
type2 typea
type3 typeb
type4 typec
type5 typed
type6 typed
type7 typed
with the DISTINCT I only got the distinct result,but I also want to get the total number of each distinct.
and now I want to get the total number of
typea,typeb,typec and typed.
Just like:
columnB total
typea 2
typeb 1
typec 1
typed 3
Thank you very much!!