89 of 100 menu

SQL Taskbook Level 9.9 of the SQL task book

The tables are given:

countries
id name
1 Germany
2 France
3 Norway
4 Guatemala
5 Sweden
customers
id name country_id
1 Alex 3
2 Joe 1
3 Erick 4
4 Max 2
5 John 5
orders
id customer_id amount date
1 3 2311 2023-12-11
2 3 1999 2023-12-01
3 3 1200 2023-11-10
4 3 2321 2023-11-15
5 3 3111 2023-12-10
6 2 3222 2023-12-11
7 2 4000 2023-10-29
8 2 2000 2023-10-24
9 2 1200 2023-10-13
10 1 500 2023-11-30
11 1 600 2023-12-10
12 1 490 2023-12-01
12 3 1200 2023-12-05
13 1 1400 2023-12-06
14 4 3200 2023-11-10
15 4 2300 2023-10-20
16 4 1400 2023-09-30
17 4 1590 2023-09-22
18 5 8000 2023-12-09
19 5 5700 2023-12-08
20 5 1100 2023-11-27
21 5 4200 2023-11-16
22 5 1900 2023-10-22
23 5 4700 2023-10-17

Solve the following tasks for them:

Find the three countries from which the largest number of orders come.

Find the two countries that receive the largest orders.

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