Today I had a very simple need for my Drupal based blog. I needed to get the number of blog entries by user and publication status.
To accomplish this, I put together the query below which will dump out this information showing the username, publication status (0=unpublished, 1=published), and the count of blog posts for that username and publication status combination.
The query is:
SELECT users.name, node.status, count(*) FROM node, users WHERE type = 'blog' AND node.uid = users.uid GROUP BY users.name, node.status ORDER BY users.name, node.status;
Simply run that query through your MySQL command line prompt, or through a GUI utility such as phpMyAdmin. The output will look something like:

del.icio.us
Digg
StumbleUpon