Miscellany
public text v1 · immutableSELECT cuid AS gt_cuid, SUM(product_price * quantity) AS total_spent, (SELECT vitamin_cuid FROM autoresponder_products WHERE cuid = gt_cuid) AS gv_cuid GROUP BY cuid LIMIT 10;
SELECT cuid AS gt_cuid, SUM(product_price * quantity) AS total_spent, (SELECT vitamin_cuid FROM autoresponder_products WHERE cuid = gt_cuid) AS gv_cuid GROUP BY cuid LIMIT 10;