SQL Görev Seviyesi 4.9

Aşağıdaki tablo verilmiştir:

products
id name category_id manufacturer_id price weight rating
1 product-1 1 2 100 1.5 5
2 product-2 2 3 200 1.7 4.3
3 product-3 2 3 150 0.8 2.2
4 product-4 3 3 500 0.9 3.3
5 product-5 3 2 750 1.0 4.9
6 product-6 1 5 800 0.5 3.9
7 product-7 1 5 900 10 4.0
8 product-8 1 2 175 12 3.5
9 product-9 2 1 245 5 4.2
10 product-10 1 2 260 4 4.1

Bu tablo için aşağıdaki görevleri çözün:

Задание 1

Ürünleri kategorilere göre gruplayan ve her kategori için ortalama fiyatı gösteren bir sorgu yazın. Ürün başına ortalama fiyat en az 350 olmalıdır.

Задание 2

Ürünleri kategorilere göre gruplayan ve her kategorideki ürünlerin ortalama puanını hesaplayan bir sorgu yazın. Ortalama puan en az 4.1 olmalıdır.

Задание 3

Her ürün tedarikçisi için toplam sipariş tutarını bulun. Tedarikçiler için sipariş toplamı 3'ten fazla olmalıdır.