SQL Query to show all results before current month
===

I have a table in Oracle with columns: [DATEID date, COUNT_OF_PHOTOS int]
This table basically represents how many photos were uploaded per day.

I have a query that summarizes the number of photos uploaded per month:

    select extract(year from dateid) as year, extract(month from dateid) as month, count(1) as Photos
    from picture_table
    group by extract(year from dateid), extract(month from dateid)
    order by 1, 2

This does what I want, but I would like to run this query at the beginning of each month, lets say 07-02-2012, and have all data EXCLUDING the current month. How would I add a WHERE clause that ignores all entries that have a date equal to the current year+month?