Home > database >  In the SAS proc SQL statement can take a few rows of data, using limit group by not to heavy role?
In the SAS proc SQL statement can take a few rows of data, using limit group by not to heavy role?

Time:12-31


My statement is:
Proc SQL;
The create table temp as select distinct date from temp. The activity group by the date the order by the date desc limit 5; [I'm here to limit not (0, 5))
quit;
Proc print data=https://bbs.csdn.net/topics/temp;
run;

The output is:
Order is ok, but the date is still repeat, also could not choose the first five lines, to ask you a great god, and what reason is this?

CodePudding user response:

Can also is distinct and group by
  • Related