intermediate
Generate SQL Query
Write a SQL query based on a specific data requirement.
📝 Содержимое промпта
Write a SQL query for a PostgreSQL database that retrieves the top 5 customers by total spend in the last month. Assume tables named 'customers' and 'orders' linked by 'customer_id'. Include joins and ordering.