FunctionRacerProblemsRace

Total per Symbol

EasySQLSQLite

Return each symbol once with total, the sum of qty over its trades. Rows may come in any order.

Example 1

trades
idsymbolqtyprice
1AAPL10190.5
2MSFT5410.0
3AAPL7191.0
returns
symboltotal
AAPL17
MSFT5

Constraints

Race itor take your time

Write it in your browser, against the clock. The model query, with a note on each piece of it, comes after.

More SQL problems