0% found this document useful (0 votes)
102 views37 pages

Nguyễn Đức Thịnh (BKC12334) - Assignment 1- Database Design and Development

The document outlines a database design and development assignment for a student. The assignment involves designing a database system for a double glazing company called BKC to manage their customer and sales data. The assignment has four parts: [1] designing the database system, [2] developing and implementing the database based on the design, [3] testing the database, and [4] producing documentation for users and technical support. The student is asked to produce a report designing the database, then develop, test, and demonstrate the working database system. Documentation must also be created to help staff use and support the new system.

Uploaded by

Wì Pánh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views37 pages

Nguyễn Đức Thịnh (BKC12334) - Assignment 1- Database Design and Development

The document outlines a database design and development assignment for a student. The assignment involves designing a database system for a double glazing company called BKC to manage their customer and sales data. The assignment has four parts: [1] designing the database system, [2] developing and implementing the database based on the design, [3] testing the database, and [4] producing documentation for users and technical support. The student is asked to produce a report designing the database, then develop, test, and demonstrate the working database system. Documentation must also be created to help staff use and support the new system.

Uploaded by

Wì Pánh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 37

PROGRAM TITLE: BTEC in Computing (Software Engineering)

UNIT TITLE: … Database Design and Development …………

ASSIGNMENT NUMBER: …… Assignment 1……………….

ASSIGNMENT NAME: ………Student Management ………..

SUBMISSION DATE: …………2/4/2022…………………….

DATE RECEIVED: ……………22/1/2022……………………

TUTORIAL LECTURER: …Nguyễn Đức Giang……………..

WORD COUNT: ………………3089…………………………

STUDENT NAME: ……Nguyễn Đức Thịnh………………

STUDENT ID: ……………BKC12334…………………….

MOBILE NUMBER: ………0949692532………………….


Summative Feedback:

Internal verification:
Higher Nationals                                                              

Assignment Brief – BTEC (RQF)


Higher National Diploma in Computing

Student Name/ID Number Nguyen Duc Thinh

Unit Number and Title Unit 1: Database Design and Development

Academic Year 2021 - 2022

Unit Tutor Nguyen Duc Giang

Assignment Title Assignment BKC

Issue Date 22/1/2022

Submission Date 25/4/2022

IV Name & Date 25/4/2022

Submission Format

1. Design with evaluations


2. Presentation or Demonstration and evidence of testing of fully functional
database
3. Technical and User documentation
Unit Learning Outcomes

LO1 Use an appropriate design tool to design a relational database system for a
substantial problem.

LO2 Develop a fully functional relational database system, based on an existing system
design.

LO3 Test the system against user and system requirements.

LO4 Produce technical and user documentation.

Assignment Brief and Guidance

You have been employed as a Database Developer at a large IT consultancy company.


BKC, a local double-glazing company, has approached your company as they are rapidly
expanding. New housing developments, as a result of the government’s program of
regenerating the old disused factory complexes outside the city of Sheffield, have caused a
huge increase in the demand for their products and services from building contractors.
BKC has, to date, managed their business by using a computerized system which was
developed by a college student five years ago. The system is now too slow, and no system
documentation was produced when it was implemented so changes to the system cannot be
made easily. The CEO of BKC feels that, as their business requirements have changed, to
grow and manage their business successfully they need to invest in new technology and a
new system.
They currently have sales agents who follow up sales leads which are mainly generated
from their marketing material and calls taken by staff in the company office. Sales are also
generated by the agents who visit building contractors. Each visit from lead results in a
quote and some of these quote’s result in an actual sale, either to supply only or to supply
and install.
BKC supplies a huge range of windows and doors. They buy most of their products in bulk
from a few large manufacturers and store the products in their warehouse. They also make
some bespoke windows and doors in their workshop in the warehouse.
Your company has accepted the contract to develop a database system for BKC and to
provide the necessary technology to run the system. Your brief is to develop the database
system element of the contract from BKC.
You have been asked by your manager to investigate the system requirements, design,
create and implement the system. One of the requirements of the contract is that user and
technical documentation be made available to BKC.

