Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

oracle sql assign unique number to each grouping

SELECT  t.*, DENSE_RANK() OVER (ORDER BY department desc, country desc) AS grp
FROM    mytable t
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #oracle #sql #assign #unique #number #grouping
ADD COMMENT
Topic
Name
5+6 =