Professional Documents
Culture Documents
Assignment PDF
Assignment PDF
SYSTEM
DOMINIC BOBAN
Unit No: 04
Unit Name: Database Design & Development
Contents
USER REQUIREMENTS ...................................................................................................................................... 2
SYSTEM REQUIREMENTS .................................................................................................................................. 5
ER DIAGRAM .................................................................................................................................................... 6
PURPOSE OF MY DATABASE ............................................................................................................................. 6
ADVANTAGES AND DISADVANTAGES ............................................................................................................... 7
USER INTERFACE OF DBMS ............................................................................................................................... 7
MENU BASED INTERFACE ............................................................................................................................. 7
FORM BASED INTERFACES ............................................................................................................................ 7
GRAPHICAL USER INTERFACE ........................................................................................................................ 8
NATURAL LANGUAGE INTERFERENCE ........................................................................................................... 8
SPEECH INPUT AND OUTPUT ........................................................................................................................ 8
INTERFACES FOR DBA ................................................................................................................................... 8
DATA VALIDATION............................................................................................................................................ 8
ADVANTAGES AND DISADVANTAGES............................................................................................................ 8
TYPES ........................................................................................................................................................... 9
PRESENCE ..................................................................................................................................................... 9
UNIQUE IDENTIFIER ...................................................................................................................................... 9
RANGE CHECK .............................................................................................................................................. 9
FORMAT ....................................................................................................................................................... 9
RESTRICTED CHOICE ..................................................................................................................................... 9
NORMALIZATION............................................................................................................................................ 10
First Normal Form ...................................................................................................................................... 10
Second Normal Form .................................................................................................................................. 10
THIRD NORMAL FORM ............................................................................................................................... 11
BOYCE-ODD NORMAL FORM ...................................................................................................................... 13
Fourth Normal Form ................................................................................................................................... 13
Fifth Normal Form ...................................................................................................................................... 13
Sixth Normal Form...................................................................................................................................... 13
ADVANTAGES OF NORMALIZATION ............................................................................................................ 13
DISADVANTAGES OF NORMALIZATION ....................................................................................................... 13
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
USER REQUIREMENTS
TABLE: TEAM
• TEAM ID
• CAPTAIN
• TEAM INCOME
• COUNTRY
• SALUTATION
TABLE: MATCH
• LOCATION
• TIME
• TEAMS
• DATE
• COUNTRY ID
TABLE: CAPTAINS
• TEAM ID
• NAME
• WEIGHT
• INCOME
• SALUTATION ID
TABLE: TICKETS
• FIRST NAME
• LAST NAME
• AGE
• ADDRESS
• COUNTRY ID
• DATE
TABLE: TITLE
• SALUTATION ID
• SALUTATION
• CAPTAIN
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
TEAM
Table 1:TEAM
MATCH
Table 2:MATCH
CAPTAINS
Table 3:CAPTAINS
TICKETS
Table 4:TICKETS
TITLE
TABLE 5: TITLE
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
SYSTEM REQUIREMENTS
COUNTRY ID
COUNTRY
SALUTATION TIME
LOCATION
INCOME
ICC
TEAM WORLD MATCH
CUP
CAPTAIN
TEAM ID
TEAMS DATE
SALUTATION ID
TEAMMATE
SAL ID TITLE TEAM ID
CAPTAINS
CAPTAIN
SALUTATION
INCOME TICKETS
HEIGHT
TEAM ID AGE
NAME
FIRST NAME
COUNTRY ID
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
ER DIAGRAM
Figure 1 : ER Digram using Visual Aradigm for ICC WORLD CUP
PURPOSE OF MY DATABASE
The purpose of the database is to give definition language and to specify the project
in a particular way which we are using.
I created the ICC World Cup as Database, and it will give an overall idea about how
we can manage the cricket match within two teams in a match. I created four tables
as
TEAM, MATCH, PLAYER, AND TICKETS which will show the in-depth look behind a cricket
match.
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
I created four attributes for TEAM and five attributes for MATCH, five attributes for
CAPTAINS and six attributes for TICKETS
The relationship between tables is ONE TO MANY and ONE TO ONE because TABLE TEAM
has many MATCHES with TABLE MATCHES, and TABLE TEAM has only ONE CAPTIAN, which
is one to one relationship. Similarly, for ONE MATCH there will be many tickets, so the table
MATCH and TABLE TICKETS has one too many relationships
• With the help of this database we can manage the complete game easily
• It will help us to investigate everything that happens in the entire game or a match.
• Everything that is happening in a game is fully organized, and will there will no trouble or kind of a
problem arises when things go on work.
• By this database, we can see which match is going for first and which teams are getting played,
• The database should need constant updating because in each match if a player scores a run, the
database should need to update about which player scored a run and which bowler thrown the
bowl under which captaincy of batting teams.
• There should be a big server for keeping database because we need to know every detail about
whom all are playing their teams, managers, sponsors, advertisers, media, and information about
who came to see the match
• For maintaining the database, we need a lot of IT PROFESSIONALS to input the information and
maintain it.
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
GRAPHICAL USER INTERFACE
A GUI usually shows a structure in a diagrammatic manner to the user. Through modifying the image,
the user can then define a response. GUI's use both menus and shapes in many instances. Many GUIs
use a pointing tool like a mouse to select some of the schema diagram shown.
DATA VALIDATION
Data Validation is used to lessen the number of errors ion the database. Moreover, it automatically
checks the database to prevent incorrect data from being recorded. Validation of data means
checking the accuracy and quality of the data from the source before using, importing, or otherwise
processing data. Depending on the destination constraints or objectives, different types of validation
may be performed. Validating data is a form of cleaning up the data.
• Types
• Presence
• Unique Identifier
• Range Check
• Format
• Restricted Choice
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
TYPES
If we make a specific field numeric, then it will not allow is to input any letters or other numeric
characters
FOR EXAMPLE,
If we use data for database entry, we can only add numbers and not the characters.
PRESENCE
This type of validation obliges the user to enter data in the field required. Leaving a relevant field
blank will cause an error message preventing you from proceeding to the next stage.
FOR EXAMPLE,
If we will not add FIRST NAME or the LAST NAME to the TICKET, then there will be error pos up and
will not proceed to the next step.
UNIQUE IDENTIFIER
It is essential that one record can be identified clearly from another record. Every record has one field
that acts as a unique record identifier.
FOR EXAMPLE,
If we write TEAM ID for different countries the same one, then it will make an error, so every team
should have a unique identifier as a number to identify them.
RANGE CHECK
The range check is a validation check that can be applied to numeric fields. This is done to ensure that
only numbers within a given domain can be entered a field.
FOR EXAMPLE,
If we write TEAM_ID as int (20) Then it should come under the (20) and not more than that.
FORMAT
This is used for a field that requires an entry in a specific format.
FOR EXAMPLE,
IF we give the date it should come under the specific format otherwise it will not run, or it will show
the error
RESTRICTED CHOICE
The fields in the database have a certain amount of data that can be entered.
FOR EXAMPLE
The countries who could PLAY ICC world cup have a limit and cannot enter other countries how does
not have a team or not being participated
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
NORMALIZATION
• Normalization is the data organization process in the database.
• Standardization is used to minimize redundancy from a relationship or set of relationships. It is
also used to eliminate unwanted features such as Insertion, Update, and Deletion Anomalies.
• Normalization divides the larger table into the smaller table and uses the relationship to link
them.
• To reduce redundancy from the database table, the standard form is used.
Example
TABLE 1: TEAM
Example
Table1
TABLE1: TEAM
Table 2
Table 2:MATCH
TEAM ID NAME SALUTATION WEIGHT INCOME
ID
100 VIRAT KOHLI 1 78 12000000
0
101 SHAKIB AL 1 89 60000000
HASAN
102 ARON FINCH 1 90 16000000
0
103 DEMUTH 1 95 7000000
KARUNARATNE
104 SHOAB MALIK 1 96 8000000
EXAMPLE
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
Table1
Table 1:TEAM
TABLE 2
Table 2:MATCH
Table 3
Table 3:CAPTAIN
• We have split our tables once again and created a new table that stores greetings.
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
• There are no transitive functional dependencies, and therefore our table is in 3NF In Table 3
• It is, in fact, already in higher forms of normalization. In complex databases, separate efforts to move
into the next levels of data normalization are typically required.
Even if a database is in the 3rd Normal Type, irregularities would still occur if it has more than one
Candidate Key.
BCNF is sometimes referred to as a 3.5 Normal Form as well.
ADVANTAGES OF NORMALIZATION
• A compressed archive can be retained as the redundant data is removed by normalization. Therefore,
the overall database capacity is accessible.
• The improved performance, which can be related to the above point, is guaranteed. As the scale of
datasets reduces, the data flows quicker and shorter, thereby increasing response time and distance.
• Smaller tables are possible because the uniform tables will be fine-tuned, and the columns will be
smaller, allowing more data records per page.
• More indexes per table allow speedier maintenance tasks (reconstruction of indexes).
• Realizes also the option of joining only the required tables.
DISADVANTAGES OF NORMALIZATION
• More tables to join, as the need to join the table increases, and the task becomes more boring by
spreading the data into more tables. The database becomes more challenging to understand.
• Tables should contain codes rather than actual data, as replicated data will be managed as coding
lines rather than as accurate data. Furthermore, the need to go to the lookup table is always there.
• The data model becomes extremely hard to query as the data model is optimized for applications, not
ad hoc querying. Thus, it is difficult to model the database without knowing what the client wants.
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707
Unit No: 04
Unit Name: Database Design & Development
• As the typical style of model advances, the output gets slower and slower.
• Proper data on the different standard types are necessary for the effective implementation of the
normalization process.
Dominic Boban
Pearson BTEC Level 5 HND in Computing (RQF)
Reg No: 2019-0707