SUMIF, COUNTIFS e tabelle pivot in SQL · esercizio 1 di 1 · free preview
SUMIF(range, "pastry", sum_range) diventa una SUM con un WHERE sulla categoria. Qui la categoria si trova in un'altra tabella, quindi prima fai un JOIN.
Quante unità in totale sono state vendute dalla categoria 'pastry'? Chiama il totale units.
Tables in this practice shop
customersproductsordersorder_items