我有一个包含200+列的表。我只想在一个变量上选择distinct,但在最终数据集中包含所有200+列。
是否有可以放在select distinct之后的capture all variables语句?
proc sql;
create table test as
select distinct X (keep = _All_)
from source
;quit;
发布于 2019-03-05 08:43:21
不要使用SQL实现这一点。使用PROC排序。
proc sort data=source out=test nodupkey;
by X;
run;
https://stackoverflow.com/questions/54992921
复制相似问题