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 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results