Nivå 2.9 SQL oppgavesett
Gitt tabellen:
| id | name | product_count | discount |
| 1 | Aaron | 8 | 10 |
| 2 | Max | 4 | 20 |
| 3 | Catherine | 6 | 30 |
| 4 | Catherine | 3 | 50 |
| 5 | Aaron | 2 | 0 |
Løs følgende oppgaver for den:
Finn bestillinger, ta kun hensyn til bestillinger med produktantall over gjennomsnittlig antall bestillinger.
Finn produkter med maksimal rabatt i bestillinger.
Vis bestillinger der produktantallet er større enn 5,
og oppgi kunder som har gjort slike bestillinger.