diff --git a/README.md b/README.md index ab63e80..e4683f4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Open in Visual Studio Code](https://classroom.github.com/assets/open-in-vscode-2e0aaae1b6195c2367325f4f02e2d04e9abb55f0b24a779b69b11b9e10269abc.svg)](https://classroom.github.com/online_ide?assignment_repo_id=16614858&assignment_repo_type=AssignmentRepo) # Fashion Magazines Code Louisville Data Analysis Exercise diff --git a/sql/fashion_magazines.sql b/sql/fashion_magazines.sql index 4dd0555..6a60d5c 100644 --- a/sql/fashion_magazines.sql +++ b/sql/fashion_magazines.sql @@ -1 +1,7 @@ --- Add your sql here \ No newline at end of file +SELECT +customers.cusomer_name, +FROM orders +JOIN subscriptions ON orders.subscription_id = subscriptions.subscription_id +JOIN customers ON orders.customer_id = customers.customer_id +WHERE order_status = 'unpaid' and subscriptions.description = 'Fashion Magazine' +GROUP BY customer_name \ No newline at end of file