Sie sind auf Seite 1von 13

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and title Unit 04: Database Design & Development

Date Received 1st


Submission date
submission

Date Received 2nd


Re-submission Date
submission

Student Name Le Duc Anh Student ID GCS18856

Class GCS0801B.1 Assessor name Ho Hai Van

Student declaration

I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I
understand that making a false declaration is a form of malpractice.

Student’s signature

Grading grid

P1 M1 D1

1|Page
2|Page
❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date:


Signature & Date:

3|Page
Contents
P.1 Design a relational database system using appropriate design tools and techniques, containing at least four interrelated
tables, with clear statements of user and system requirements.

1. Introduction:

2. Clear statements of user and system requirements:

3. Design of the relational database system using appropriate design tools and techniques:

P.1 Design a relational database system using appropriate design tools and techniques, containing at least four interrelated
tables, with clear statements of user and system requirements.

1. Introduction:

- Before going into my database introduction, I will say a few things that I know about the database.

1.1 What is the database?

A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where
databases are more complex they are often developed using formal design and modeling techniques.

1.2 Types of database:

There are 3 types of databases

1.2.1 Flat File Databases

A flat-file database is a database stored in a file called a flat file. Records follow a uniform format, and there are no structures
for indexing or recognizing relationships between records. The file is simple. A flat file can be a plain text file, or a binary file.

4|Page
Relationships can be inferred from the data in the database, but the database format itself does not make those relationships
explicit.

1.2.2Hierarchical Databases

A hierarchical database model is a data model in which the data are organized into a tree-like structure. The data are stored as
records which are connected to one another through links. A record is a collection of fields, with each field containing only one
value. The type of a record defines which fields the record contains.

5|Page
1.2.3 Relational Databases

A relational database is a digital database based on the relational model of data, as proposed by E. F. Codd in 1970. A software
system used to maintain relational databases is a relational database management system (RDBMS). Many relational database
systems have an option of using the SQL (Structured Query Language) for querying and maintaining the database.

- In relational model, data is organized into tables

Even the info about the tables is stored in tables

- Relationship among tables

6|Page
Defined by repeating column(s) from one in another table

These repeating columns are called “keys”

- This solved many problems

One of those is data redundancy

- Keys?

In RDBs, each table usually has one (or more) column(s) designated as a primary key

A key uniquely identifies each row in a table

Giving one of its values, you can find exactly one row in the table

This key becomes a foreign key when it is repeated in another table

7|Page
To create relationship between the tables

8|Page
1.2 Database Management System (DBMS)

The database management system (DBMS) is the software that interacts with end users, applications, and the database itself to
capture and analyze the data. The DBMS software additionally encompasses the core facilities provided to administer the
database. The sum total of the database, the DBMS and the associated applications can be referred to as a "database system".
Often the term "database" is also used to loosely refer to any of the DBMS, the database system or an application associated
with the database.

1.4 Database management system


9|Page
There are many database management systems such as Oracle, MySQL, Microsoft SQL Server, PostgreSQL ... But in my opinion
MySQL is the most widely used management system, because Microsoft SQL Server is always a name present. in the list of the
most popular database management system rankings. Developed since 1989, using Assembly C language, Linux, C ++, this is a
commercial DBMS that many people love and choose to use by its utilities.

→ Some basic features:

Works on Windows and Linux operating systems.

Compatible with Oracle.

Supply, effectively manage the volume of work.

Allow multiple users to use the same database.

2. Clear statements of user and system requirements:

For convenience stores, cooffe shops, milk tea shops, or companies, the salary issue is still a big problem for them, they will
calculate the pay and will pay later than 5 to 7. day in that month, so I was thinking of a database system to help with this

- There will be quite a lot of employees in the store or company and including their name, age and hometown
- There will be quite a lot of branch stores or companies so the assignment of employees to where to work is by their
managers.
- Customer is god.
- For product will have product name, product code.
- Sales will be reported to the manager when the employee shifts to each other, including where they work.
- And finally, the salary, wages will be calculated according to sales and commissions of that employee

