Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer Questions 2&3 soon. Consider the following relational model for a basketball league: Player (PlayerID, PName, Position, Teamd) Team (TeamlD, IName, Venue) Game (GameNo,

image text in transcribed

Please answer Questions 2&3 soon.

Consider the following relational model for a basketball league: Player (PlayerID, PName, Position, Teamd) Team (TeamlD, IName, Venue) Game (GameNo, Date, Time, HomeTeamle, Awax Team!R) Record (Game Ne, PlayerID, Points) In this basketball league, each team has a unique name and each player plays for only one team. One team has at least 10 players. Two teams (home team versus away team) participate in each game at home team's venue. A team meets each of other teams twice (i.e., double round-robin tournament), one time as home team and the other time as away team. For each game, the league records the number of points scored by each player. If a player played for a game but did not score any point, there is a record for the player with zero point. If a player did not play for a game, there is no record for this player for that game (i.e., no record in the Record relation). Please answer all the following questions based on the provided relational model and information for the basketball league. Question 2 Write a relational algebra that returns the player and PName of players who did not play for any game. [20 marks] Question 3. Write a relational algebra that returns the GameNe, Venue, team name of the home team (renamed it as Home TeamName) and team name of the away team (renamed it as Away TeamName). [20 marks]

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

1. Explain why evaluation is important.

Answered: 1 week ago