I am using PostgreSQL, and I need to write SQL statement to solve the following problem with these 2 tables:
Table "Tra