Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions

Question

6. Explain how you would conduct a job analysis.

Answered: 1 week ago

Question

1. Describe the factors that lead to productive conflict

Answered: 1 week ago