Part 1 (LO1)
Before you start the development process, your manager has asked you to produce a
detailed report for the CEO of BKC.
Using appropriate tools and techniques, you will produce a comprehensive design for a
fully functional relational database system which will include at least four example tables,
interface, and output designs, data validations, and cover data normalization. They would
also like you to evaluate your design with the client’s requirements.

Part 2 (LO2 & LO3)


Once the designs have been accepted by your manager, you have been asked to develop,
implement, and test the database and then produce a presentation or demonstration for
representatives of BKC.
The client wants to be shown evidence of input and output interfaces, as well as evidence
for results and data validation. Utilizing a query language, evidence, and assessing the
quality of the data across multiple tables. Consideration should also be given to security
and ongoing maintenance issues. Evidence and assess your testing against the client’s
requirements, including how the choice of test data impacted the effectiveness of the
testing and suggest improvements to the system.

Part 3 (LO4)
Finally, BKC has asked that technical and user documentation be also produced for
distribution to a staff of varying computer literacy to help them navigate the database’s
interfaces. To aid future maintenance and continued system effectiveness, the flow of data
through the system should be shown as well as suggested improvements to the database
system.

Pass Merit Distinction

LO1. Differentiate between the role of a leader and the


function of a manager.

P1. Design a relational M1. Produce a


database system using comprehensive design for a D1. Evaluate the
appropriate design tools and fully functional system effectiveness of the design
techniques, containing at which includes interface and in relation to user and
least four interrelated tables, output designs, data system requirements.
with clear statements of user validations and data
and system requirements. normalisation.

LO2. Develop a fully functional relational database LO2 & 3


system, based on an existing system design
D2 Evaluate the
P2 Develop the database M2 Implement a fully effectiveness
system with evidence of user
functional database system of the database solution in
interface, output, and data
validations, and querying which includes system relation to user and system
across multiple tables. security and database
requirements, and suggest
maintenance.
improvements

P3 Implement a query
language into the relational M3 Assess whether
D3 Evaluate the database in
database system. meaningful data has been
terms of improvements
extracted through the use of
needed to ensure the
query tools to produce
appropriate management continued effectiveness of
information.

LO3 Test the system against user and system requirements

P4 Test the system M4 Assess the effectiveness


of
against user and system
the testing, including an
requirements.
explanation of the choice of

test data used.

LO4 Produce technical and user documentation

P5 Produce technical and M5 Produce technical and

user documentation. user documentation for a


fully functional system,
including diagrams showing
movement of data through
the system, and flowcharts
describing how the system
works.
Table of contents
LO1. Differentiate between the role of a leader and the function of a manager………..9

I. Introduction to Database Design & Development………………………………….……..9

II. Problem………………………………………………………………………………….15

III. Object…………………………………………………………………………………..16

LO2 Develop a fully functional relational database system, based on an existing system
design……………………………………………………………………………………….21

I. Code………………………………………………………………………………………21

II. Interface teacher, staff point of view…………………………………………………….25

LO3. Test and debug………………………………………………………………………29

Lo4. Produce technical and user documentation……………………………………..…31


LO1. Differentiate between the role of a leader and the function of a manager.

I. Introduction to Database Design & Development

Databases are the main in the most of the system in the modern world. It is designed and
buildup with the user requirements, software requirements and hardware requirements. A
database which contains databases, tables of data and maintain by the Database Management
System (DBMS) with applications controlled that databases. Databases are like Backend
work process because the Frontend (Applications) are direct the databases.

Types of Databases

 Transactional Databases – Main function of this database is to add new data, change
existing data, delete existing data. Eg: Client – Server Database
 Decision Support System (DSS) Database– They support decisions.
 Hybrid – It is a mixture of OLTP (On -line transaction processing) and data
