DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+6 =
Submit