Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

select row counts per date

grapes12Feb 3 2011 — edited Feb 3 2011
I need help with a select statement which will order the rows per table, for a date column on that table

here is a select i tried:
SELECT EXTRACT(MONTH FROM date_column), COUNT(*)
FROM table name
GROUP BY EXTRACT(MONTH FROM date_column);
output recieved displayed months 1-12 with count per month

what about the years?????
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2011
Added on Feb 3 2011
8 comments
8,486 views