warehouse throughout requirements.

Functions of DBMS

 Data Storage – Database can access by many users so they can storage, retrieve and
update data.
 Retrieve Data
 Update Data
 Data Communication Interfaces – Telecommunications can allow to transactions of
data through remote so, DBMS must provide an interface to assist the transactions.

Database Design

 Collecting Information
 Strategy & Planning Process
 Design & Implement Process
Data collecting is the main purpose in creating a database system because users will tell
about their requirements (They can have a imagination that is how our system would be like).
As a Database designer we need to consider about the software requirements and hardware
requirements. Planning will make the system more accurate and we will find the new needs to
fulfill the customers(users). Designing will allow to create a logical and physical design and
able to identify what are additional use to make the system effectively and after that the
development phase will start.

Figure 1: Sample Database Design

Keys

Primary Key: Primary key is used to uniquely identify the record in the tables. A table
wants a unique identification because there is no way to find a record without possible of
finding more than one record. So, primary key is a heart of a table.
Foreign Key: Foreign key is the copy of the primary keys. If you get a primary key from a
table and when you put that key into another table it will be as foreign key. After that we will
derive all data to that primary key located table to foreign key located table.

Relationships in Database

A relational database collects different types of data sets that use tables, records, and
columns. It is used to create a well-defined relationship between database tables so that
relational databases can be easily stored. For example of relational databases such as
Microsoft SQL Server, Oracle Database, MYSQL, etc.

There are some important parameters of the relational database:

 It is based on a relational model (Data in tables).


 Each row in the table with a unique id, key.
 Columns of the table hold attributes of data.

All entities in a database will connected through the relationship. They are:

 One to One Relationship (1:1): It is used to create a relationship between two tables
in which a single row of the first table can only be related to one and only one records
of a second table. Similarly, the row of a second table can also be related to anyone
row of the first table.
 One to Many Relationship: It is used to create a relationship between two tables.
Any single rows of the first table can be related to one or more rows of the second
tables, but the rows of second tables can only relate to the only row in the first table. It
is also known as a many to one relationship.
 Many to Many Relationship: It is many to many relationships that create a
relationship between two tables. Each record of the first table can relate to any records
(or no records) in the second table. Similarly, each record of the second table can also
relate to more than one record of the first table. It is also represented
an N:N relationship.
Figure 2: Relationships in Database

Normalization

Normalization is a process of determining the redundancy exist in the tables (multiple


values). If we want to reduce the redundancy, the main is Primary Key to Foreign Key. If we
assign a primary key in one table and put that same primary key as foreign key in other table
then, that table will derive the table details.

Benefits of Normalization

 Storage data will reduce


 The data will be organized correctly
 Easy to search the fields.
Types of Normalization

A large database defined as a single relation may result in data duplication. This
repetition of data may result in:

 Making relations very large.


 It isn't easy to maintain and update data as it would involve searching many records
inrelation.
 Wastage and poor utilization of disk space and resources.
 The likelihood of errors and inconsistencies increases.

So to handle these problems, we should analyze and decompose the relations with
redundant data into smaller, simpler, and well-structured relations that are satisfy desirable
properties. Normalization is a process of decomposing the relations into relations with fewer
attributes.

Entity Relationship Diagram

An E-R model is usually the result of systematic analysis to define and describe what is
important to processes in an area of a business. It does not define the business processes; it
only presents a business data schema in graphical form. It is usually drawn in a graphical
form as boxes (entities) that are connected by lines (relationships) which express the
associations and dependencies between entities. An ER model can also be expressed in a
verbal form, for example: one building may be divided into zero or more apartments, but one
apartment can only be located in one building.

Entities may be characterized not only by relationships, but also by additional properties
(attributes), which include identifiers called "primary keys". Diagrams created to represent
attributes as well as entities and relationships may be called entity-attribute-relationship
diagrams, rather than entity–relationship models.

