#1088

Event Revenue

Finance is calculating total revenue from a_events: add up amount only for events where kind = 'purchase'. Return one value, revenue; if there are no purchases, the result must be 0.

Kampjun tal-output mistenni

Dan hu kif tidher tweġiba korretta — l-għadd tar-ringieli huwa tiegħu stess, m'għandux għalfejn jaqbel mat-tabelli tal-iskema.

revenue
110

Ir-riżultat tal-query tiegħek jidher hawn