You are on page 1of 12

I.

INTRODUCTION
Trong bai as em lam ve nhung van de gi: ve phan tich co so du lieu cho cong
ty gi do…
II. SYSTEM REQUIREMENTS
1. Real world scenario
……..
2. Data requirements for storage
Definition Entity:
Example
Trong bai nay em su dung cac thuc the sau:
Vi du: Customer
Entity Description Atribute Description Datatype
Atribute
Customer All Customer Idcustomer, … int
take part in
buying
Sales Sale take part
in saling, has a
person is
manager
……

....

Drawing user case diagram for BKC_Management System

2. Relationship between entities (P1)


a)classify relationship
--đây là trình bày lý thuyết về các loại quan hệ 1-1, 1—n, n---n

Vẽ sơ đồ minh họa

b)apply in my database
A Customer oder n Product=>the relationship between Customer and Product is One to
Many
.....

III. DATABASE DESIGN


1. ERD Diagram
Khái niệm ERD là gì: là sơ đồ mô tả các thực thể trong database của mình?
Dùng để làm gì
Co rat nhieu cong cu de thuc hien ve ERD :
6 Best ER Diagram Tools | Draw ER Diagram Easily | Edraw (edrawsoft.com)
Ke ten cac cong cu va dac diem=>sau do em chon cong cu nao
Sau khi chon xong thi em ve Ve ERD o day
Chụp cắt ERD

2. Convert ERD Diagram to Relation Diagram


Lược đồ quan hệ là gì (ER là gì)
Áp dụng vào bài toán của em
Chuyen luoc do ERD thanh luoc do quan he (ER)
Product(ProductID, ,……)
……
3. Normalization (M1)
3.1 Tai sao phai chuan hoa du lieu (hay chuan hoa co tac dung gi)
-Chuan hoa chia thanh cac loai nao
Ap dung vao bai cua minh
Vi du:Table Class: CLASS( ClassID, ClassName)
Table Account(username, password,accountType)
Username=”abc” và pass=”123”
Table Custommer(cusID, customerName, companyName, ….)
Bảng này thỏa mãn chuẩn 1NF vì tất cả các thuộc tính trong bảng này không nhận đa giá trị
Ví dụ

Bảng Product cũng thỏa mãn 1NFvì sao

thõa mãn chuẩn 1NF hay chưa? Vì sao


ĐÃ thỏa mãn 2NF hay chưa? Vì sao?
Bảng này thỏa mãn chuẩn hai vì trong bảng không còn tồn tại phụ thuộc hàm bộ
phận vào khóa chính, tất cả các quan hệ phụ thuộc bộ phận đã được tách ra

Bang nay da thoa man chuan 1NF vi sao, 2 NF vi sao va 3NF vi sao?
.Bảng Product thỏa mãn chuẩn 3:
Vì nó đã thỏa mãn chuẩn 2, và không còn thuộc tính không khóa nào phụ thuộc
tạm thời vào khóa chính.
Tất cả các thuộc tinh không khóa không phụ thuộc bắc cầu vào khóa chính mà
phụ thuộc đầy đủ vào khóa chính
Tất cả các phụ thuộc bắc cầu đã được loại bỏ và thay bằng quan hệ mới

4. Relational database system


a. Design Database.
He quan tri co so du lieu quan he la gi?
Ke ten mot so he quan tri co so du lieu quan he: SQL, MYSQL, ORACLE….,…>chon SQL
Ap dung Cac cau lenh SQl de tao bang Su dung cac cau lenh SQL de tao cac bang

CREATE DATABASE AGC_MANAGEMENT


Go

..chup cac lenh tao table


b. Database Diagram:
5. Implement a query language(P3)
SQL defines the following data languages to manipulate data
of the RDBMS.
1. DDL: Data Definition Language
2. DML: Data Manipulation Language
3. TCL: Transaction Control Language
4. DCL: Data Control Language
5.DQL: Data Query Language

Em sẽ Sử dụng DDL để thực hiện tạo CSDL,


Ví dụ Tạo bảng Empoyees
create table Product (
//có ràng buộc quantity>0
)
Các bảng khác tương tự
Sử dụng DMLtạo truy vấn,…

