Postgresql Select Data From Another Sql Practice