Hello,
Is there a possibility to write one sql querry in sas that will show max of count?
Let's say I have below data, I'm looking for user (USER_ID) with max number of rows and I would like to know this count number
ID_ITEM | ID_USER | DATE_FROM | DATE_TO |
4 | 7 | 13.10.2018 | 25.10.2018 |
6 | 9 | 16.08.2018 | 25.08.2018 |
6 | 3 | 21.07.2018 | 03.08.2018 |
8 | 4 | 01.10.2018 | 03.10.2018 |
7 | 9 | 30.08.2018 | 08.09.2018 |
6 | 2 | 23.08.2018 | 27.08.2018 |
2 | 4 | 10.09.2018 | 18.09.2018 |
5 | 8 | 08.10.2018 | 18.10.2018 |
9 | 3 | 16.08.2018 | 26.08.2018 |
6 | 6 | 20.08.2018 | 01.09.2018 |
5 | 9 | 09.10.2018 | 13.10.2018 |
7 | 11 | 17.09.2018 | 28.09.2018 |
10 | 9 | 20.08.2018 | |
2 | 3 | 07.08.2018 | 09.08.2018 |
9 | 1 | 25.07.2018 | 04.08.2018 |
10 | 7 | 07.10.2018 | 13.10.2018 |
8 | 7 | 27.08.2018 | 30.08.2018 |
4 | 5 | 11.10.2018 | 20.10.2018 |
4 | 1 | 30.07.2018 | 09.08.2018 |
7 | 4 | 03.09.2018 | 13.09.2018 |
4 | 8 | 26.09.2018 | |
7 | 1 | 28.07.2018 | 01.08.2018 |
8 | 5 | 12.09.2018 | 18.09.2018 |
8 | 5 | 02.09.2018 | 13.09.2018 |
6 | 6 | 09.08.2018 | 10.08.2018 |