I am trying to get the count of rows from my table for a day like Saturday or Sunday.
The code below is not working.
Any idea how to achieve this?
SELECT next_day(sysdate-8, 'SUN') from dual;
NEXT_DAY(SYSDATE-8,)
-------------------
2014/11/02 21:22:30
My attempt:
select sum(QTY),GROUP from table where next_day(order_date-8, 'SUN') group by GROUP;