I am using Oracle SQL Developer. I essentially have a table of pictures that holds the columns:
[DATE_CREATED(date), NUM_of_PICTURES(int)]
and if I do a select *
For Oracle:
select EXTRACT(month from DATE_CREATED), sum(Num_of_Pictures) from pictures_table group by EXTRACT(month from DATE_CREATED);