Question: SQL POSTGRES you got the following tables: 1. Players (ID, name, gender, height) 2 PK-Primary key Z FR-Foreign key 2. Scores (player ID, competitions, sport

SQL POSTGRES you got the following tables: 1. Players (ID, name, gender, height) 2 PK-Primary key Z FR-Foreign key 2. Scores (player ID, competitions, sport b, result) -Pk , and players is also a Fk that references to Players fable (ID), while sportid is also a FK that references to sports table (ID) - see table 3 below: 3. Sports (10, name, record) Note: name is UNIQUE. 4. Competition (IV), place, held) PK the competition ID on Scores table is a Fk that references to table & above. Based on these 4 tables, write a singe query (as simple as you possibly can) in order to retrieve the following info: -Select the ID and name of players who have the worst result in some sport and have only competel in one other sport (2 sports total) SQL POSTGRES you got the following tables: 1. Players (ID, name, gender, height) 2 PK-Primary key Z FR-Foreign key 2. Scores (player ID, competitions, sport b, result) -Pk , and players is also a Fk that references to Players fable (ID), while sportid is also a FK that references to sports table (ID) - see table 3 below: 3. Sports (10, name, record) Note: name is UNIQUE. 4. Competition (IV), place, held) PK the competition ID on Scores table is a Fk that references to table & above. Based on these 4 tables, write a singe query (as simple as you possibly can) in order to retrieve the following info: -Select the ID and name of players who have the worst result in some sport and have only competel in one other sport (2 sports total)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
