20 of 100 menu

SQL Taskbook Level 2.10

Given a table:

order_details
id name product_count discount
1 Aaron 8 10
2 Max 4 20
3 Catherine 6 30
4 Catherine 3 50
5 Aaron 2 0

Solve the following tasks for it:

Find the total number of products in each order, considering only orders with more than 2 products.

Find orders with the maximum discount and indicate the average discount in orders.

Display orders with the maximum discount, in which the number of products is greater than 5, and indicate the customers who made such 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