News for hackers. Stuff that matters.
Re:"I've isolated the bug to a database query" by samuel on Wednesday November 09, 2011 @11:38AM (#3216172)
I disagree with the readability part. I do heavy use of "WITH" to name my intermediate steps and comment the tricky parts (as I would do with any other programming language) and my colleagues find them pretty readable(or that's what I'm told). That's how I "reverse engineer" such monster queries, refactoring them in intermediate relations with names. Pretty often the same subselect is used more than once.

In fact, due the lack of side effects it's much easier to do than with procedural code.

Re:"I've isolated the bug to a database query" by niccl on Wednesday November 09, 2011 @03:44PM (#3217305)
Doh! I must be one of the SQL bunnies everyone else is superior to...

I didn't know about the WITH statement. Thanks for enlightening me.