Thuc hien mot so cau lenh truy van de minh hoa de minh hoa cho thiet ke
database cua em la chuan
a. Select

b. Insert

cUpdate
d. Delete

Một số câu truy vấn nâng cao: INNER JOIN, LEFT JOIN …..
IV. DATABASE DEVELOPMENT(P2)

1. Form Login
I will design an interface that allows users to enter account information in the textbox at the
interface and confirm login at the login button and exit the program with the exit button. The
following is my
login form interface.

….
After I have the interface I will connect to the database via SQLConnection, Command ... We click on
the form to create a Form_Load event and then open and close the database. If connected to the
database, the program will notify a successful connection and if failed, it will not be able to access
the system.
2. Form Admin
Chụp ra và có demo minh họa, form này có những chức năng gì trên đó
Vi du: Noi ve ket noi database

Co code tương ứng và minh họa kết nối thành công=?sẽ ra giao diện gì
3. Form Management Product
4. Form Managecustomer,
Các form khác tương tự

V. TESTCASE AND TEST LOG (P4)


1. TESTCASE

Ứng dụng của các bạn khi viết xong có bao nhiêu màn hình mình phải test hết (phải test các
chức năng, thêm, chèn, sửa, xóa…)
2. Test Log46

VI. Produce technical and user documentation (p5)

the user manual must include how to start and exit the
database (application).
 What the important parts of the user interface are.
 Must include screenshots, which must have captions.
 Must have a table of contents (build using word).
 Must show step by step how to achieve the func tionality
provided.
 What to do if anything goes wrong.

Technical Manual
 The technical manual must contain enough detail to
inform another developer with what they need to know to
take your database further.
 They need to know –
 theERD.
 The physical schema.
 The backup/restore procedures.
 Validation techniques.
 The current version number with date must be included
for the RDBMS.

1. Technical documentation
a. ERD model explain, E-R model
➢ A semester will have at least one class and at most n classes and a class will have at
most n semester. The relationship between semester and class is the Many to Many
relationship….
b. Tables
Each table I will design a primary key and has a data type of ‘int’ and is not allowed
to be blank.
Chup anh cac bang.

c. Cac procedure dung trong bai viet


chup hinh step by step cac buoc back up database cua ban
VII. SYSTEM SECURITY AND MAINTAINACE (M2)
1. Security
Trinh bay cac noi dung, phuong phap dam bao securiry cho database cua ban (chup
hinh cac thao tac)
Database security is the control and measures put in place for the protection of
databases from malicious attacks. This is also the procedure that is followed to
secure the database management system that accesses this data.
Security documentation for SQL Server & Azure SQL Database - SQL Server | Microsoft Docs
Create a Database User - SQL Server | Microsoft Docs
Back up database and Encryption
2. Maintainace
Back up database and Encryption
Vi du:
BACKUP DATABASE [MYTestDB]
TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Backup\
MyTestDB.bak'
WITH
COMPRESSION,
ENCRYPTION
(
ALGORITHM = AES_256,
SERVER CERTIFICATE = BackupEncryptCert
),
STATS = 10
GO

Store procdure can helpful in maintaining data integrity, data control access and
improving productivity
The triggrer is mostly used for maitaince the integrity of the in formation on the database
2. User documentation
a. Login:
You need to enter data into the account textbox and password provided by the administrator.
Then click the
Login button to log in the system if the system notifies you that the account or password is
incorrect, you
must enter again. The exit button allows you to exit the program.
Faile Login:

b. Forms
Student: Lets you view all student information at school. You can add, edit, delete the desired
student
information and also search for the required information when entering the corresponding textbox
and
press the search button.
Class: Allows you to view all classroom information at the school. You can add, edit, delete desired
class
information and also search for the necessary information when entering the corresponding textbox
and
press the search button.
Subject: Allows you to view all subject information at the school. You can add, edit, delete the
desired
subject information and also search for the necessary information when entering the corresponding
textbox and press the search button…..

VII. Conclusion
XIII. References.

You might also like