By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
16 rows affected
CustomerID | OrderCount | Type |
---|---|---|
1 | 4 | Customer with max orders |
5 | 1 | Customer with min orders |
6 | 1 | Customer with min orders |
7 | 1 | Customer with min orders |