An ER model is typically implemented as a database. In a simple relational database


implementation, each row of a table represents one instance of an entity type, and each field
in a table represents an attribute type. In a relational database a relationship between entities
is implemented by storing the primary key of one entity as a pointer or "foreign key" in the
table of another entity.
There is a tradition for ER/data models to be built at two or three levels of abstraction. Note
that the conceptual-logical-physical hierarchy below is used in other kinds of specification,
and is different from the three schema approach to software engineering.

Figure 3: Entity Relationship Diagram


II. Problem

In this assignment the enrollment system will help university easier to manage student,
course and easy to student to view the course they take part in. Which is need for the new
students and new teachers, simple for using in many consoles. This new system will have
high security for teacher to edit and view status course and student. Simple interface for
student and teachers to use, staff can edit and modify system.

Scope of the system

• Time: 4 months
• Budget: 20.000.000 VND
• Users: Student, teacher, staff support
• Campus: for all campus of Greenwich
• Modules included in the project: calendar
• Business rules

Course Enrollment

• Teachers can view about their available slots


• Head of department will assign teachers to classes
• TA create schedule & open/close enrollment
• Students enroll schedules
• TA deny/approve student enrollment
• Students view status of their enrollment
• Staff process changing request from teachers
• When student have a new course, the system will have an alerts for students and
teachers Students will see in course enrollment what course they have miss and can
assign new class
III. Object

Figure 4: Entity Relationship Diagram

Subject will required all info classNo and subjectsNo,teacherNo which is primary key

 Subjects have subjectNo and subject name,nootslot,yearlevel Course have


classNo,subjectsNo and teacherNo, entities
startDate,endDate,semester,room,building, campus
 Class table have ClassNo, startYears, endYears,maximum number,campus,major
 Course enrollment table have classNo, subjectNo, studentNo, date and stating
 Students table have studentsNo, entities FullName,DateOfBirth,Email
 Teachers table have teacherNo, Fullname,DateOfBirth,and phoneNumber Explain
relationship
 Students can enroll several courses, 1 course enrollment is registered by only 1
student. Therefore, student – course-enrollment is M-1
 Teachers can teach in 1 course ,1 course only assign one teachers, therefore teachers –
course is M-1
 Course can have many class, but class only have one course, therefore course – class
1-M
 Course can have many subjects, but subjects can only teach in course, relationship
course – subjects M-1
 Course enrollment can have many course to assign, course only one assign by course
enrollment, relationship Course enrollment – course 1-M

Physical design (Data validation)

Attributes Data type NULL PK/FK Format/Constraint/Domain/Value

Class_no Char(7) Not null PK 0903

Subjects_no Int Not null PK 1920

Teacher_no Char(7) Not null PK GCH1922

Startdate Date Not null 2020-5-23

enddate Date Not null 2020-5-23

Semester Char(100) Not null SPRING2020

Room Int Not null 1002

Building Char(100) Not null First build

Campus Char(100) Not null HN


Course enrollment

Attributes Data type NULL PK/FK Format/Constraint/Domain/Value

Class_no Char(7) Not null PK GCH0903

Subjects_no Int Not null PK 1620

Teacher_no Char(7) Not null PK 0304

Date Date Not null 2020-6-4

Student_no Char(10) Not null PK GCH200641

Class

Attributes Data type NULL PK/FK Format/Constraint/Domain/Value

ClassNo Char(7) Not null PK GCH0903

Start year Int Not null 2019-5-15

End year Char(7) Not null 2015-5-12

Class Date Not null GCH0903

Major Char(10) Not null CODER

Max number Int Not null 35

Subjects

Attributes Data type NULL PK/FK Format/Constraint/Domain/Value

subjectNo Varchar(20) Not null PK 1620

subjectName varChar(100) Not null Database

nootslots Int Not null 3

subject level varChar(100) Not null senior


Teacher

Attributes Data type NULL PK/FK Format/Constraint/Domain/Value

