I've always seen the distinct difference between front end/business app coding and database coding. They really are two separate disciplines, and any SQL against relational data can be hard...
I call the technique you mentioned a "brain stretch". Sometimes it involves talking with a co-worker about a topic outside work, sometimes it involves going home and letting the...