I have tried these steps:
SELECT day, COUNT(orderId) FROM ( SELECT orderId, DAYOFWEEK(orderCreateDate) as day WHERE orderCreateDate > \