Purchases from 4000: page 1, 20 per page
Level: Junior50 XP
Instructions
Select page number 1 (20 rows per page, pages numbered from 1) of the purchases with amount at least 4000: columns id, user_id, purchased_at and amount. Sort by purchased_at from oldest to newest, for equal values by id ascending.
Hints
Each next one is more detailed and costs more
Query
Result
Click Run to see the query result, or Check to submit your solution.
Dataset schema
Exactly oneZero or oneZero or more
Table relationships
- N:1Many-to-one
events.→user_id users.id - N:1Many-to-one
purchases.→user_id users.id
Table data
PostgreSQL
Select a table in the diagram or list to view its rows.