SAS proc sql returning duplicate values of group by/order by variables
问题 I have some fairly simple SQL that should provide 1 row per quarter per asset1. Instead, I get multiple rows per group by. Below is the SQL, a SAS data step, and some of the output data. The number of duplicate rows (in the below data, 227708) is equal to Num_borrowers, which is the asset1 number of rows. proc sql outobs=max; create table table1 as select case when period_dt ='01DEC2003'd then '2003Q4' when period_dt ='01DEC2004'd then '2004Q4' when period_dt ='01DEC2005'd then '2005Q4' when