TeacherNO Char(7) Not null PK 0406

Fullname nvarchar(100) Not null Le Duc Anh

DOB Date Not null 2016-5-24

Phone Char(10) Not null 0998987399

Student

Attributes Data type NULL PK/FK Format/Constraint/Domain/Value

StudentNO Char(10) Not null PK GCH200641

Fullname nvarchar(100) Not null Nguyen Duc Thinh

DOB Date Not null 2002-6-15

Email Varchar(30) Not null [email protected]

Table name Attribute content Data type PK or Fk referencesd


name FK table
Course Class_no Class no Char(7) FK CLASS
Subjects_no Subjects no Int FK SUBJECTS
Teacher_no Teacher no Char(7) FK TEACHER
Strartdate Start date Date
Enddate End date Date
Semester Semester Char(100)
Room Room Int
Building Building Char(100)
Campus Campus Char(100)
Course Class_no Class no Char(7) FK CLASS
enrollment Subjects_no Subjects no Int FK SUBJECTS
Student_no Student no Char(7) FK STUDENT
Teacher_no Teacher no Char(10) Date FK TEACHER
Dates Dates
Class Class_no Class no Int PK/FK COURSE/
Startyear Start year Date COURSE
Endyear End year Date ENROLLMENT
Maxnumber Max number Char(7)
Campus Campus Char(100)
Major Major Int
Subjects Subjects_no Subjects no Varchar(20) PK/FK COURSE/
Subjectsname Subjects Varchar(100) COURSE
Nootslot name Int ENROLLMENT
Year_level Nootslot Varchar(10)
Year level
Teacher Teacher_no Teacher no Char(7) PK/FK COURSE/
Fullname Full name Nvarchar(100) COURSE
DOB DOB Date ENROLLMENT
Phone Phone Char(10)
Student Student_no Student no Char(10) PK/FK COURSE/
Full_name Full name Nvarchar(100) COURSE
DOB DOB Date ENROLLMENT
email email Varchar(30)
LO2 Develop a fully functional relational database system, based on an existing system
design

I. CODE

create database courseenrollment;

use courseenrollment;

create table subjects (

subjects_no varchar(20) primary key not null,

subjects_name varchar(100) not null,

noots_slots int not null,

year_level varchar(10) not null

);

create table teacher (

teacher_no char(7) primary key not null,

full_name nvarchar(100) not null,

DOB date not null,

phone char(10) not null

);

create table class (

class_no int primary key not null,

start_year date not null,

end_year date not null,


class char(7) not null,

major char(100) not null,

max_number int not null

);

create table student (

student_no char(10) primary key not null,

DOB date not null,

full_name nvarchar(100) not null,

email varchar(30) not null

);

create table course (

course_no int not null,

subjects_no varchar(20) not null,

teacher_no char(7) not null,

class_no int not null,

room int not null,

building char(100) not null,

semester char(100) not null,

campus char(100) not null,

startdate date not null,

enddate date not null,


constraint pk_course primary key(course_no),

constraint fk1_course foreign key (class_no) references class(class_no),

constraint fk2_course foreign key (subjects_no) references subjects(subjects_no),

constraint fk3_crouse foreign key (teacher_no) references teacher(teacher_no)

);

create table course_enrollment (

student_no char(10) not null,

course_no int not null,

dates date not null,

statuss varchar(10) not null,

constraint pk_course_enrollment primary key(student_no,course_no),

constraint fk1_course_enrollment foreign key (student_no) references student(student_no),

constraint fk2_course_enrollment foreign key (course_no) references course(course_no)

);

insert into class values ('0903','2020.5.25','2023.6.22','GCH0602','CODER','35');

insert into class values ('0607','2021.5.25','2024.5.22','GCH0602','CODER','35');

insert into subjects values ('GCH1920','database','20','senior');

insert into subjects values ('GCH0703','networking','15','senior');

insert into subjects values ('GCH0603','computer system','20','senior');

