Skip to content

cyberkhalil/University_Data_Base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

University_Data_Base

This project contains a full data base about an university which you can just copy and use easily ..


About

Title: University_Data_Base
DBMS : Oracle DBMS
Authors: Eyad AL-‘Amawi - Waleed Mortaja - Mahmoud el-skiekh Khalil
Copyrights: Open Source

Introduction

This is a database project made with the sql (DDL , DML) & pl\sql languages (for oracle DBMS) & Its designed as the ERD (Entity Relationship Diagram) which is provided as jpg file in the project files link

Contents

DDL

  1. Tables :-

There are 24 tables (without the log ones) in this data base which conatain all the data that we need to store as records (rows) those tables can descripe the relation between the students , teachers , courses , and even more than another 15 object ..

  1. Log Tables :-

For each table from those 24 from there is a log table , which is used to save every manipulation(DML) happen in the table and who did that and what changes , so the log table keep a record about who did what in which record and when ..

  1. Triggers :-

For each log table there is a three triggers so in simple calcoulation there are 72 trigger in our data base , the trigger goal is to auto save a record about the manipulations from the orign tables in the log tables , those three triggers are responible for saving every insert , update , delete operation , who (which user) & when in the log tables ..

  1. Procedures :-

Because of there is a alot of users in data base and for each student,employee there should be a user we made a procedure to insert into the (student , employee) tables that give every one a unique username that got the ability to see and edit his/her own information and its using the pl\sql also to run the sequences as thier normal job , so there is no need to enter an id for every insertion operation in the student's or employees tables .

  1. Sequences :-

There is a 3 sequences in this database our goal from them is to auto make the id's for every student (male of female) and every employee the male students sequence starts every year from 1(year)0001 to 1(year)9999 so in every year just around 10 thousand of male student's can register in the database of university but if you need more you just have to adding 0 after the year in that sequence to keep ability to regist more that that number , its autom increment number is 1 to make it easy for every one to know how many student reigisted in the university ..

  1. Roles :-

Because we can't give the ability for each student to remove - drop - delete any thing in the data base we gave every one role that he can't overrun any thing except his normal abilities as selection from his table or from his courses table so we prevented him from editing a record in another tables as a security in the database .

  1. Views :-

There are some views we made for the most queries requested in the data base , and for makeing the proccess more easy and much security .

DML

there is already some ready records in the data base which is used to check that every thing is working well in the data base and its also in the same file , you can just delete them or don't copy them if you don't need them in your database or just keep them ..

#Ps.Those records based on a realworld examples in our university

PL\SQL

In the triggers & the procedures there is pl\sql language we used it in our project

ERD

ERD

As a last word we want to give all the thanks for our god then for our teachers for learning us like these skills in the first subject in our database

Teachers:-