/ Published in: SQL
Count the number of rows that fall within each Day
Expand |
Embed | Plain Text
SELECT TO_CHAR(TRUNC(create_time,'dd'),'Day dd Month YYYY') AS "DATE", COUNT(*) FROM TABLE GROUP BY TRUNC(create_time,'dd') ORDER BY TRUNC(create_time,'dd') DESC ;
You need to login to post a comment.
