#315

Gap Between Apple and Orange Sales

For each sale date return the difference between apples sold and oranges sold. Return sale_date and diff.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

diffsale_date
42024-01-01
-52024-01-02
152024-01-03

Your query result will appear here