Professional Documents
Culture Documents
1>
Unit number and title Unit 04: Database Design & Development
Learner declaration:
I certify that the work submitted for this assignment is my own and research sources are fully acknowledged.
Grading grid
P1 M1 D1
In this assignment, you will have opportunities to provide evidence against the following criteria.
Indicate the page numbers where the evidence can be found.
LO1 Use an appropriate design tool to design a relational database system for a substantial problem
P1 Design a relational
database system using
- An ERD clearly shows the complete
appropriate design tools logical design for the given scenario
and techniques, containing 1
at least four interrelated - Write the normalization statement
for each of the entity
tables, with clear
statements of user and
system requirements.
M1 Produce a
comprehensive design for a
- Comprehensive design for a
fully functional system
fully functional system 1
which includes interface
- Data validations and data
and output designs, data
normalisation
validations and data
normalisation.
D1 Assess the effectiveness of
the design in relation to user 1
and system requirements.
Contents
I. Introduction..............................................................................................................................................................6
II. Basic Concept.........................................................................................................................................................6
1.1 Table..................................................................................................................................................................6
1.1.1 Row............................................................................................................................................................6
1.1.2 Column.......................................................................................................................................................6
1.1.3 DataTypes...................................................................................................................................................6
1.2 Concept of Database..........................................................................................................................................7
1.2.1 Database.....................................................................................................................................................7
1.2.2 Database management system (DBMS)......................................................................................................7
1.2.3 RelationShips..............................................................................................................................................7
1.3 Definition of ERD.............................................................................................................................................8
III. Normalization........................................................................................................................................................8
2.1 First normalization.............................................................................................................................................8
2.2 Second normalization........................................................................................................................................8
2.3 Third normalization...........................................................................................................................................9
IV. Design................................................................................................................................................................. 10
3.1 Assignment brief..............................................................................................................................................10
3.2 ERD.................................................................................................................................................................12
3.3 SQL server design...........................................................................................................................................13
3.3.1 Customer table..........................................................................................................................................13
3.3.2 Supplier table............................................................................................................................................13
3.3.3 Product table.............................................................................................................................................14
3.3.4 PurchaseOrder table..................................................................................................................................14
3.3.5 OrderProduct table....................................................................................................................................14
3.3.6 Employee Table........................................................................................................................................15
4. Database diagram..................................................................................................................................................16
V. Conclusion............................................................................................................................................................16
Reference................................................................................................................................................................... 16
I. Introduction
In this assignment I am going to Design a relational database system and introduce about three
normalization
1.1.1 Row
The term ‘row’, represent an arrangement, wherein people, objects, numbers or any other things
lie next to each other, facing the same way, i.e. in a horizontal line. It goes from left to right, like
the row of a school classroom, or seats of a movie theatre.
1.1.2 Column
A column is an arrangement of facts, figures, words, etc. , are placed one after another in a
sequence. In a table, columns are separated from each other by lines which enhance its readability
and attractiveness. It helps in making the comparison between two columns by placing them side
by side.
1.1.3 DataTypes
A data type, in programming, is a classification that specifies which type of value a variable has
and what type of mathematical, relational or logical operations can be applied to it without
causing an error. A string, for example, is a data type that is used to classify text and an integer is
a data type used to classify whole numbers.
Example
INT(size): A medium integer. Signed range is from -2147483648 to 2147483647. Unsigned range
is from 0 to 4294967295. The size parameter specifies the maximum display width (which is 255)
TEXT(size): Holds a string with a maximum length of 65,535 bytes
MySQL
SQL Server
Oracle
1.2.3 RelationShips
A relationship, in the context of databases, is a situation that exists between two relational
database tables when one table has a foreign key that references the primary key of the other table.
Relationships allow relational databases to split and store data in different tables, while linking
disparate data items.
Example:
Example:
Figure 2: Second Normalization
Example :
IV. Design
3.1 Assignment brief
ElectroShop is a company who acquire and sell electronic devices to customers throughout
Vietnam. They are looking to apply their current data store system with a relational database.
The company takes orders from customers, who can order any quantity of many items that
ElectroShop have in their current catalogue. The catalogue includes TV, Phone, etc.
Each of ElectroShop’s suppliers supplies many items but each item is supplied by one main
supplier.
ElectroShop would like to add all the customers to the database so that they can send a mail-shot
to them with any offers that are available, as well as the catalogue which is produced annually.
Salespersons at ElectroShop are paid a monthly bonus which is determined by the amount of sales
they have made for each month. The company would like the bonus calculated automatically by
the system.
As well as the monthly bonus figures ElectroShop would like to be able to create comparative
reports from the system i.e. sales figures for each month this year compared to last year.
3.2 ERD
- Attribute domains are single domains and no repeating attribute group exists
- Does not exist a functional dependency on the key
- does not exist the function of bridging functions into the key (or the function dependency
between the non-locked attributes
Figure 4: ERD
Reference
https://www.techopedia.com
https://www.oracle.com
https://beginnersbook.com
<ATTACHED EVIDENCE>