I have a table which is shown in picture

I want to retrieve this information.
1) From this date(whatever it is) previous month total ‘page_views’ of all ip’s
2) Today’s ‘page_views’ grouped by ‘page’ (expample: id=7 have page =index.php having page_views =12 But in the same date id=13 have same page = index.php and page_views = 1) So they must show page_view of index.php = 13
Use the below query to get the date one month before the specific date.