Get Query From Postgresql Vs Db2