我有一列數據,列名爲(Daily_Mileage)。我有15種不同類型的每日裏程和250行。我希望爲每日15個里程分別計數。我在SAS中使用PROC SQL,它不喜歡Cross join命令。我真的不知道我應該做的,但是這是我開始:SAS Proc SQL計數問題
PROC SQL; select A, B From (select count(Daily_Mileage) as A from Work.full where Daily_Mileage = 'Farm Utility Vehicle (Class 7)') a cross join (select count(Daily_Mileage) as B from Work.full where Daily_Mileage = 'Farm Truck Light (Class 35)') b); QUIT;