Create all the tables of the database

Assignment Help Database Management System
Reference no: EM133072738

UU-COM-3000 Database Systems

Assignment Brief: Question 1

Your friend runs a bookstore and uses a simple database to store details of books, authors, and booksellers. She thinks the database might need a bit of a tune-up. Table 1 shows its current structure, which consists of just one table containing two columns: Column Name and Data Type. Using what you learned about normalization, see if you can improve the current structure.

1642_figure.jpg

Figure 1 - Current Structure

Question 2

The sample database represents some of the data storage about a soccer tournament based on EURO CUP 2016. You might love football, and for all the football lovers we are providing a detail information about a football tournament.

List of tables in the soccer database:

• soccer_country
• soccer_city
• soccer_venue
• soccer_team
• playing_position
• player_mast
• referee_mast
• match_mast
• coach_mast
• asst_referee_mast
• match_details
• goal_details
• penalty_shootout
• player_booked
• player_in_out
• match_captain
• team_coaches
• penalty_gk

Structure of soccer Database:

Description of tables:

soccer_country:

• country_id - this is a unique ID for each country
• country_abbr - this is the sort name of each country
• country_name - this is the name of each country

soccer_city:

• city_id - this is a unique ID for each city
• city - this is the name of the city
• country_id - this is the ID of the country where the cities are located and only those countries will be available which are in soccer_country table

soccer_venue:

• venue_id - this is a unique ID for each venue
• venue_name - this is the name of the venue
• city_id - this is the ID of the city where the venue is located and only those cities will be available which are in the soccer_city table
• aud_capicity - this is the capacity of audience for each venue

soccer_team:

• team_id - this is the ID for each team. Each teams are representing to a country which are referencing the country_id column of soccer_country table
• team_group - the name of the group in which the team belongs
• match_played - how many matches a team played in group stage
• won - how many matches a team won
• draw - how many matches a team draws
• lost - how many matches a team lose
• goal_for - how many goals a team conceded
• goal_agnst - how many goals a team scored
• goal_diff - the difference of goal scored and goal conceded
• points - how many points a team achieved from their group stage matches
• group_position - in which position a team finished their group stage matches

playing_position:

• position_id - this is a unique ID for each position where a player played
• position_desc - this is the name of the position where a player played

player_mast:

• player_id - this is a unique ID for each player
• team_id - this is the team where a player played, and only those teams which referencing the country_id column of the table soccer_country
• jersey_no - the number which labeled on the jersey for each player
• player_name - name of the player
• posi_to_play - the position where a player played, and the positions are referencing the position_id column of playing_position table


• dt_of_bir - date of birth of each player
• age - approximate age at the time of playing the tournament
• playing_club - the name of the club for which a player was playing at the time of the tournament

referee_mast:

• referee_id - this is the unique ID for each referee
• referee_name - name of the referee
• country_id - the country, where a referee belongs and the countries are those which referencing the country_id column of soccer_country table

match_mast:

• match_no - this if the unique ID for a match
• play_stage - this indicates that in which stage a match is going on, i.e. G for Group stage, R for Round of 16 stage, Q for Quarter final stage, S for Semi Final stage, and F for Final
• play_date - date of the match played
• results - the result of the match, either win or draw
• decided_by - how the result of the match has been decided, either N for by normally or P for by penalty shootout
• goal_score - score for a match
• venue_id - the venue where the match played and the venue will be one of the venue referencing the venue_id column of soccer_venue table
• referee_id - ID of the referee who is selected for the match which referencing the referee_id column of referee_mast table
• audence - number of audience appears to watch the match
• plr_of_match - this is the player who awarded the player of a particular match and who is selected a 23 men playing squad for a team which referencing the player_id column of player_mast table
• stop1_sec - how many stoppage time ( in second) have been added for the 1st half of play
• stop2_sec - how many stoppage time ( in second) have been added for the 2nd half of play


coach_mast:

• coach_id - this is the unique ID for a coach
• coach_name - this is the name of the coach

asst_referee_mast:

• ass_ref_id - this is the unique ID for each referee assists the main referee
• ass_ref_name - name of the assistant referee
• country_id - the country where an assistant referee belongs and the countries are those which are referencing the country_id column of soccer_country table


match_details:

• match_no - number of the match which is referencing the match_no column of match_mast table
• play_stage - stage of the match, i.e. G for group stage, R for Round of 16, Q for Quarter Final, S for Semi final and F for final
• team_id - the team which is one of the playing team and it is referencing the country_id column of soccer_country table
• win_lose - team either win or lose or drawn indicated by the character W, L, or D
• decided_by - how the result achieved by the team, indicated N for normal score or P for penalty shootout
• goal_score - how many goal scored by the team
• penalty_score - how many goal scored by the team in penalty shootout
• ass_ref - the assistant referee assist the referee which are referencing the ass_ref_id column of asst_referee_mast table
• player_gk - the player who is keeping the goal for the team, is referencing the player_id column of player_mast table

goal_details:

• goal_id - this is the unique ID for each goal
• match_no - this is match_no which is referencing the match_no column of match_mast table
• player_id - this is the ID of a player who is selected for the 23 men squad of a team for the tournament and which is referencing the player_id column of player_mast table
• team_id - this is the ID of each team who are playing in the tournament and referencing the country_id column of soccer_country table
• goal_time - this is the time when the goal scored
• goal_type - this is the type of goal which came in normally indicated by N or own goal indicating by O and goal came from penalty indicated by P
• play_stage - this is the play stage in which goal scored, indicated by G for group stage, R for round of 16 stage, Q for quarter final stage, S for semifinal stage and F for final match
• goal_schedule - when the goal came, is it normal play session indicated by NT or in stoppage time indicated by ST or in extra time indicated by ET
• goal_half - in which half of match goal came

