I have a database table called books
books ('id', 'sku', 'date_added')
where date_added
is DATETIME.
I need to run a query to find all books by count added last month. Now i can do it and get a list but for dates nothing was uploaded, i would need a 0. How do i achieve this?
Also what query would give me a count of books uploaded by month?