antoniop
committed
on 15 Mar 19
Reduce divergency between oracle and postgres codebase and make the query less awkward