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,

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 (I), place, held) - PK the competitionID on Scores table is a Fle 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 competes 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 (I), place, held) - PK the competitionID on Scores table is a Fle 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 competes in one other sport (2 sports total)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!