diff --git a/sql/fashion_magazines.sql b/sql/fashion_magazines.sql index cf847bc..011836a 100644 --- a/sql/fashion_magazines.sql +++ b/sql/fashion_magazines.sql @@ -4,7 +4,8 @@ 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" + '$' printf('%.2f', 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