Sports Teams – Part B
Task 1
Open the ‘Sports Teams Pupil’ Access Database.
Here, you will find a populated database with two linked tables – Team and Player.
Task 2
The client has requested a list of the first names and surnames of Basketball players.
a) Design your query in the table below:
Field(s) (SELECT) Firstname, surname, Sport
Table(s) FROM Team, Player
Search Criteria Sport = Basketball
WHERE
Sort Order
b) Implement the SQL query that will produce this list and copy/paste it below:
SELECT
FirstName,
Surname,
[Link]
FROM
Team,
Player
WHERE
Sport = "basketball"
AND Team.[Team ID] = Player.[Team ID];
c) Take a screenshot of the output from this query and paste it below:
Task 3
The client has requested a list of the forenames, surnames and star ratings of all Hockey players with
a rating of 3 or higher. This should be displayed in alphabetical order of player surname.
a) Design your query in the table below:
Field(s) Forenames, surnames and [star ratings]
Table(s) Team, Player
Search Criteria [star rating] >= 3
Sort Order ASC
b) Implement the SQL query that will produce this list and copy/paste it below:
c) Take a screenshot of the output from this query and paste it below:
Task 4
The client has requested a list including forenames, surnames and dates of birth of all basketball
players with a rating of 5. This list should display the youngest player first.
a) Design your query in the table below:
Field(s) Forename, Surname, [Date of Birth], [star rating]
Table(s) Team, Player
Search Criteria [star rating] = 5 AND sport = “basketball”
Sort Order ORDER BY [Date of Birth] DESC
b) Implement the SQL query that will produce this list and copy/paste it below:
SELECT
FirstName,
Surname,
[Date of Birth],
[Link],
[Star Rating],
FROM
Team,
Player
WHERE
[Link] = "basketball"
AND [Star Rating] = 5
AND Team.[Team ID] = Player.[Team ID]
ORDER BY [Date of Birth] DESC;
c) Take a screenshot of the output from this query and paste it below:
Task 5
A new player has joined the Killie Shooters (Team ID 112) – Derek Jackson has a star rating of 4 and
was born on 29th July 1998.
Implement the SQL statement to add this player to the database with an ID of 101.