-- Total Products Sold
-- Description
-- FILTER: {
--   filter: "date",
--   column: "Send_Date",
--   params: {
--     "format": "m/d/y"
--   }
-- }
-- FILTER: {
--   filter: "class",
--   column: "products",
--   params: {
--     class: "text-right"
--   }
-- }

SELECT
    to_char(count( distinct deal_cartitem.product_id), '999,999,999,999') as products
FROM simplebrsprod.deal_cartitem deal_cartitem
WHERE deal_cartitem.cart_is_purchased=True;