3. Design of the relational database system using appropriate design tools and techniques:
To manage employees, number of loyal customers, and salary, we designed a database called Salary System. The database
includes 6 new tables of relationships as follows:
Staff (Staff name nvarchar (30), Num at int, age int, home town nvarchar (MAX))

10 | P a g e
Revenue (Work place nvarchar (50), Staff name nvarchar (30), Target int)
Assigned (Num at int, Work nvarchar (50), Work place nvarchar (50))
Customer (Staff name nvarchar (30), Customer nvarchar (30), Product ID int, Money bonus money)
Product (ID Product int, Product nvarchar (50))
Salary (Num at int, Target int, Salary money, Money bonus money)
So I explained to everyone the better understanding of my company's Salary System and this is my diagram

11 | P a g e
Referent
Dịch vụ hosting | Thuê máy chủ ảo VPS | Đăng ký tên miền giá rẻ. (2020). Cơ sở dữ liệu database là gì? có những loại
database nào?. [online] Available at: https://hostingviet.vn/co-so-du-lieu-database-la-gi [Accessed 7 Mar. 2020].

VietTuts. (2020). RDBMS là gì? - học sql cơ bản đến nâng cao - VietTuts. [online] Available at: https://viettuts.vn/sql/rdbms-la-
gi [Accessed 3 Mar. 2020].

Vi.wikipedia.org. (2020). PostgreSQL. [online] Available at:


https://vi.wikipedia.org/wiki/PostgreSQL?fbclid=IwAR36qJrtF9wXR63myb2m4-TrmXq5YHrHjKU3wFL0ZP2P5o3lXTEhyBS2kQ0
[Accessed 3 Mar. 2020].

Vn.wacontre.com. (2020). Ưu điểm nổi bật được mọi người sử dụng cơ sở dữ liệu Oracle là gì? | Tạo app Wacontre. [online]
Available at: https://vn.wacontre.com/vi/uu-diem-noi-bat-duoc-moi-nguoi-su-dung-co-so-du-lieu-oracle-la-gi-
2/?fbclid=IwAR0WWKqYwgp6UDKOIXjTHi-4ABW7A0eX7VqBU16vnAKNWWqjrLK7VTTTR1Q [Accessed 3 Mar. 2020].

Thư viện khoa học. (2020). Database là gì? Các loại database phổ biến - Thư viện khoa học. [online] Available at:
https://thuvienkhoahoc.net/database-la-gi-cac-loai-database-pho-bien.html [Accessed 7 Mar. 2020].

Blog TINOGROUP JSC. (2020). Database là gì ? Vai trò và tầm quan trọng của database. [online] Available at:
https://blog.tinohost.com/database-la-gi/ [Accessed 7 Mar. 2020].

Anon, (2020). [online] Available at: https://contentscrawl.com/get-help-in-database-management-assignment/ [Accessed 7


Mar. 2020].

Techopedia.com. (2020). What is a Database Management System (DBMS)? - Definition from Techopedia. [online] Available at:
https://www.techopedia.com/definition/24361/database-management-systems-dbms [Accessed 7 Mar. 2020].

SearchDataManagement. (2020). What is a Relational Database? - Definition from WhatIs.com.. [online] Available at:
https://searchdatamanagement.techtarget.com/definition/relational-database [Accessed 7 Mar. 2020].

En.wikipedia.org. (2020). Hierarchical database model. [online] Available at:


https://en.wikipedia.org/wiki/Hierarchical_database_model [Accessed 7 Mar. 2020].

Techterms.com. (2020). Flat File Definition. [online] Available at: https://techterms.com/definition/flatfile [Accessed 7 Mar.
2020].

12 | P a g e
13 | P a g e

Das könnte Ihnen auch gefallen