Busy Symbols
Return each symbol that has at least 3 trades, with n, its number of trades. Rows may come in any order.
Example 1
trades
| id | symbol | qty | price |
|---|---|---|---|
| 1 | AAPL | 10 | 190.5 |
| 2 | MSFT | 5 | 410.0 |
| 3 | AAPL | 7 | 191.0 |
| 4 | AAPL | 1 | 193.0 |
| 5 | MSFT | 2 | 409.0 |
returns
| symbol | n |
|---|---|
| AAPL | 3 |
Constraints
- Up to 18 trades
Write it in your browser, against the clock. The model query, with a note on each piece of it, comes after.