i want to calculate the sum of the money i spent on the based on two specific dates, i have tried doing this using several queires but none of them seem to work. Below are the table and the query respectively,
Product_ID----ProductName------price------OrderDate
--- 1 -------- Chair -------- 7 ------ 2015-01-05
--- 2 -------- Lamp --------- 14 ----- 2015-01-16
--- 3 -------- Table -------- 9 ------ 2015-02-25
SELECT SUM(price) AS TotalPrice FROM orders
HAVING OrderDate >='2015-01-05' AND <= '2015-01-16'