This repository contains the SQL scripts and solutions for LAB TASK 2: Working with Multiple Tables for the Database Systems course.
The database models a college academic system with courses, students, modules, and enrolments.
It is implemented using Oracle SQL and tested on Oracle Live SQL (cloud environment).
The database consists of four related tables:
- COURSE β Stores academic programs offered by the college
- STUDENT β Stores student personal details and their registered course
- MODULE β Stores academic modules
- ENROLMENT β A junction table linking students and modules, including marks and grades
- One course can have many students
- A student is registered in at most one course
- Students can enroll in many modules
- Modules can be taken by many students
- The ENROLMENT table implements the many-to-many relationship
- Oracle SQL
- Oracle Live SQL (Cloud)
- GitHub (Version Control & Collaboration)
- Go to: https://livesql.oracle.com
- Log in with an Oracle account
- Click Start Coding
- Run the scripts in this order:
beng23_lab2_schema.sqlbeng23_lab2_data.sql
- Verify setup:
SELECT * FROM course; SELECT * FROM student; SELECT * FROM module; SELECT * FROM enrolment;