Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer questions 2&3 ASAP!!! Consider the following relational model for a basketball league: Notations Typing b [S] Player (PlayerID, PName, Position, TeamID) Team (TeamID.TName,
Please answer questions 2&3 ASAP!!!
Consider the following relational model for a basketball league: Notations Typing b [S] Player (PlayerID, PName, Position, TeamID) Team (TeamID.TName, Venue) Game GameNo, Date, Time, HomeTeamID, AwayTeamID) Record (GameNo PlayerID, Points) TT [P] 5 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 PlayerID and PName of players who did not play for any game. [20 marks] You should type notations of relational algebra as depicted in the following table o [R] Notations Typing 0 [S] TT [P] * * [J] [R] Question 3. Write a relational algebra that returns the GameNo, 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] You should type notations of relational algebra as depicted in the following tableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started