Fix query outdated in Oracle
Merge pull request #4710 from dballesteros7/jobAccountant-Bugfix

Fix query outdated in Oracle