Sei sulla pagina 1di 22

Online Courses Website

Abstract

Online Courses Website will help the student to gather


information about a particular course and then they can easily
register them self in a particular course.

The management of the Website can easily see the records of the
students and course.

This presentation is about the analysis of Online Courses


Website . Diagrams purpose is to present System clearly and
completely as possible.

Purpose

Website will allow the registration of students in


particular course.

Student can login into system by using username and


check the details of course.

Scenario

The user enters the username and password and chooses if the user is student or
administrator. If entered details are valid, the users account becomes available. If it
invalid and appropriate message is displayed to the user.

A student can search all the courses available to him and he chooses the best course
he wants. The student can view course duration, lessons of the course he may
choose. When a student has successfully chosen a course, he can register to that
course. Upon registration, the students details are stored in database.

After registration to any course, the student may see the details of current course.
He may wish to know details about duration and other information. The
administrator also has the privilege to display details of the students and the
corresponding course for which they have registered. The administrator has to
perform duties of maintaining the course details any change to the course structured
is maintain by the administrator.

Queries , Transactions Events, Actions (Triggers) Of


The Database:

The website shall display all the courses that can be configured.
The website shall allow user to select the course to configure.
The website shall allow manager to update the configuration to resolve conflict in
the current configuration.
The website shall allow manager to add new course.
The website shall display detailed information of the selected course.
The website shall allow user to update the profile information.
The website shall enable the user to enter their ratings.
The website shall provide multi language support.
The website should be available for use 24 hours per day, 365 days per year.
Personal information should be protected.

ER Data Model Design

Transforming the ER Model to


the Relational Model

Category (category_no,name,descrption)

Sub-category(sub-category_no , category_no,name,descrption)

Course(course_no,category_no,sub-category_no,name,lessons_count,langague,
start-date , end-date)

Lessons(lesson_no ,sub-category_no , course_no, category_no , name, period)

Student(student_id,DOB,age,first_name,last_name,address,email,password,picture)

Employees(employee_id , first_name , last_name,address,email,password,


Picture , salary , job_id)

Trainer(employee_id,first_name,last_name,address,email,password,picture,salary,
job_id)
Manager(employee_id,first_name,last_name,address,email,password,picture,salary,
job_id)

Teaches(employee_id , course_no)

Registered(student_no , course_no)

Relational Database Design-Applying the Dependency


Theory

The database in 1NF :

No composite attributes .
No multi value attributes .
attributes whose values for an individual tuple are atomic.

2NF :

No 2NF

3 NF :
no non Prime attribute depend on another non prime attribute.

DATA BASE DESIGN

TABLE NAME: CATEGORY


Field Name

Type Name

CATEGORY_NO

VARCHAR(15)

NAME

VARCHAR(20)

DESCRIPTION

VARCHAR(20)

TABLE NAME: SUBCATEGORY


Field Name

Type Name

CATEGORY_NO

VARCHAR(15)

SUBCATEGORY_NO

VARCHAR(15)

NAME

VARCHAR(20)

DESCRIPTION

VARCHAR(20)

TABLE NAME:
COURSE
Type Name
Field Name
COURSE_NO

VARCHAR(15)

CATEGORY_NO

VARCHAR(15)

SUBCATEGORY_NO

VARCHAR(15)

NAME

VARCHAR(20)

RATE

VARCHAR(20)

LESSONS_NUMBER

VARCHAR(20)

LANGAUGE

VARCHAR(20)

START_DATE

DATE

END_DATE

DATE

TABLE NAME: LESSONS


Field Name

Type Name

LESSONS_NO

VARCHAR(15)

COURSE_NO

VARCHAR(15)

CATEGORY_NO

VARCHAR(15)

SUBCATEGORY_NO

VARCHAR(15)

NAME

VARCHAR(20)

PERIOD

VARCHAR(20)

TABLE NAME: STUDENT


Field Name

Type Name

STUDENT_NO

VARCHAR(15)

DATE-OF-BIRTH

DATE

FIRST-NAME

VARCHAR(15)

LAST-NAME

VARCHAR(15)

ADDRESS

VARCHAR(20)

EMAIL

VARCHAR(20)

PASSWORD

VARCHAR(20)

PICTURE

VARCHAR(20)

TABLE NAME: EMPLOYEES


Field Name

Type Name

EMPLOYEE-ID

VARCHAR(15)

DATE-OF-BIRTH

DATE

FIRST-NAME

VARCHAR(15)

LAST-NAME

VARCHAR(15)

ADDRESS

VARCHAR(20)

EMAIL

VARCHAR(20)

PASSWORD

VARCHAR(20)

PICTURE

VARCHAR(20)

SALARY

NUMERIC (20)

JOB-ID

VARCHAR(20)

TABLE NAME: TRAINER


Field Name

Type Name

EMPLOYEE-ID

VARCHAR(15)

DATE-OF-BIRTH

DATE

FIRST-NAME

VARCHAR(15)

LAST-NAME

VARCHAR(15)

ADDRESS

VARCHAR(20)

EMAIL

VARCHAR(20)

PASSWORD

VARCHAR(20)

PICTURE

VARCHAR(20)

SALARY

NUMERIC (20)

JOB-ID

VARCHAR(20)

TABLE NAME: MANAGER


Field Name

Type Name

EMPLOYEE-ID

VARCHAR(15)

DATE-OF-BIRTH

DATE

FIRST-NAME

VARCHAR(15)

LAST-NAME

VARCHAR(15)

ADDRESS

VARCHAR(20)

EMAIL

VARCHAR(20)

PASSWORD

VARCHAR(20)

PICTURE

VARCHAR(20)

SALARY

NUMERIC (20)

SQL Statements

Create Profile:
INSERT INTO STUDENT
(STUDENT_NO, DATE-OF-BIRTH, FIRST-NAME, LAST-NAME, ADDRESS, EMAIL,
PASSWORD, PICTURE)
VALUES (102, '12-25-2016', 'ASMAA', 'SHAHEEN', 'GAZA',
'ASMAA19952013@GMAIL.COM', '123456', 'IMAGE.JPG');

Search:
SELECT * FROM LESSONS WHERE COURSE_NO='111' ;
SELECT * FROM COURSE AS B INNER JOIN LESSONS AS S ON B. COURSE_NO
= S. COURSE_NO;

Update:
UPDATE CATEGORY SET NAME = 'PROGRAMMING', DESCRIPTION = '' WHERE
CATEGORY_NO = 111;

Potrebbero piacerti anche