Skip to content

Commit

Permalink
resolving the Amount Due formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Darcicat committed Oct 28, 2024
1 parent 2eeebff commit 78106be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/fashion_magazines.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

SELECT
customers.customer_name AS Customer,
subscriptions.subscription_length*subscriptions.price_per_month AS Amount Due
subscriptions.subscription_length*subscriptions.price_per_month AS "Amount Due"
FROM orders
LEFT JOIN customers ON orders.customer_id = customers.customer_id
LEFT JOIN subscriptions ON orders.subscription_id = subscriptions.subscription_id
WHERE orders.order_status = 'unpaid'
AND subscriptions.description = 'Fashion Magazine'
GROUP BY customer_name
GROUP BY customers.customer_name
ORDER BY customer_name ASC;

0 comments on commit 78106be

Please sign in to comment.