apauley/HollingBerries — pull request #15 by chanmix51 (2012-07-27 15:32:09+00:00)
Title: postgresql version

In case you want to compare with declarative paradigm languages too. There are probably better ways to do this. Of course all could be handled in a big fat query but I found easier to read when the main query calls self-explaining functions.

Cheers