in reply to Creating a hash of arrays from DB results

Of course, the real solution is to let the DB do the work:

SELECT stamp, COUNT(*) FROM Table WHERE state = "In Use" GROUP BY stamp

I think that won't give stamps with zero "In Use". I think you'll need a subquery if you want that result.

Replies are listed 'Best First'.
Re^2: Creating a hash of arrays from DB results (db)
by blaze (Friar) on Oct 05, 2009 at 21:20 UTC
    You guys rock, thanks a million!

    excellent catch ikegami!!