hard
Complex SQL Generation
Create a query joining three tables.
📝 Содержимое промпта
Act as a Database Administrator. Write a SQL query for a PostgreSQL database. The query needs to join the 'Users', 'Orders', and 'Products' tables. It should list the top 5 users by total spending in the last month, including their names and the total amount spent.