Sir Syed University of Engineering and Technology, Karachi: RDBMS Project
This document describes an RDBMS project for Aptech Computer Education. It includes:
1) Requirements gathering for entities like Employees, Students, Courses, and Finance
2) Mapping of entities and their relationships in an EER diagram
3) Normalization of tables to eliminate anomalies
4) Sample queries for creating tables, inserting data, and selecting records
The project involved designing a relational database for Aptech's operations based on their requirements and testing it with sample queries.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
43 views
Sir Syed University of Engineering and Technology, Karachi: RDBMS Project
This document describes an RDBMS project for Aptech Computer Education. It includes:
1) Requirements gathering for entities like Employees, Students, Courses, and Finance
2) Mapping of entities and their relationships in an EER diagram
3) Normalization of tables to eliminate anomalies
4) Sample queries for creating tables, inserting data, and selecting records
The project involved designing a relational database for Aptech's operations based on their requirements and testing it with sample queries.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16
1
Sir Syed University Of Engineering and Technology,
Karachi
RDBMS Project G R O U P M E MB ER S S R.# N AME R OLL N UMBER 1 Muhammad Saad Khan 2012-CE-064 2 Syed Muhammad Rizwan 2012-CE-100 3 A m n a Shahzaib Khan 2012-CE-078
S UBM I T T E D T O SIR SHAKEEL C OMPU TE R E NGI NEE R I NG D EPAR T M ENT
C O MP U T E R E N G I N E E R I N G D E P A R T M E N T S I R S Y E D U N I V E R S I T Y O F E N G I N E E R I N G A N D T E C H N O L O G Y KARACHI
2
Table of Content:
Topics
Page#
Acknowledgment
3
Introduction
4
Requirement gathering
4-5
Mapping
6
EER Diagram
7
Normalization
8
Queries
9-16
Conclusion
16
3
Acknowledgment: We have taken efforts in this project. However, it would not have been possible without the kind support and help of many individuals and organizations. We would like to extend my sincere thanks to all of them. We are highly indebted to Sir Shakeel for their guidance and constant supervision as well as for providing necessary information regarding the project & also for their support in completing the project. We also want to thank Sir Billal Ahmed from APTECH, who help us in any way possible he was always available for us. We would like to express my gratitude towards my parents their kind co-operation and encouragement which help me in completion of this project. We would like to express my special gratitude and thanks to industry persons for giving me such attention and time. Our thanks and appreciations also go to my colleague in developing the project and people who have willingly helped me out with their abilities.
4
Introduction: Aptech commenced its education and training business in 1986 and has globally trained over 6.4 million students. Aptech is an ISO 9001:2000 organization and the first IT Training and Education company to get this certification for Education Support Services in 1993. Aptech has presence in more than 40+ emerging countries through its two main streams of businesses Individual training and Enterprise Business. As a leader in career education, it has over 1305 centers of learning across the world. Under Individual Training, Aptech offers career and professional training through its Aptech Computer Education brand.
Requirement Gathering: APTECH has table a basic class EMPLOYEE which is further classifies into more subclasses. The EMP has a unique Id number which is inherited by all the subclass and that of the EMP Id .The EMP are categorized as described below. EMP are categorized on the descrimated attribute as the job type There are four major subclass which are classified by the job_type(descrimated attribute). The subclass are teacher ,maintenance staff, Alumni students and the others(which include all the remaining Employees). Teacher has t_id, course which is taught by him. Maintenance staff have the hour work Student alumni has the student id Orther include also the EMPLOYEE related data. The are also the other entity which are 1. Student 2. Course 3. Finance
Student Table: 1. Student id 2. Student name 3. Student contact 4. Email 5. Grade 6. Payment 7. Statues (Domain vales (Active / Not Active)
5
Course 1. Course id 2. Course room# 3. Shifts 4. No of instructor 5. Duration
EMP name Birth_date Hiredate Sal. Student Stu_id dues email Fee_status Contact num Perminant Teach_pos t Floor# Contract_duration Timeserving Course Course# No of instructors duration Info Job_type Bonus Sal_date U Status Finance Takes shifts d Others Peons Teacher d Contracted/Visting Teaches NIC Mode of payment 8
Normalization: Finance NIC
EMP Emp_id name Birth_date Sal Sal_date bonus Mode of payment NIC Job_id Hire_date
Others table: CREATE TABLE others ( emp_ID NUMBER(5) not null, Name varchar2(25) not null, birthdate varchar2(30), sal NUMBER(5), bonus NUMBER(5), sal_date date, modeofpay varchar2(10), info varchar2(10), nic NUMBER(5), job_id NUMBER(5), hire_date date,constraint others_PK primary key (emp_ID),constraint others_FK foreign key (emp_ID) references emp_id(emp_ID) );
12
Insertion and Select Queries
Insert into finance and emp table: 1)Insert into finance values(4210-1245678-1); 2)Insert into finance values(4210-1245678-2); 3)Insert into emp values(20002.M Ahmed,20-june-1993,2000,0,cash,4210- 12345672-0,1-jan-2014,1 st ,peon);
13
Insert into stu_cor table: 1) Insert into stu_cor values(3,evening,301,13-feb-2014);
Insert into course_noin table: 1) Insert into course_noin values(301,evening,1);
14
Course_teacher and course_room table: 1) Insert into course_teacher values(302,morning,2003); 2) Select emp_id, name, job_id from emp where name=Kashif Ali;
Students table: 1) Select s_name form students s join finance f on (s.nic=f.nic) and dues =0 2) Select s_name form students s join finance f on (s.nic=f.nic) and dues >0 15
3) Select s_name form students s join finance f on (s.nic=f.nic) and fee_stat=Paid;
Peon and Others tables 1) Insert into others values(20002,lab assistant); 2) Select name, floor form emp e join peon p on (e.emp_id=p.emp_id); 16
Conclusion: After completion of this project and working with APTECH computer we understood many topics and things practically which we have studied under the course of Relational Database management system, We got every information and applied it in our database in the end we also compared our database with the actual database of APTECH so there was a marginal difference. After this project now our concepts about Normalization, ERD mapping and ERD diagram is very much clear which will help us in our near future. Again we are really much thankful to our course teacher Sir Shakeel for his guidance and Sir Billal Ahmed from APTECH who helped us in all ways possible. We could use this experience in our further internships and projects, we can keep this as a sample project to compete in database management project contests too.