Founding rate: RM5 off Basic, forever — applied automatically. See pricing

Menu

Topic

Aggregation

GROUP BY, HAVING and conditional aggregates. The recurring skill is filtering at the right stage — WHERE before grouping, HAVING after — and knowing why COUNT(*) and COUNT(column) disagree.

New to this? Read the Aggregate functions: SUM, AVG, COUNT, MIN, MAX chapter.

easyAverage balance by account typeBasiceasyCompleted rides by cityFreeeasyOrders by statusFreemediumAd click-through conversion rate, per campaignBasicmediumDefect rate per production lineBasicmediumPivot quarterly sales into columnsBasicmediumSplit mudarabah profit across depositors by weighted balanceFreemediumTop 3 restaurants by ordersBasicmediumUtilisation rate per consultantFreehardPivot payment channels into columns, per merchantBasic