I need to perform two different counts in one single query.
First Query: count number of transactions from today 30 days back.
Second Query: count number of transactions from last 60 until last 30 days.
I have first query working fine as:
SELECT
COUNT(*) AS sales
FROM
transactions
WHERE DATE(created) > DATE_SUB(NOW(), INTERVAL 30 DAY)
AND STATUS = 1;
How can I incorporate the second query into the above?