insert into subjects values ('GCH0606','computer system','18','senior');


insert into teacher values ('0406','Nguyen khánh tùng','2020.4.22','0938828481');

insert into teacher values ('0903','pham thùy dương','2020.6.2','0982312322');

insert into teacher values ('0703','pham văn tùng','2020.8.19','0983887787');

insert into teacher values ('0447','Do hồng quân','2020.7.10','0973232222');

insert into class values ('0606','2018.5.25','2021.7.15','GCH0608','Computer System','35');

insert into class values ('0501','2019.5.25','2022.6.21','GCH0607','Database Design


Conceptss','35');

insert into student values ('GCH200641','2002.4.2','Nguyễn đức thịnh',


'[email protected]');

insert into student values ('GCH200432','2002.7.17','Nguyễn đức anh',


'[email protected]');

insert into student values ('GCH200342','2002.8.19','nguyễn đức tú',


'[email protected]');

insert into student values ('GCH200282','2002.12.2','nguyễn đức


thành' ,'[email protected]');

insert into course values ('1','GCH1920','0406','0903','0302','first bulding',


'spr2021','HN','2019.5.22','2023.6.22');

insert into course values ('2','GCH0703','0903','0607','1002','first building',


'summer2022','HN','2020.6.22','2023.7.22');

insert into course values ('3','GCH0603','0703','0606','2902','second


building','summer2020','HN','2021.6.15','2024.7.22');

insert into course values ('4','GCH0606','0447','0501','1502','third building',


'winter2021','HN','2020.11.11','2023.12.22');

insert into course_enrollment values ('GCH200641','1','2002.4.22','pending');


insert into course_enrollment values ('GCH200342','2','2002.8.19','approve');

insert into course_enrollment values ('GCH200432','3','2002.7.17','pending');

insert into course_enrollment values ('GCH200641','4','2019.6.22','approve');

II. Interface teacher, staff point of view

Course table teacher view:

Figure 5: teacher view

Staff can delete the information of course:

delete from course where course_no = '2'; and can add more information

Figure 6: delete the information of course

Figure 7: add more information


Code: insert into course values ('1','GCH1920','0406','0903','0302','first
bulding','spring2021','HN','2019.5.22','2023.6.22');

teacher view:

Figure 8: insert into course

Staff view:

Staff can delete information delete from course_enrollment where class_no=606;

and can add more information using edit and add

Figure 9: delete from course_enrollment

Code: insert into course_enrollment values ('1','1920','0406','GCH200903','0302','2023.6.22');


Class table teacher view

Figure 10: Class table teacher view

staff view:

Staff can edit, delete the information have choose For example : delete from class where
class_no = '606' ; Staff Add more information:

Figure 11: delete the information

Figure 12: Add more information


Code: insert into class values ('0606','2018.5.25','2021.7.15','GCH0608','Computer
System','35');

Subjects table teacher view:

Figure 13: Subjects table teacher view

Subject table staff view: Staff delete the information subject subject delete from subjects
where subjects_no = 'GCH0606'; and edit ,add more information :

Figure 14: delete the information subject

Code: insert into subjects values ('GCH1920','database','20','senior');


LO3. Test and debug

Test Test title Input Details Error After fixing Status

1 Insert into insert into subjects values Passed


subjects ('GCH1920','database','20','se
informatio nior');
n
Delete delete from subjects where Passed
subjects subjects_no = '20';
informatio
n
Update update subjects set Passed
subjects year_level= '2020-6-23'
informatio where subjects_no = '20';
n
2 Insert into insert into teacher values Passed
Teacher ('0406','Nguyen khánh
tùng','2020.4.22','0938828481
');
Delete delete from teacher where Passed
teacher teacher_no = '0406';
Update update teacher set full_name Passed
teacher = 'Nguyen Han Anh' where
teacher_no= '0406' ;
3 Insert into insert into class values Passed
class ('0903','2020.5.25','2023.6.22'
,'GCH0602','CODER','35');
Insert into delete from class where Passed
class class_no = '0903';
update class set start_year = Passed
'2019-7-22' where class_no =
'0607' ;
4 Insert into insert into student values Passed
student ('GCH200641','2002.4.22','Ng
uyễn đức
Thịnh','[email protected]');
Delete delete from Student where Passed
student Student_no = 'GCH200641';
Delete update Student set DOB= Passed
student '2002-7-8' where student_no
= 'GCH200641' ;
5 Insert into insert into course values Passed
course ('1','GCH1920','0406','0903','0
302','first
bulding','spr2021','HN','2019.
5.22','2023.6.22');
Delete delete from course where Passed
course course_no = '1';
Update update course set Passed
course subjects_no= 'GCH1922'
where class_no ='0903';
6 Insert into insert into course-enrollment Passed
course values
enrollment ('0903','GCH1920'.'0406','GC
H200641','1','2019.5.22');
Delete delete from Passed
course course_enrollment where
enrollment course_no = '1' ;
Update update course_enrollment set Passed
course teacher_no ='0406' where
enrollment course_no= '1' ;
Lo4. Produce technical and user documentation

Download MySQL

Download MySQL from: http://dev.mysql.com/downloads/

Figure 15
Click and enter the password

Figure 16.

Copy the entire code

Figure 17
Paste in and run the code

Figure 18

The entire database has been created

Figure 19
How to use

User will choose the roles view, or edit the course Each option have difference
permission For example staff can edit, update and delete information of course, course
enrollment and teacher, class,.. Teacher can view the course take part in, and see the
upcoming course , and student take part in class Student can only view the status of course
and teacher take part in the course User will have an interface like this, to view edit or delete.

For staff ,user can fill the information of the course:

update course set subjects_no= 'GCH1922' where class_no ='0903';

Staff can delete the line user has choose and refill the blank:

delete from course where course_no = '1';

Staff can insert the information:

insert into course values ('1','GCH1920','0406','0903','0302','first


bulding','spr2021','HN','2019.5.22','2023.6.22');

Only staff can edit the system, student and teacher can view the interface

Staff can Select a line and edit ,delete it, or can fill the information:

insert into course values ('1','GCH1920','0406','0903','0302','first


bulding','spr2021','HN','2019.5.22','2023.6.22');

Staff can delete code:

delete from course_enrollment where class_no=606;

Staff can update information:

update course_enrollment set teacher_no ='0406' where course_no= '1' ;

Only staff can edit ,delete the information in interface


Course enrolment

Insert information:

insert into class values ('0903','2020.5.25','2023.6.22','GCH0602','CODER','35');

Staff can edit, delete the information have choose:

delete from course_enrollment where course_no = '1';

Staff can delete the information from class:

delete from class where class_no = '0903';

Staff can update the information:

update class set start_year = '2019-7-22' where class_no = '0607';

Class

Staff can update information:

update class set start_year = '2019-7-22' where class_no = '0607';

Staff delete the information subject:

delete from subjects where subjects_no = '20';

teacher can easier view the subject to study ,student will know the subject tiles

Subject

Staff insert information of new subject:

insert into subjects values ('GCH1920','database','20','senior');

Modify name or changes subjects:

update subjects set year_level= '2020-6-23' where subjects_no = '20';


Teacher

Staff modify the line from table teacher

Delete the line teacher information:

delete from teacher where teacher_no = '0406';

Staff insert the information of teacher:

insert into teacher values ('0406','Nguyen khánh tùng','2020.4.22','0938828481');

Staff can update the information:

update teacher set full_name = 'Nguyen Han Anh' where teacher_no= '0406';

Teacher have permission to view the table but only staff can edit and modify.

Teacher can only view cant delete the information of course.

Student can only view course ,course enrollment and class.

Student can view course status:

 subjects learn
 teacher of subject
 place to study

You might also like