PostgreSQL Table Joins 23 codes