i have two tables, one table sales_item use to get sum of quantity and price, then another table sales, record the total amount and sales date. The following query run corre