53 of 100 menu

SQL Taskbook Level 6.3

The tables are given:

products
id name category_id price
1 product-1 1 600
2 product-2 1 700
3 product-3 1 800
4 product-4 2 500
5 product-5 2 900
6 product-6 3 1200
ordered_products
id product_id order_id quantity price_per_unit
1 2 1 150 2
2 1 2 111 4
3 1 3 31 6
4 3 4 3100 5
5 4 5 30 160
6 5 6 150 19
7 1 7 320 60

Solve the following problems:

Find products that have never been ordered.

Find out which product was ordered in the largest quantity.

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