38 of 100 menu

SQL Taskbook Level 4.8

Given a table:

orders
id total_amount ship_date product_id country_id
1 500.10 2023-10-10 5 USA
2 321.50 2023-10-15 5 USA
3 201.15 2023-10-13 5 Germany
4 554.12 2023-10-01 3 France
5 321.77 2023-10-15 2 USA
6 222.11 2023-10-20 3 France
7 312.41 2023-10-19 2 Italy
8 290.30 2023-10-20 3 Italy
9 740.10 2023-10-20 4 Germany
10 100.60 2023-10-21 4 Italy

Solve the following tasks for it:

Write a query that groups orders by country and calculates the average shipping cost for each country. The average shipping cost should be greater than 500.

Write a query that groups orders by month and outputs the number of orders for each month. The number of orders must be greater than 5.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline