Wilder1626
asked on
Oracle 11g - Count order_id per dates issue
Hi
I have this below SQL were i want to pull the number of ORDER_ID created per REC_CREATE_TMS.
The problem i have based on below picture is that i still get multiple counts for the same date.
How can i fix this?
Thanks for your help.
I have this below SQL were i want to pull the number of ORDER_ID created per REC_CREATE_TMS.
SELECT DISTINCT (TO_CHAR(REC_CREATE_TMS, 'yy-mm-dd')) AS date_created,
Count(ORDER_ID) AS count
FROM EXOMGR.EXO_CONF_ORDERS
WHERE REC_CREATE_TMS >= to_date('14-04-29', 'yy-mm-dd')
GROUP BY REC_CREATE_TMS
ORDER BY (TO_CHAR(REC_CREATE_TMS, 'yy-mm-dd'));
The problem i have based on below picture is that i still get multiple counts for the same date.
How can i fix this?
Thanks for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
wow, just that!!!!!! Thanks a lot for your help.
Open in new window