The query below provides the result in the image, however I want to the sum the NewOrders and DoneOrders for the same dates.Already i'm getting data for the past 7 days.
SELECT DATE(pickup_date),
COUNT(CASE WHEN order_status ='New' THEN 1 END) AS "NewOrders",
COUNT(CASE WHEN order_status ='Done' THEN 1 END) AS "DoneOrders"
from requests where DATE(pickup_date) > current_date::date - INTERVAL '7 days' GROUP BY pickup_date
ORDER BY pickup_date;
