Livello 2.5 del libro di esercizi SQL

Data la tabella:

products
id name price amount category
1 Apple 1 320 Fruit
2 Fig 2 100 Fruit
3 Potato 0.5 1000 Vegetables
4 Carrot 0.75 750 Vegetables
5 Beetroot 0.25 1500 Vegetables

Risolvi per essa i seguenti problemi:

Задание 1

Mostra l'elenco delle categorie di prodotti e la quantità di prodotti in ogni categoria.

Задание 2

Trova i prodotti con il prezzo massimo in ogni categoria.

Задание 3

Mostra il prezzo medio dei prodotti in ogni categoria.

Задание 4

Trova i prodotti con una quantità in magazzino inferiore a 500 unità.

Задание 5

Mostra i prodotti con nomi che iniziano con la lettera 'B'.