I have the following dataset in Oracle:
c1 c2 c3 1A2 cat black 1G2 dog red B11 frog green 1G2 girl red
Trying to get the following result. Basically I am trying to get rows with duplicate c1 first.
c1 c2 c3 1G2 dog red 1G2 girl red B11 frog green 1A2 cat black
It starts with choosing c1 from the group t1 in order of c1 according to the count (*) desc, but not how to continue.
source share