intermediate
SQL Query Builder
Generate a SQL query based on a specific data requirement description.
📝 Prompt Inhoud
Write a SQL query for a PostgreSQL database. I have two tables: 'orders' (order_id, customer_id, order_date, total_amount) and 'customers' (customer_id, name, country). Write a query to find the top 3 customers who spent the most total money in the year 2023.