FunctionRacerProblemsRace

How Many Sells

BeginnerSQLSQLite

Return one row with one column, n: the number of trades whose side is sell.

Example 1

trades
idsymbolsideqtyprice
1KObuy1049.5
2KOsell540.0
3XOMsell750.0
returns
n
2

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