【发布时间】:2018-08-10 00:57:15
【问题描述】:
例如,如果我有一张像 EmpID , Empname , 国家/地区
输出应该是这样的
EmpId EmpName Country Serial No.
1 ABC India 1
2 BCD India 2
3 CMO India 3
4 DIS China 1
5 FGH China 2
6 FHI Singapore 1
7 XYZ Singapore 2
8 KLM Singapore 3
9 NOP Singapore 4
10 QRS Singapore 5
这里按值分组是国家/地区。
【问题讨论】:
-
到目前为止你尝试了什么????学会提问!!! stackoverflow.com/help/how-to-ask
-
你在找
row_number()