|
|
Re: [求助]还是数据查找输出问题
Do not look for non-standard solutions for standard questions unless you get a neater one. Keep it simple.
[code:183tos1c]data raw;
input name $ quote_id $ var1 var2 var3 $;
datalines;
AA a000 4 5 A
AA a000 4 5 V
BB b003 2 3 A
BB b003 2 3 A
BB b003 . . V
CC c008 1 1 A
CC c008 1 0 A
CC c008 . 0 V
;
proc sql;
select distinct *,count(*) as dupNum
from raw
group by name,quote_id,var1,var2,var3
;[/code:183tos1c] |
|