DDD Assigment
DDD Assigment
DDD Assigment
ASSIGNMENT NUMBER: 1
ASSIGNMENT NAME:
STUDENT NAME:
STUDENT ID:
MOBILE NUMBER:
Summative Feedback:
Hi!
Over all, you have understood content of subject. Your report meet the requirement of
learning outcome and relative completely. Your approach is very clear and detail.
Strength
Weakness
You do not evaluate the effectiveness of the database solution using to user and
system requirements
short of diagrams showing movement of data through the system, and flowcharts
describing how the system works
reference is not follwing harvard referencing style
How to improve
Evaluate the effectiveness of the your relation database system to user and system
requirements
Grade: Pass
Date: 16/9/2021
Assessor: Luong Thi Thao Hieu
Internal verification:
Contents
A. INTRODUCTION.............................................................................................................................4
B. SYSTEM REQUIREMENTS...........................................................................................................4
I. Real world scenario.......................................................................................................................4
II. Data requirements for storage..................................................................................................4
III. Relationship between entities....................................................................................................7
C. DATABASE DESIGN.......................................................................................................................7
I. ERD Diagram.................................................................................................................................7
II. Convert ERD Diagram to Relation Diagram...........................................................................9
III. Normalization.............................................................................................................................9
IV. Relational database system.....................................................................................................11
D. DATABASE DEVELOPMENT(P2)...............................................................................................21
E. TESTCASE AND TEST LOG (P4)................................................................................................27
F. SYSTEM SECURITY AND MAINTAINACE (M2)....................................................................29
References.................................................................................................................................................36
A. INTRODUCTION.
On the market today, there are many business companies that are not using
technologies to manage the company's operating systems or have old technologies
that do not meet the growing needs. company development. And AGC is one of
them. Until now, AGC has managed its business using a computer system developed
by a university student 5 years ago. The system is currently too slow and no system
documentation is generated when it is deployed that changes to the system cannot be
easily made. Therefore, AGC has hired a team of Database Developers at a large IT
consulting company to advise on document building and Database design for a new
system to meet the current needs of customers. The company can also develop the
system in the future if needed.
B. SYSTEM REQUIREMENTS
I. Real world scenario
To date, AGC has operated its company utilizing a computerized system created by a
college student five years ago. The system is currently too slow, and because no
system documentation was created when it was developed, it is difficult to make
improvements. The CEO of AGC believes that, since their business needs have
evolved, they must adapt in order to expand and operate their company successfully
2. Employee
Entity Description of entity Attribute Description of attribute
employeeId Id of employee
Employee name Name of employee
address Address of employee
phoneNumber Phone number of
employee
email Email of employee
3. Customer
4. Category
5. Product
6. Order
C. DATABASE DESIGN
I. ERD Diagram
ERD is a diagram, showing the entities in the database, and the relationship between
them.
III. Normalization
1. The goal of standardization
Eliminate data redundancy
Remove update anomaly
Remove insertion anomaly
Remove deletion anomaly
2. Chuan hoa chia thanh cac loai nao
a. 1NF (First Normal Form)
A table (relation) is said to be in 1NF normal form if and only if all the
domains of the columns present in the table (relation) contain only atomic
(prime) values.
b. 2NF
Is 1NF
Non-key attributes must be fully functionally dependent on the primary
key
c. 3NF
Is 2NF
Non-key attributes must depend directly on the primary key
3. For example
Table Employee( name, email, phoneNumber, address, city, hiredate, accountId).
1NF:
Each cell must contain only a single (atomic) value.
Every column in the table must be uniquely named.
All values in a column must pertain to the same domain.
Eg:
2NF: Tables in 2NF must be in 1NF and not have any partial dependency
3NF: Tables in 3NF must be in 2NF and have no transitive functional dependencies
on the primary key.
IV. Relational database system
1. Design Database.
a. A database management system (DBMS)
DBMS is a software package designed to define, manipulate, retrieve, and manage data in a
database. The DBMS usually manipulates its own data. Data format, field names, record
structure, and file structure. It also defines rules for validating and manipulating these data
b. The most popular database management systems today:
Oracle
Advantages:
o There will be improvements and new features. Because Oracle tends to set the bar
for other database management tools.
o Oracle's database management tools are also extremely powerful. You might find
a tool that can do what you want.
Disadvantages:
Advantages:
o Free version available.
o Provides many functions.
o Various types of user interfaces.
o It can work on other databases like DB2 and Oracle.
Disadvantages:
o You need to spend a lot of time working with MySQL (which other systems will
do automatically).
o There is no built-in support for XML or OLAP.
o Support will be available in the free version but you need to pay for it.
SQL Server
Advantages:
Disadvantages:
o Even with performance throttling, Microsoft SQL Server can consume resources.
o Many individuals have problems using SQL Server integration services to import
files.
Conclude: From the above priority points, we will choose the site using SQL Server
to deploy the project's database
2. Database Diagram:
d. Delete
Delete normally:
Delete with PROCEDURE: compact and can be reused many times
(11) Select the permissions that the user will be granted on the database
In the Status section, make sure the user is in the state as shown below and
click OK to finish the account creation process.
References
https://www.gleek.io/blog/best-erd-tools.html
https://viblo.asia/p/tong-hop-ve-chuan-hoa-co-so-du-lieu-ORNZqP33K0n
https://vietnix.vn/he-quan-tri-co-so-du-lieu/