penalty_shootout:

• kick_id - this is unique ID for each penalty kick
• match_no - this is the match_no which is referencing the match_no column of match_mast table
• team_id - this is the ID of each team who is playing in the tournament and referencing the country_id column of soccer_country table
• player_id - this is the ID of a player who is selected for the 23 men squad of a team for the tournament and which is referencing the player_id column of player_mast table
• score_goal - this is the flag Y if able to score the goal or N when not
• kick_no - this is the kick number for the kick of an individual match

player_booked:

• match_no - this is the match_no which is referencing the match_no column of match_mast table
• team_id - this is the ID of each team who are playing in the tournament and referencing the country_id column of soccer_country table
• player_id - this is the ID of a player who is selected for the 23 men squad of a team for the tournament and which is referencing the player_id column of player_mast table
• booking_time - this is the time when a player booked
• sent_off - this is the flag Y when a player sent off
• play_schedule - when a player booked, is it in normal play session indicated by NT or in stoppage time indicated by ST or in extra time indicated by ET
• play_half - in which half a player booked

player_in_out:

• match_no - this is the match_no which is referencing the match_no column of match_mast table
• team_id - this is the ID of each team who are playing in the tournament and referencing the country_id column of soccer_country table
• player_id - this is the ID of a player who is selected for the 23 men squad of a team for the tournament and which is referencing the player_id column of player_mast table
• in_out - this is the flag I when a player came into the field or O when go out from the field
• time_in_out - when a player come into the field or go out from the field
• play_schedule - when a player come in or go out of the field, is it in normal play session indicated by NT or in stoppage time indicated by ST or in extra time indicated by ET
• play_half - in which half a player come in or go out

match_captain:

• match_no - this is the match_no which is referencing the match_no column of match_mast table
• team_id - this is the ID of each team who are playing in the tournament and referencing the country_id column of soccer_country table
• player_captain - the player who represents as a captain for a team, is referencing the player_id column of player_mast table

team_coaches:

• team_id - this is the ID of a team who is playing in the tournament and referencing the country_id column of soccer_country table
• coach_id - a team may be one or more coaches, this indicates the coach(s) who is/are coaching the team is referencing the coach_id column of coach_mast table

penalty_gk:

• match_no - this is the match_no which is referencing the match_no column of match_mast table


• team_id - this is the ID of each team who are playing in the tournament and referencing the country_id column of soccer_country table
• player_gk - the player who kept goal at the time of penalty shootout, is referencing the player_id column of player_mast table

You are asked to create a MS Database with the information given above
• Create all the tables of the Database
• Make the Relationship Diagram for the tables you just created. (Relational schema)
• Explain the reasoning of your tables and the relationships used. (1-1, M-M,1-M)

Attachment:- Database Systems.rar

Reference no: EM133072738

Questions Cloud

Calculate the npv of investment opportunity : Calculate the NPV of this investment opportunity using the APV method.
Biblical principles were violated or upheld : Discuss which dispositions (SCRIP), ethical standards (MCEE), and/or Biblical principles were violated or upheld.
How does the issuance of long-term debt : Does this sound correct? How does the issuance of long-term debt typically affect net position in the year of issuance
Discuss the future of population health : Discuss the future of population health in the context of supportive workplace environments, cultures, and climates coupled with supportive communities.
Create all the tables of the database : Create all the tables of the Database - Make the Relationship Diagram for the tables you just created. (Relational schema)
Understanding the behavior of infection : Understanding the behavior of infection and illness in one person can be a challenge. But infection and illness that has spread can be catastrophic.
Determine the tax basis of any assets : Shut-in royalty payments (failure to make payments terminate lease) 4,000. Determine the tax basis of any assets and the amount of any tax deductions
Approximate profit for an investor : What will be the approximate profit for an investor who has $500,000 available to conduct arbitrage?
Tools and diagnostic tests in adults : A description of how the assessment tool or diagnostic test you were assigned is used in healthcare.

Reviews

Write a Review

Database Management System Questions & Answers

  MIS609 Data Management and Analytics Assignment

MIS609 Data Management and Analytics Assignment Help and Solution, Laureate International Universities - Assessment Writing Service

  Display last name customer associated with order id

You have to write a query to display last name customer associated with order id in given database.

  Create set of database tables of relational database model

Use MYSQL to create the set of database tables of the relational database model and complete the associated queries given.

  Traditional file systems and modern database environment

Write down the difference between traditional file systems Vs modern database environment. Describe the following: Physical data independence Vs logical data independence

  Explain what is meant by wear-leveling in flash drives

What is the capacity of a hard drive (in GB) consisting of 120,000 tracks, 4,000 sectors, and 4 surfaces? Assume each block has 512 bytes.

  Design the logical structure of a database

Relational Database Systems - COMP 1005 Design the logical structure of a database using Entity-Relationship diagram and Apply normalization techniques to reduce redundancy in a database.

  Functional dependency explain the difference between

explain the difference between functional dependencies that arise from equations and those that do

  Include what database applications are used

Conclude by proposing improvements. For large organizations, restrict the scope to the department in which you work

  Explain onstraint and business rule represented in database

Describe the entities and attributes represented in the database. Describe the relationships among the entities in the database. Describe the constraints and business rules represented in the database.

  What is the note about loretta swits character in mash

What is the note about Loretta Swit's character in MASH and Who were the two leading men who played the leading role in Bewitched

  How many number of reported crimes were logged in

How many number of reported crimes were logged in the last week of the dataset - How many years of Years of reported crimes is in the data file

  Find that the data structure holds redundant data

Imagine that you have been hired to fulfill their need of enhancing the data repository for their current reservation processing system. Upon reviewing the system, you find that the data structure holds redundant data and that this structure lacks..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd