Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract
The management of the Website can easily see the records of the
students and course.
Purpose
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.
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.
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)
Student(student_id,DOB,age,first_name,last_name,address,email,password,picture)
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)
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.
Type Name
CATEGORY_NO
VARCHAR(15)
NAME
VARCHAR(20)
DESCRIPTION
VARCHAR(20)
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
Type Name
LESSONS_NO
VARCHAR(15)
COURSE_NO
VARCHAR(15)
CATEGORY_NO
VARCHAR(15)
SUBCATEGORY_NO
VARCHAR(15)
NAME
VARCHAR(20)
PERIOD
VARCHAR(20)
Type Name
STUDENT_NO
VARCHAR(15)
DATE-OF-BIRTH
DATE
FIRST-NAME
VARCHAR(15)
LAST-NAME
VARCHAR(15)
ADDRESS
VARCHAR(20)
VARCHAR(20)
PASSWORD
VARCHAR(20)
PICTURE
VARCHAR(20)
Type Name
EMPLOYEE-ID
VARCHAR(15)
DATE-OF-BIRTH
DATE
FIRST-NAME
VARCHAR(15)
LAST-NAME
VARCHAR(15)
ADDRESS
VARCHAR(20)
VARCHAR(20)
PASSWORD
VARCHAR(20)
PICTURE
VARCHAR(20)
SALARY
NUMERIC (20)
JOB-ID
VARCHAR(20)
Type Name
EMPLOYEE-ID
VARCHAR(15)
DATE-OF-BIRTH
DATE
FIRST-NAME
VARCHAR(15)
LAST-NAME
VARCHAR(15)
ADDRESS
VARCHAR(20)
VARCHAR(20)
PASSWORD
VARCHAR(20)
PICTURE
VARCHAR(20)
SALARY
NUMERIC (20)
JOB-ID
VARCHAR(20)
Type Name
EMPLOYEE-ID
VARCHAR(15)
DATE-OF-BIRTH
DATE
FIRST-NAME
VARCHAR(15)
LAST-NAME
VARCHAR(15)
ADDRESS
VARCHAR(20)
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;