FunctionRacerProblemsRace

Average per Symbol

EasySQLSQLite

Return each symbol once with avg_price, the average price of its trades rounded to 2 decimals. Rows may come in any order.

Example 1

trades
idsymbolqtyprice
1AAPL10190.5
2MSFT5410.0
3AAPL7191.0
4AAPL1193.0
returns
symbolavg_price
AAPL191.5
MSFT410.0

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