Question: Scenario: You have bought on as a database developer at a small web development company. They have a new client, a local football club, who

Scenario:

You have bought on as a database developer at a small web development company. They have a new client, a local football club, who have engaged the company to build a website to help run their tournaments. The company has a well-established front end development team, but unfortunately their sole database expert was poached by a larger company recently with little warning. As such they have had no time for a handover of knowledge on this project and have discovered that the back-end development was not documented at all! The database is mostly complete, but there appear to be a few errors and missing functions. They will need fixing before the service can go into an open beta. ---- Provide solutions for the following problems in the form of SQL code and a brief explanation of your reasoning (approx. 300 words each). Also, apply your code to a copy of the sample database and include screenshots evidencing this in each case:

a) The front-end developers need some sample content entering into the fixtures table, so that they can run some tests. Provide SQL code that will add 5 suitable dummy records into the table for testing. Explain your choices.

b) Provide SQL statements that will return the sample fixtures data you have created: - In running order, from earliest to latest - In alphabetical order by home team name, then away team name

c) The players table is currently accepting new entries with no date of birth. Unfortunately, the club insurance policy requires them to have this information, otherwise the players are not covered for any injuries sustained during a match. How might the structure of the players table be changed to prevent entries with no date of birth?

d) The front-end developers want to include a search function that lists players by searching for a club name. The search needs to support partial matches. This has not yet been developed. Suggest an SQL statement that could be used to make this work.

e) The fixtures table is currently quite inefficient and prone to errors, altering a record to change the name of the tournament is causing problems. Suggest why this might be the case and provide a solution

hey this the complete information i got.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!