SONAR-5934 Fix query on Oracle