Your SQL shouldn't have domain logic in it as much as that's possible. (Sometimes there are perf reasons to push domain logic into SQL. Sometimes.) 3) It's not always clear where to put a particular ...