Arjov Maharjan
Arjov Maharjan
Arjov Maharjan
Semester
2023 Autumn
Student Name: Arjov Maharjan
London Met ID: 22015657
College ID: np01cp4s220111
Assignment Due Date: 20th March
Assignment Submission Date: 20th March
Word Count (Where Required): 1901
I confirm that I understand my coursework needs to be submitted online via Google Classroom under
the relevant module page before the deadline in order for my assignment to be accepted and marked. I
am fully aware that late submissions will be treated as non-submission and a mark of zero will be
awarded.
Table of Contents
1. Introduction...............................................................................................1
2. Normalization............................................................................................2
2.1 Normalization of Fig.1..........................................................................2
2.2 Normalization of fig.2...........................................................................3
3. Integration and Assumptions.....................................................................5
3.1 Assumptions.........................................................................................5
3.2 Integration............................................................................................5
4. ERD............................................................................................................6
5. Data Dictionary.........................................................................................7
6. Script.........................................................................................................8
7. Inserting Values into the tables...............................................................13
7.1 Inserting Value into students table....................................................13
7.2 Inserting Value into course table.......................................................16
7.3 Inserting value into enrollment table.................................................19
7.4 Inserting value into lesson table........................................................21
7.5 Inserting value into student activities table.......................................24
7.6 Inserting value into content table......................................................27
7.7 Inserting value into instructor table...................................................30
7.8 Inserting value into question table.....................................................33
7.9 Inserting value into feedback table....................................................36
8. Select Statement.....................................................................................40
8.1 Selecting Data from Students table...................................................40
8.2 Selecting Data from Course table......................................................40
8.3 Selecting Data from Course table......................................................41
8.4 Selecting Data from Content table.....................................................41
8.5 Selecting Data from Feedback table..................................................42
8.6 Selecting Data from Instructors table................................................42
8.7 Selecting Data from Lesson table......................................................43
8.8 Selecting Data from Question table...................................................43
8.9 Selecting Data from Student activities table......................................44
9. Implementation of Web-based Database Application..............................44
9.1 Basic Webforms.................................................................................44
9.1.1 Student Details.............................................................................45
9.1.2 Instructor Details..........................................................................46
9.1.3 Course detail................................................................................46
9.1.4 Lesson details...............................................................................47
9.1.5 Progress details............................................................................48
9.2 Complex Webform..............................................................................48
10. Forms....................................................................................................50
10.1 Home page......................................................................................50
10.2 Complex Form.................................................................................50
10.2.1 Student Enrollment....................................................................50
10.2.2 Course Instructor.......................................................................52
10.2.3 Top Course................................................................................53
11. Testing..................................................................................................54
11.1 Student Details:...............................................................................54
11.2 Lesson Details.................................................................................56
11.3 Course page....................................................................................57
11.4 Instructor page................................................................................59
Error:...........................................................................................................61
12. Conclusion.............................................................................................64
Table of figures:
1
teachers the ideal setting in which to offer engaging classes and
interact productively with their students.
2
2. Normalization
In EnrolCourse-1
CourseID->
CourseName
CourseID, StudentID-> Enrollment Date
3
3NF – Checking for Transitive
Dependency All tables
4
Student-3(StudentID, StudentName, Contact, DOB,
Email) Course-3(CourseID, CourseName)
Student-Course-3(StudIentD*, CourseID*, EnrollmentDate)
5
Lesson-Title -2 (LessonID*, CourseID*, LessonTitle)
6
Lesson-Instructor-Student -2 (LessonID*, StudentID*,
CourseID*, LastAccessedDate, LessonStatus)
7
3. Integration and Assumptions
3.1 Assumptions
Each student may register for more than one course, and there
may be more than one student enrolled in each course.
Within the courses they are registered in, students have access
to classes, and each lesson tracks their progress separately.
3.2 Integration
Student:
Attributes: StudentID (Primary Key), StudentName, Contact, DOB, Email
Course:
Attributes: CourseID (Primary Key), CourseTitle, InstructorID
(Foreign Key), InstructorName
Instructor:
Attributes: InstructorID (Primary Key), InstructorName
StudentCourse (Enrollment):
Attributes: StudentID (Foreign Key), CourseID (Foreign Key)
Lesson:
Attributes: LessonID (Primary Key), CourseID (Foreign Key), LessonTitle
LessonProgress(Student_activities):
Attributes: LessonID (Foreign Key), StudentID
(Foreign Key), LastAccessedDate, LessonStatus
8
4. ERD
9
5. Data Dictionary
10
6. Script
11
);
12
ALTER TABLE enrollment ADD CONSTRAINT question_pkv3 PRIMARY
KEY ( student_id,
course_id );
13
lesson_id VARCHAR2(10) NOT
NULL, course_id VARCHAR2(10)
NOT NULL, lesson_title
VARCHAR2(50)
14
);
15
phone_number );
16
CREATE TABLE student_activities (
lesson_id VARCHAR2(10) NOT NULL,
student_id VARCHAR2(10) NOT NULL,
course_id VARCHAR2(10) NOT NULL,
last_accessed_dtae DATE,
lesson_status VARCHAR2(20)
);
17
ALTER TABLE feedback
ADD CONSTRAINT feedback_instructor_fk FOREIGN KEY (
instructor_id ) REFERENCES instructor ( instructor_id );
18
ALTER TABLE student_activities
ADD CONSTRAINT student_activities_student_fk FOREIGN
KEY ( student_id )
REFERENCES student ( student_id );
INSERT ALL
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S001', 'John Smith', TO_DATE('1995-05-
15', 'YYYY-MM-DD'),
'[email protected]', '123-456-7890')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S002', 'Jane Doe', TO_DATE('1996-08-25',
'YYYY-MM-DD'),
'[email protected]', '987-654-3210')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S003', 'Michael Johnson', TO_DATE('1994-
11-10', 'YYYY-MM-
DD'), '[email protected]', '456-789-0123')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S004', 'Emily Brown', TO_DATE('1997-02-
18', 'YYYY-MM-DD'),
'[email protected]', '789-012-3456')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S005', 'David Wilson', TO_DATE('1993-09-
30', 'YYYY-MM-DD'),
'[email protected]', '321-654-0987')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S006', 'Sarah Taylor', TO_DATE('1998-04-
22', 'YYYY-MM-DD'),
'[email protected]', '654-321-9870')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S007', 'James Martinez', TO_DATE('1992-12-
19
05', 'YYYY-MM-DD'),
'[email protected]', '012-345-6789')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S008', 'Jessica Anderson',
TO_DATE('1999-07-17', 'YYYY-MM-
DD'), '[email protected]', '876-543-2109')
20
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S009', 'Daniel Hernandez',
TO_DATE('1991-10-12', 'YYYY-MM-
DD'), '[email protected]', '234-567-8901')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S010', 'Ashley Garcia', TO_DATE('1990-
03-28', 'YYYY-MM-DD'),
'[email protected]', '543-210-9876')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S011', 'Christopher Young',
TO_DATE('1996-06-08', 'YYYY-MM-
DD'), '[email protected]', '890-123-4567')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S012', 'Amanda Lewis', TO_DATE('1993-
01-14', 'YYYY-MM-DD'),
'[email protected]', '432-109-8765')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S013', 'Matthew Lee', TO_DATE('1998-08-
02', 'YYYY-MM-DD'),
'[email protected]', '901-234-5678')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S014', 'Nicole Walker', TO_DATE('1994-
05-20', 'YYYY-MM-DD'),
'[email protected]', '210-987-6543')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S015', 'Kevin Perez', TO_DATE('1995-12-
01', 'YYYY-MM-DD'),
'[email protected]', '654-321-0987')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S016', 'Brittany Wright', TO_DATE('1997-
09-11', 'YYYY-MM-DD'),
'[email protected]', '543-210-9876')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S017', 'Andrew Hill', TO_DATE('1992-04-
29', 'YYYY-MM-DD'),
'[email protected]', '109-876-5432')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S018', 'Samantha King', TO_DATE('1991-
21
11-09', 'YYYY-MM-DD'),
'[email protected]', '678-901-2345')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S019', 'Ryan Scott', TO_DATE('1990-02-
15', 'YYYY-MM-DD'),
'[email protected]', '987-654-3210')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S020', 'Lauren Green', TO_DATE('1993-
07-26', 'YYYY-MM-DD'),
'[email protected]', '876-543-2109')
22
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S021', 'Justin Adams', TO_DATE('1996-10-
05', 'YYYY-MM-DD'),
'[email protected]', '456-789-0123')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S022', 'Rachel Campbell',
TO_DATE('1994-03-18', 'YYYY-MM-
DD'), '[email protected]', '765-432-1098')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S023', 'Brandon Ramirez',
TO_DATE('1998-06-29', 'YYYY-MM-
DD'), '[email protected]', '234-567-8901')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S024', 'Melissa Torres', TO_DATE('1992-
09-08', 'YYYY-MM-DD'),
'[email protected]', '543-210-9876')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S025', 'Kyle Parker', TO_DATE('1995-
12-11', 'YYYY-MM-DD'),
'[email protected]', '876-543-2109')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S026', 'Alexis Evans', TO_DATE('1993-05-
27', 'YYYY-MM-DD'),
'[email protected]', '210-987-6543')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S027', 'Tyler Diaz', TO_DATE('1997-08-
07', 'YYYY-MM-DD'),
'[email protected]', '987-654-3210')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S028', 'Hannah Nelson', TO_DATE('1994-
01-19', 'YYYY-MM-DD'),
'[email protected]', '765-432-1098')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S029', 'Benjamin Murphy',
TO_DATE('1991-04-24', 'YYYY-MM-
DD'), '[email protected]', '234-567-8901')
INTO student (student_id, student_name, dob, email,
phone_number) VALUES ('S030', 'Kayla Cooper', TO_DATE('1998-
23
03-05', 'YYYY-MM-DD'),
'[email protected]', '543-210-
9876') SELECT * FROM DUAL;
24
Figure 3: inserting value into student table
INSERT ALL
INTO course (course_id, title, description) VALUES ('C001', 'Math',
'Introduction to Mathematics')
INTO course (course_id, title, description) VALUES ('C002',
'English', 'Introduction to English Literature')
INTO course (course_id, title, description) VALUES ('C003',
'History', 'World History: From Ancient Times to Present')
INTO course (course_id, title, description) VALUES ('C004',
'Biology', 'Introduction to Biology: Basics of Life')
INTO course (course_id, title, description) VALUES ('C005',
'Chemistry', 'Fundamentals of Chemistry')
INTO course (course_id, title, description) VALUES ('C006',
'Physics', 'Introduction to Physics: Laws of Nature')
25
INTO course (course_id, title, description) VALUES ('C007',
'Computer Science', 'Introduction to Computer Science and
Programming')
INTO course (course_id, title, description) VALUES ('C008', 'Art',
'Exploring Art: Creativity and Expression')
INTO course (course_id, title, description) VALUES ('C009', 'Music', 'Music
Appreciation: Understanding the Elements of Music')
INTO course (course_id, title, description) VALUES ('C010',
'Psychology', 'Introduction to Psychology: Understanding the Mind')
INTO course (course_id, title, description) VALUES ('C011',
'Sociology', 'Introduction to Sociology: Study of Society')
INTO course (course_id, title, description) VALUES ('C012',
'Economics', 'Principles of Economics: Understanding Markets and
Economies')
INTO course (course_id, title, description) VALUES ('C013',
'Philosophy', 'Introduction to Philosophy: Questions about
Existence and Reality')
INTO course (course_id, title, description) VALUES ('C014',
'Political Science', 'Introduction to Political Science: Understanding
Politics')
INTO course (course_id, title, description) VALUES ('C015',
'Geography', 'Physical and Human Geography: Exploring the
World')
INTO course (course_id, title, description) VALUES ('C016',
'Literature', 'Exploring Literature: Appreciating Literary Works')
INTO course (course_id, title, description) VALUES ('C017',
'Foreign Language', 'Learning a Foreign Language: Basics of
Communication')
INTO course (course_id, title, description) VALUES ('C018',
'Health', 'Health and Wellness: Taking Care of Your Body and Mind')
INTO course (course_id, title, description) VALUES ('C019',
'Environmental Science', 'Introduction to Environmental Science:
Understanding the Environment')
INTO course (course_id, title, description) VALUES ('C020',
'Physical Education', 'Physical Fitness and Sports: Importance of
Exercise')
26
INTO course (course_id, title, description) VALUES ('C021',
'Engineering', 'Introduction to Engineering: Principles and
Applications')
INTO course (course_id, title, description) VALUES ('C022',
'Business', 'Introduction to Business: Fundamentals of
Commerce')
27
INTO course (course_id, title, description) VALUES ('C023',
'Marketing', 'Principles of Marketing: Understanding Consumer
Behavior')
INTO course (course_id, title, description) VALUES ('C024',
'Finance', 'Introduction to Finance: Managing Money and
Investments')
INTO course (course_id, title, description) VALUES
('C025', 'Communication', 'Effective Communication:
Skills for Success')
INTO course (course_id, title, description) VALUES ('C026', 'Anthropology',
'Introduction to Anthropology: Study of Human Societies and Cultures')
INTO course (course_id, title, description) VALUES ('C027',
'Criminal Justice', 'Introduction to Criminal Justice: Understanding
Law and Order')
INTO course (course_id, title, description) VALUES ('C028',
'Education', 'Foundations of Education: Learning and Teaching
Principles')
INTO course (course_id, title, description) VALUES ('C029',
'Nursing', 'Fundamentals of Nursing: Basics of Patient Care')
INTO course (course_id, title, description) VALUES ('C030',
'Architecture', 'Introduction to Architecture: Design and
Construction Principles')
SELECT * FROM DUAL;
28
Figure 4: inserting value into course table
29
7.3 Inserting value into enrollment table
INSERT ALL
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S001', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S002', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S003', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S004', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S005', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S006', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S007', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S008', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S009', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S010', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S011', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S012', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S013', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S014', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S015', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
30
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S016', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S017', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S018', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S019', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S020', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S021', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S022', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S023', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S024', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S025', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S026', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S027', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S028', 'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S029', 'C002', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
INTO enrollment (student_id, course_id, enrollment_date) VALUES
('S030', 'C003', TO_DATE('2024-03-17', 'YYYY-MM-DD'))
SELECT * FROM DUAL;
31
Figure 5: inserting value into enrolment table
INSERT ALL
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L001',
'C001', 'Introduction to Programming')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L002',
'C001', 'Variables and Data Types')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L003',
'C001', 'Control Statements')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L004',
'C002', 'Introduction to Databases')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L005',
'C002', 'SQL Basics')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L006',
'C002', 'Advanced SQL Queries')
32
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L007',
'C003', 'Introduction to Web Development')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L008',
'C003', 'HTML Basics')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L009',
'C003', 'CSS Styling')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L010',
'C004', 'Introduction to Machine Learning')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L011',
'C004', 'Supervised Learning')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L012', 'C004',
'Unsupervised Learning')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L013',
'C005', 'Introduction to Data Science')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L014',
'C005', 'Data Preprocessing')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L015',
'C005', 'Data Visualization')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L016',
'C006', 'Introduction to Cybersecurity')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L017',
'C006', 'Network Security')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L018', 'C006',
'Cryptography')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L019',
'C007', 'Introduction to Robotics')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L020',
'C007', 'Robotics Programming')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L021',
'C007', 'Robotics Sensors')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L022',
'C008', 'Introduction to Financial Markets')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L023',
'C008', 'Stock Market Analysis')
33
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L024',
'C008', 'Investment Strategies')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L025',
'C009', 'Introduction to Graphic Design')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L026',
'C009', 'Digital Illustration')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L027',
'C009', 'Typography')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L028',
'C010', 'Introduction to Ethical Hacking')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L029',
'C010', 'Penetration Testing')
INTO lesson (lesson_id, course_id, lesson_title) VALUES ('L030',
'C010', 'Security Tools')
SELECT * FROM DUAL;
34
7.5 Inserting value into student activities table
INSERT ALL
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S001',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S001',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S001',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S002',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S002',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S002',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S003',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S003',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S003',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
35
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S004',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S004',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
36
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S004',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S005',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S005',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S005',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S006',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S006',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S006',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S007',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S007',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S007',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
37
last_accessed_date, lesson_status) VALUES ('L001', 'S008',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S008',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
38
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S008',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S009',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S009',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S009',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L001', 'S010',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'Completed')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L002', 'S010',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'), 'InProgress')
INTO student_activities (lesson_id, student_id, course_id,
last_accessed_date, lesson_status) VALUES ('L003', 'S010',
'C001', TO_DATE('2024-03-17', 'YYYY-MM-DD'),
'NotStarted')
SELECT * FROM DUAL;
39
Figure 7: Inserting value into student activities table
INSERT ALL
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C001', 'Video',
'Introduction', 'https://learnm.com/introduction', 'L001', 'C001')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C002', 'Article',
'Basics of Programming', 'https://learnm.com/basics', 'L002', 'C001')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C003', 'Quiz', 'Test
Your Knowledge', 'https://learnm.com/quiz', 'L003', 'C001')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C004', 'Video',
'Intermediate Concepts', 'https://learnm.com/intermediate', 'L004',
'C002')
40
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C005', 'Article',
'Advanced Techniques', 'https://learnm.com/advanced', 'L005',
'C002')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C006', 'Quiz',
'Assessment', 'https://learnm.com/assessment', 'L006', 'C002')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C007', 'Video',
'Final Lesson', 'https://learnm.com/final', 'L007', 'C003')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C008', 'Article',
'Conclusion', 'https://learnm.com/conclusion', 'L008', 'C003')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C009', 'Quiz',
'Final Exam', 'https://learnm.com/final-quiz', 'L009', 'C003')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C010', 'Video',
'Introduction', 'https://learnm.com/introduction', 'L001', 'C001')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C011', 'Article',
'Basics of Programming', 'https://learnm.com/basics', 'L002', 'C001')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C012', 'Quiz', 'Test
Your Knowledge', 'https://learnm.com/quiz', 'L003', 'C001')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C013', 'Video',
'Intermediate Concepts', 'https://learnm.com/intermediate', 'L004',
'C002')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C014', 'Article',
'Advanced Techniques', 'https://learnm.com/advanced', 'L005',
'C002')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C015', 'Quiz',
'Assessment', 'https://learnm.com/assessment', 'L006', 'C002')
INTO content (content_id, content_type, content_description,
41
content_link, lesson_id, lesson_course_id) VALUES ('C016', 'Video',
'Final Lesson', 'https://learnm.com/final', 'L007', 'C003')
42
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C017', 'Article',
'Conclusion', 'https://learnm.com/conclusion', 'L008', 'C003')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C018', 'Quiz',
'Final Exam', 'https://learnm.com/final-quiz', 'L009', 'C003')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C019', 'Video',
'Introduction', 'https://learnm.com/introduction', 'L010', 'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C020', 'Article',
'Basics of Programming', 'https://learnm.com/basics', 'L011', 'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C021', 'Quiz', 'Test
Your Knowledge', 'https://learnm.com/quiz', 'L012', 'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C022', 'Video',
'Intermediate Concepts', 'https://learnm.com/intermediate', 'L010',
'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C023', 'Article',
'Advanced Techniques', 'https://learnm.com/advanced', 'L011',
'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C024', 'Quiz',
'Assessment', 'https://learnm.com/assessment', 'L012', 'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C025', 'Video',
'Final Lesson', 'https://learnm.com/final', 'L010', 'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C026', 'Article',
'Conclusion', 'https://learnm.com/conclusion', 'L011', 'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C027', 'Quiz',
'Final Exam', 'https://learnm.com/final-quiz', 'L012', 'C004')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C028', 'Video',
43
'Introduction', 'https://learnm.com/introduction', 'L013', 'C005')
44
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C029', 'Article',
'Basics of Programming', 'https://learnm.com/basics', 'L014', 'C005')
INTO content (content_id, content_type, content_description,
content_link, lesson_id, lesson_course_id) VALUES ('C030', 'Article ',
'Report writing', 'https://learnm.com/report', 'L015', 'C005')
SELECT * FROM DUAL;
INSERT ALL
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I001', 'John Doe', '[email protected]',
'C001', '1234567890')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I002', 'Jane Smith', '[email protected]',
'C002', '9876543210')
INTO instructor (instructor_id, name, email, course_id,
45
phone_number) VALUES ('I003', 'Michael Johnson',
'[email protected]', 'C003', '5554443333')
46
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I004', 'Emily Brown', '[email protected]',
'C004', '1112223333')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I005', 'David Wilson', '[email protected]',
'C005', '4445556666')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I006', 'Emma Taylor',
'[email protected]', 'C006', '7778889999')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I007', 'James Martinez', '[email protected]',
'C007', '2223334444')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I008', 'Olivia Anderson',
'[email protected]', 'C008', '6667778888')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I009', 'William Thomas',
'[email protected]', 'C009', '9990001111')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I010', 'Sophia Garcia',
'[email protected]', 'C010', '3332221111')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I011', 'Benjamin Rodriguez',
'[email protected]', 'C011', '8889990000')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I012', 'Mia Martinez', '[email protected]',
'C012', '5556667777')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I013', 'Ethan Hernandez',
'[email protected]', 'C013', '2221110000')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I014', 'Charlotte Smith',
'[email protected]', 'C014', '7778889999')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I015', 'Alexander Wilson',
'[email protected]', 'C015', '4445556666')
INTO instructor (instructor_id, name, email, course_id,
47
phone_number) VALUES ('I016', 'Amelia Johnson',
'[email protected]', 'C016', '1112223333')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I017', 'Jacob Brown', '[email protected]',
'C017', '6667778888')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I018', 'Ava Taylor', '[email protected]',
'C018', '9990001111')
48
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I019', 'Daniel Martinez',
'[email protected]', 'C019', '3332221111')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I020', 'Oliver Johnson',
'[email protected]', 'C020', '8889990000')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I021', 'Sophia Hernandez',
'[email protected]', 'C021', '5556667777')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I022', 'Emma Garcia',
'[email protected]', 'C022', '2221110000')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I023', 'Lucas Rodriguez', '[email protected]',
'C023', '7778889999')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I024', 'Ava Brown', '[email protected]',
'C024', '4445556666')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I025', 'Logan Smith',
'[email protected]', 'C025', '1112223333')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I026', 'Isabella Wilson',
'[email protected]', 'C026', '6667778888')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I027', 'Mia Johnson', '[email protected]',
'C027', '9990001111')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I028', 'Jackson Taylor',
'[email protected]', 'C028', '3332221111')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I029', 'Aiden Martinez',
'[email protected]', 'C029', '8889990000')
INTO instructor (instructor_id, name, email, course_id,
phone_number) VALUES ('I030', 'Sophie Hernandez',
'[email protected]', 'C030', '5556667777')
SELECT * FROM DUAL;
49
Figure 9: Inserting value into instructor table
INSERT ALL
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q001', 'How satisfied are you with
the course materials?', 'S001', 'C001')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q002', 'Did the instructor
effectively communicate the concepts?', 'S002', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q003', 'Were the assignments
helpful for your learning?', 'S003', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q004', 'How would you rate your
overall experience?', 'S004', 'C001')
50
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q005', 'Did you find the course
content challenging?', 'S005', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q006', 'Was the course well-
organized?', 'S006', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q007', 'Did the course meet your
expectations?', 'S007', 'C001')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q008', 'Would you recommend this
course to others?', 'S008', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q009', 'How helpful were the
discussion forums?', 'S009', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q010', 'Was the course duration
appropriate?', 'S010', 'C001')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q011', 'Did you face any technical
issues during the course?', 'S011', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q012', 'Were the assessments
fair and relevant?', 'S012', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q013', 'Did the course meet its
learning objectives?', 'S013', 'C001')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q014', 'How would you rate the
course support?', 'S014', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q015', 'Did you find the course
resources useful?', 'S015', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q016', 'Were the assignments
graded in a timely manner?', 'S016', 'C001')
51
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q017', 'How engaging were the
course discussions?', 'S017', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q018', 'Did you encounter any
issues accessing the course materials?', 'S018', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q019', 'Were the learning
outcomes clearly defined?', 'S019', 'C001')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q020', 'How interactive were the
course activities?', 'S020', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q021', 'Did you receive prompt
feedback on your assignments?', 'S021', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q022', 'How satisfied are you with
the course pacing?', 'S022', 'C001')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q023', 'Were the course objectives
achievable?', 'S023', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q024', 'Did you feel supported by
the course staff?', 'S024', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q025', 'How would you rate the
course materials quality?', 'S025', 'C001')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q026', 'Did the course improve your
skills?', 'S026', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q027', 'Would you consider taking
another course from this provider?', 'S027', 'C003')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q028', 'How accessible were the
course resources?', 'S028', 'C001')
52
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q029', 'Was the course content
relevant to your goals?', 'S029', 'C002')
INTO question (question_id, question, enrollment_student_id,
enrollment_course_id) VALUES ('Q030', 'Did the course meet your
learning expectations?', 'S030', 'C003')
SELECT * FROM DUAL;
INSERT ALL
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F001', 'Good explanation', 'I001', 'Q001')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F002', 'Very helpful', 'I002', 'Q002')
53
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F003', 'Could be clearer', 'I003', 'Q003')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F004', 'Excellent!', 'I004', 'Q004')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F005', 'Not satisfied', 'I005', 'Q005')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F006', 'Great teaching style', 'I006', 'Q006')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F007', 'Poor communication', 'I007', 'Q007')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F008', 'Very knowledgeable', 'I008', 'Q008')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F009', 'I learned a lot', 'I009', 'Q009')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F010', 'Too fast-paced', 'I010', 'Q010')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F011', 'Not enough examples', 'I011', 'Q011')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F012', 'Needs improvement', 'I012', 'Q012')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F013', 'Awesome!', 'I013', 'Q013')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F014', 'Dont understand', 'I014', 'Q014')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F015', 'Could explain better', 'I015', 'Q015')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F016', 'Very engaging', 'I016', 'Q016')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F017', 'Terrible!', 'I017', 'Q017')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F018', 'Helped me a lot', 'I018', 'Q018')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F019', 'Could be more interactive', 'I019', 'Q019')
54
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F020', 'I enjoyed it', 'I020', 'Q020')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F021', 'Could improve pacing', 'I021', 'Q021')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F022', 'Not worth it', 'I022', 'Q022')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F023', 'Outstanding!', 'I023', 'Q023')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F024', 'Didnt meet expectations', 'I024', 'Q024')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F025', 'Very informative', 'I025', 'Q025')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F026', 'Hard to follow', 'I026', 'Q026')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F027', 'Best course ever', 'I027', 'Q027')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F028', 'Loved it!', 'I028', 'Q028')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F029', 'Could use more resources', 'I029', 'Q029')
INTO feedback (feedback_id, feedback, instructor_id, question_id)
VALUES ('F030', 'Would not recommend', 'I030', 'Q030')
SELECT * FROM DUAL;
55
Figure 11: Inserting value into feedback table
56
8. Select Statement
57
8.3 Selecting Data from Course table
58
8.5 Selecting Data from Feedback table
59
8.7 Selecting Data from Lesson table
60
8.9 Selecting Data from Student activities table
61
9.1.1 Student Details
62
9.1.2 Instructor Details
63
9.1.4 Lesson details
64
9.1.5 Progress details
65
Figure 26: Student enrollment webform
66
10. Forms
SQL Query:
SELECT s.STUDENT_ID, s.STUDENT_NAME, s.PHONE_NUMBER,
s.DOB, s.EMAIL,
e.COURSE_ID, c.TITLE
FROM student s
JOIN enrollment e ON s.STUDENT_ID = e.STUDENT_ID
JOIN course c ON e.COURSE_ID = c.COURSE_ID
where s.STUDENT_ID= :student
67
Figure 28: Complex Form 1
68
10.2.2 Course Instructor
SQL query:
select c.course_id, c.title, c.description, i.instructor_id, i.name as
instructor_name from course c join instructor i on c.course_id =
i.course_id order by c.course_id, i.instructor_id
69
10.2.3 Top Course
SQL query:
select * from ( select c.course_id, c.title, count(e.student_id) as
enrollments_count from course c join enrollment e on
c.course_id = e.course_id where extract(month from
e.enrollment_date) = :month and extract(year from
e.enrollment_date) = :year group by c.course_id, c.title order
by enrollments_count desc ) where rownum <= 3
70
11. Testing
71
Figure 32: editing student details
Deleting:
72
11.2 Lesson Details
Inserting new lesson:
Editing:
73
Deleting:
Inserting:
74
Figure 37: inserting
Editing:
75
Deleting:
Inserting:
76
Figure 40: inserting
Editing:
77
Deleting:
Error:
78
Figure 44: error
79
Figure 46: inserted successfully
80
12. Conclusion
Users may navigate and retrieve course materials with ease because
to the web- based application's easy interfaces. Data integrity is
preserved across the system by creating appropriate key relationships
and following to normalization criteria.
81