Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Nguyen Tat Thanh

QLSV
Data Dictionary

05/01/2021

1
Table of contents
QLSV ...................................................................................................................................................................................................................................................... 6
1. New module ................................................................................................................................................................................................................................ 7
2. Other ............................................................................................................................................................................................................................................ 8
2.1. Tables ...................................................................................................................................................................................................................................... 8
2.1.1. Table: Diem .................................................................................................................................................................................................................... 8
2.1.2. Table: HeDT ................................................................................................................................................................................................................... 8
2.1.3. Table: Khoa .................................................................................................................................................................................................................... 8
2.1.4. Table: KhoaHoc ............................................................................................................................................................................................................ 9
2.1.5. Table: Lop ...................................................................................................................................................................................................................... 9
2.1.6. Table: MonHoc ............................................................................................................................................................................................................ 10
2.1.7. Table: SinhVien ............................................................................................................................................................................................................ 10
2.2. Procedures ........................................................................................................................................................................................................................... 11
2.2.1. Procedure: show_demsvcntt .....................................................................................................................................................................................11
2.2.2. Procedure: show_demsvkhoa .................................................................................................................................................................................. 11
2.2.3. Procedure: show_diemsvmt3 ...................................................................................................................................................................................11
2.2.4. Procedure: show_diemtbsvmt3 ............................................................................................................................................................................... 11
2.2.5. Procedure: show_diemthapnhat ............................................................................................................................................................................. 11
2.2.6. Procedure: show_sv ....................................................................................................................................................................................................11
2.2.7. Procedure: show_svba19 ........................................................................................................................................................................................... 11
2.2.8. Procedure: show_svcntt ............................................................................................................................................................................................ 11
2.2.9. Procedure: show_svhlmt3 ......................................................................................................................................................................................... 11
2.2.10. Procedure: show_svthilai ......................................................................................................................................................................................... 11
2.2.11. Procedure: show_svthilaimmt ................................................................................................................................................................................. 11
2.2.12. Procedure: show_top3sv ......................................................................................................................................................................................... 11

2
Legend
Primary key

Primary key disabled

User-defined primary key

Unique key

Unique key disabled

User-defined unique key

Active trigger

Disabled trigger

Many to one relation

User-defined many to one relation

One to many relation

User-defined one to many relation

Many to many relation

User-defined many to many relation

One to one relation

User-defined one to one relation

Input

Output

Input/Output

Uses dependency

User-defined uses dependency

Used by dependency

User-defined used by dependency

3
QLSV

4
1. New module

5
2. Other
2.1. Tables
2.1.1. Table: Diem

Columns
Name Data type Description / Attributes

MaSV Mã sinh viên


char(15) Nullable
References: SinhVien

MaMH Mã môn học


char(5) Nullable
References: MonHoc

HocKy int Học kỳ

DiemLan1 Điểm tk lần 1


int
Nullable

DiemLan2 Điểm tk lần 2


int
Nullable

Links to
Table Join Title / Name / Description

MonHoc DiemMaMH = MonHocMaMH FK__Diem__MaMH__59FA5E80

SinhVien DiemMaSV = SinhVienMaSV FK__Diem__MaSV__59063A47

2.1.2. Table: HeDT

Columns
Name Data type Description / Attributes

MaHeDT char(5) Mã hệ đào tạo

TenHeDT nvarchar(40) Tên hệ đào tạo

Linked from
Table Join Title / Name / Description

Lop HeDTMaHeDT = LopMaHeDT FK__Lop__MaHeDT__534D60F1

Unique keys
Name / Description

MaHeDT PK__HeDT__0C0AE7942726DF37

2.1.3. Table: Khoa

Columns
Name Data type Description / Attributes

MaKhoa char(5) Mã khoa

TenKhoa nvarchar(30) Tên khoa

DiaChi nvarchar(100) Địa chỉ

6
Name Data type Description / Attributes

DienThoai varchar(20) Điện thoại

Linked from
Table Join Title / Name / Description

Lop KhoaMaKhoa = LopMaKhoa FK__Lop__MaKhoa__52593CB8

Unique keys
Name / Description

MaKhoa PK__Khoa__65390405CAA66DB9

2.1.4. Table: KhoaHoc

Columns
Name Data type Description / Attributes

MaKhoaHoc char(5) Mã khóa học

TenKhoaHoc nvarchar(20) Tên khóa học

Linked from
Table Join Title / Name / Description

KhoaHocMaKhoaHoc = FK__Lop__MaKhoaHoc__5441852A
Lop
LopMaKhoaHoc

Unique keys
Name / Description

MaKhoaHoc PK__KhoaHoc__48F0FF988029B07C

2.1.5. Table: Lop

Columns
Name Data type Description / Attributes

MaLop char(5) Mã lớp

TenLop nvarchar(30) Tên lớp

MaKhoa Mã khoa
char(5) Nullable
References: Khoa

MaHeDT MaHDT
char(5) Nullable
References: HeDT

MaKhoaHoc Mã khóa học


char(5) Nullable
References: KhoaHoc

Links to
Table Join Title / Name / Description

HeDT LopMaHeDT = HeDTMaHeDT FK__Lop__MaHeDT__534D60F1

Khoa LopMaKhoa = KhoaMaKhoa FK__Lop__MaKhoa__52593CB8

7
Table Join Title / Name / Description

LopMaKhoaHoc = FK__Lop__MaKhoaHoc__5441852A
KhoaHoc
KhoaHocMaKhoaHoc

Linked from
Table Join Title / Name / Description

SinhVien LopMaLop = SinhVienMaLop FK__SinhVien__MaLop__571DF1D5

Unique keys
Name / Description

MaLop PK__Lop__3B98D27398B5CD04

2.1.6. Table: MonHoc

Columns
Name Data type Description / Attributes

MaMH char(5) Mã môn học

TenMH nvarchar(30) Tên môn học

SoTrinh int Số trình

Linked from
Table Join Title / Name / Description

Diem MonHocMaMH = DiemMaMH FK__Diem__MaMH__59FA5E80

Unique keys
Name / Description

MaMH PK__MonHoc__2725DFD9497F846F

2.1.7. Table: SinhVien

Columns
Name Data type Description / Attributes

MaSV char(15) Mã sinh viên

TenSV Tên sinh viên


nvarchar(20)
Nullable

GioiTinh Giới tính


bit
Nullable

NgaySinh Ngày sinh


datetime
Nullable

QueQuan Que Quan


nvarchar(50)
Nullable

MaLop Mã lớp
char(5) Nullable
References: Lop

8
Links to
Table Join Title / Name / Description

Lop SinhVienMaLop = LopMaLop FK__SinhVien__MaLop__571DF1D5

Linked from
Table Join Title / Name / Description

Diem SinhVienMaSV = DiemMaSV FK__Diem__MaSV__59063A47

Unique keys
Name / Description

MaSV PK__SinhVien__2725081AF3B0952B

2.2. Procedures
2.2.1. Procedure: show_demsvcntt

2.2.2. Procedure: show_demsvkhoa

2.2.3. Procedure: show_diemsvmt3

2.2.4. Procedure: show_diemtbsvmt3

2.2.5. Procedure: show_diemthapnhat

2.2.6. Procedure: show_sv

2.2.7. Procedure: show_svba19

2.2.8. Procedure: show_svcntt

2.2.9. Procedure: show_svhlmt3

2.2.10. Procedure: show_svthilai

2.2.11. Procedure: show_svthilaimmt

2.2.12. Procedure: show_top3sv

You might also like