Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following relational schema where primary keys are underlined and foreign keys are marked with #. COUNTRY(countryID, countryName, countryDialingCode) TEAM(teamID, teamName, countryId) PLAYER(playerID, playerFname,

image text in transcribed

Given the following relational schema where primary keys are underlined and foreign keys are marked with #. COUNTRY(countryID, countryName, countryDialingCode) TEAM(teamID, teamName, countryId) PLAYER(playerID, playerFname, playerLname, playerDoB, #teamID) Game(gameID, gameName, gameLevel, year) a) Express the following queries in SQL: i. Add the column gameID of type Integer as a foreign key in table TEAM[1.5] i. Find the details of players whose first names start with 'S": [1] 111. Find the number of players in each team. [1] iv: Change the gameName of the game with id = 5 to "Ping Pong. [1] v. Display the name of the country having the highest number of teams [1.5] vi. List the details of games played by teams from Oman" [1.5] b) Create view less Than 20 that contains plaver last name, plaver ID. plaver country ID. game name of plavers who are less than 20 vears old. 12.51

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions