This project implements a basic College Database Management System using PostgreSQL. It includes SQL scripts for table creation, data insertion, and various queries, as well as an ER diagram designed using normalization principles.
The project is divided into the following SQL script files:
- ddl.sql: Contains Data Definition Language (DDL) commands for creating tables.
- dml.sql: Contains Data Manipulation Language (DML) commands for inserting data into the tables.
- queries.sql: Contains various SQL queries for retrieving and manipulating data.
The database consists of the following tables:
STUDENT
: Stores details of students.SEMSEC
: Stores information about semesters and sections.CLASS
: Stores information about which student is in which class.SUBJECT
: Stores details about subjects.IAMARKS
: Stores internal assessment marks of students.
The ddl.sql
file contains SQL commands to create the tables
The dml.sql
file contains SQL commands to insert/update/delete data into the tables
The queries.sql
file contains SQL commands to fetch the data from the tables
How to Run ?
- Install PostgreSQL: Make sure PostgreSQL is installed on your system.
- Create Database: Create a new database in PostgreSQL.
- Execute DDL Script: Run the ddl.sql script to create the tables.
- Execute DML Script: Run the dml.sql script to insert data into the tables.
- Execute Queries: Run the queries.sql script to perform various queries.