I have a base of orders that have a customer_id a total cost and a paid column. I would like to know how I can do a formula that would find a customer_id and total all of their outstanding costs. So basically I need to sum total cost for a unique customer_id that has 0 in the paid column.
Anyone has an idea how to do this?
