Database: e_commerce
Question: What are the total cost of all the orders ? List the order id , date , and total cost .
SQL:
select t1.order_id ,  t1.date_order_placed ,  sum(t3.product_price) from orders as t1 join order_items as t2 on t1.order_id  =  t2.order_id join products as t3 on t2.product_id  =  t3.product_id group by t1.order_id