0
我有一张将被加载到oracle数据库中的表。 我需要删除重复值而不改变数据的顺序。 每组有5个可能的记录。 1.空行需要删除。 2.重复名称需要被删除,所以只出现不同的名称。 3.数据不能重新排序。在SAS中删除重复记录
1 Commingled Data
2 Social Security
3
4
5 SSA 1996
1 Commingled Data
2 Social Security
3
4
5 SSA 1997
1 Commingled Data
2 Social Security
3
4
5 SSA -1998
1 Commingled Data
2 Statistical Administrative
3
4
5 StARS 2000
1 Federal
2 Treasury
3 Internal
4 1099
5 Master File - TY 1997 (1099/IRMF)
1 Federal
2 Treasury
3 Internal
4 1099
5 Master File - TY 1998 (1099/IRMF)
1 State
2 Wage
3 Indiana
4
5 Indiana - 1990Q1-2005Q2
1 Federal
2 Treasury
3 Internal
4 1040
5 TY 2003 (1040/IMF) 1% File
1 Federal
2 Treasury
3 Internal
4 1040
5 TY 2003 (1040/IMF) Cycles 1-39
什么是“重复行”?你的输出是什么?你在想什么? – Joe
可重复的行通常是第1行,第1行是混合数据,联邦也重复第2行也重复,有时第3行也是..我试图first.last函数,也coalescec和selfjoin并与偏移量。 – user601828
你可以:第一步=>做一个选择不同的只选择不同的变量,然后第二步=>删除一个行,如果所有的变量都失踪? –