SONAR-4603 Improve SQL query to copy issues in H2 DB  in dryRun