Oracle SQL weisen jeder Gruppierung eindeutige Nummer zu

SELECT  t.*, DENSE_RANK() OVER (ORDER BY department desc, country desc) AS grp
FROM    mytable t
Trained Tuna