hard
Complex SQL Query Writer
Write a SQL query to retrieve specific data involving joins and aggregations.
📝 Prompt-Inhalt
Write a PostgreSQL query to find the top 10 customers by total spending in the year 2023. Assume you have two tables: 'customers' (id, name) and 'orders' (customer_id, amount, order_date). The result should show customer name and total amount spent.