hard
Generate SQL Query from Description
Constructs a SQL query based on a natural language description of data needs.
📝 Contenuto del prompt
Write a SQL query to select the names and email addresses of all customers who have made a purchase in the last 30 days from a table named 'users' and an 'orders' table, joining them by user_id.