Dbms Project
Dbms Project
Database Systems
ON
KLU Alumni Database Management System
Submitted by
Section – S04
Batch No: 7
CERTIFICATE
This is to certify that the course based project entitled “KLU ALUMNI DATA
BASE MANAGEMENT SYSTEM” is a bonafide work done by K Vishnu (160030615),K
Rahul(160030620),K Lalitha(160030626) in partial fulfilment of the requirement for the
award of degree in BACHELOR OF TECHNOLOGY in Computer Science Engineering
during the academic year 2017-2018.
DECLARATION
We hereby declare that this project based lab report entitled “KLU ALUMNI DATA
BASE MANAGEMENT” has been prepared by us in partial fulfillment of the requirement
for the award of degree “BACHELOR OF TECHNOLOGY in COMPUTER SCIENCE
ENGINEERING” during the academic year 2017-2018.
We also declare that this project based lab report is of our own effort and it has not
been submitted to any other university for the award of any degree.
Date:
Place: Vaddeswaram
Name Student ID
K Vishnu 160030615
K Rahul 160030620
K Lalitha 160030626
ACKNOWLEDGMENTS
Our sincere thanks to Dr.Raju Anitha in the Lab for his outstanding support throughout the
project for the successful completion of the work.
My sincere thanks to M.Naga Bhushana Rao Course coordinator of Data base system for
helping us in the completion of our project based laboratory.
We express our gratitude to E.Suresh Babu Head of the Department for Computer Science
and Engineering for providing us with adequate facilities, ways and means by which we are
able to complete this term paper work.
We would like to place on record the deep sense of gratitude to the honourable Vice
Chancellor, K L University for providing the necessary facilities to carry the concluded term
paper work.
Last but not the least, we thank all Teaching and Non-Teaching Staff of our department and
especially my classmates and my friends for their support in the completion of our project
work.
PROJECT ASSOCIATES
Name Student ID
K Vishnu 160030615
K Rahul 160030620
K Lalitha 160030626
TABLE OF CONTENTS
Abstract....................................................................................................................................................................7
Introduction..............................................................................................................................................................8
PROJECT DESCRIPTION......................................................................................................................................9
List of Entities & Attributes...................................................................................................................................10
ER Diagram (Conceptual Model)..........................................................................................................................11
Schema Diagram....................................................................................................................................................12
Normalization & Final List of Relations................................................................................................................13
Create & Insert SQL Queries.................................................................................................................................14
SQL Queries related to Report Generation............................................................................................................15
Conclusion..............................................................................................................................................................16
ABSTRACT
Alumni are an association of graduates or broadly the former students of a university. The
title of the project is KL University Alumni database . The information system for
communication with graduates represents one of many ways how university can keep in
touch with its graduates. Except for communication between university and its graduates, the
information system should allow communication between graduates themselves and their
personal presentation in public. An alumni database is very essential to carry out crucial
activities like institute events, fundraising and to maintain contacts with the corporate
organizations in which the alumni are working. The information system for communication
with graduates represents one of many ways how university can keep in touch with its
graduates. An alumni database management system brings a university’s alumni on one
platform, organize them batch wise, location wise and their functional area, which in turn
helps the university to communicate with the alumni effectively for various purposes. It is
also used to maintain the data of the alumni as well as the corporate supporters who offer
funds to the university. The presented information system includes all these points and
focuses on security, usability and comfortable user interface. In this we design a
computerized database for KL University Alumni. The database captures all relevant
information on alumni of the college and the corporate supporters of the university.
INTRODUCTION
The aim of this Alumni Management System project is to build a system that
will be able to manage alumni data of a college and provide easy access . Contact between
alumni can be used to forge business connections and to gain references or insight in a new
field. It is also used to maintain the data of the alumni as well as the corporate supporters who
offer funds to the university.
PROJECT DESCRIPTION
The Dean of the business school wishes to create an UTD “family” consisting of its graduates
and corporations that have been staunch supporters of the School of Management. Finding
the existing database inadequate in terms of providing him with the information he needs to
achieve his goal, he wishes to develop a new alumni database for the college. He wants the
new database to capture all relevant information on alumni of the college and the corporate
supporters of the college. To build a long-term relationship with alumni, he wishes to keep
track of all alumni from each functional area (e.g., MIS, Acctg, Fin, Mkt, etc.) of the college,
where they work (or have worked in the past), and any donations that they have made to the
college. Similarly, for corporate supporters, the database must capture all relevant
information on donations made by each corporation.
Upon further interviews with the Dean, he has indicated the following specific requirements:
1. A report that displays alumni information for a specified area for a particular year (e.g.,
1999 MIS graduates). The report should list, for the specified area and year of graduation,
each alumnus’s name, e-mail address, the degree earned (e.g., BS, MS, MBA, Ph.D., etc.),
work phone number, and home phone number. Note that a similar report could be required
for any area and any graduating year.
2. For a specified city, a report listing all alumni who live in that city. The report will display
the name of the city, and for each alumnus in that city, their name, home address, email
address, work phone, and home phone.
3. A report listing all corporate donors who have donated a total amount greater than
Rs.25,000. The report will be sorted in descending order of the donated amount.
4. A report that displays all donations made to a particular G/L (General Ledger) account.
The ID of the donor, as well as the date and amount of the donation must be displayed.
5. A report listing all alumni working for a particular company. This report must also display
the date an individual joined the company, as well as, their job title and salary.
6. A report that displays the employment history for a particular alumnus. The report must
show, for each employer that alumnus has worked for, the employer name, the most recent
job title the alumnus had with that employer company (e.g., Vice-President), the date the
alumnus joined the company, and the date the alumnus left the company (if applicable).
LIST OF ENTITIES & ATTRIBUTES
List of entities:
1.Alumni
2. Company
3.Corporate Supporters
4.University
5.Fund
List of attributes:
1.Alumini
Alumni id
Alumini name
Email
Degree
Phone number-residence/ personal (multivalued attribute)
Graduating year
Functional area
Home address- door no,street,city,state,pincode (composite attribute)
2. Company
Company id
Company industry code
Join date
Left date
Job title
Salary
Employer name
Employee id
3. Corporate supporters
Corporation-id
Corporation name
Address
Phn number
4.University
Branch id
Address
Phn no
5.Fund
Fund id
Donor id
Amount
Type of fund
Date of donation
Account type
List of relationships:
List of Constraints:
List of assumptions:
create table if not exists ALUMNI (al_id int PRIMARY KEY NOT
NULL,f_name varchar(20) NOT NULL,l_name varchar(20) NOT NULL,
degree varchar(50) NOT NULL,grad_year YEAR NOT NULL,fun_area
varchar(90) NOT NULL,door_no varchar(10) NOT NULL,street varchar(20)
NOT NULL,city varchar(20) NOT NULL,state varchar(40) NOT
NULL,pincode DECIMAL(6,0) NOT NULL,com_id int NOT NULL,branch_id
int NOT NULL );
create table if not exists UNIVERSITY (branch_id int PRIMARY KEY NOT
NULL,branch_name varchar(20) NOT NULL,phn_no bigint NOT NULL,city
varchar(20) NOT NULL,state varchar(40) NOT NULL,pincode
DECIMAL(6,0) NOT NULL);
create table if not exists FUND (fund_id int PRIMARY KEY NOT
NULL,donor_id int NOT NULL,amount float(6,3) NOT NULL,type_of_fund
varchar(50) NOT NULL,date_of_donation DATE NOT NULL,account_type
varchar(30) NOT NULL);
1.Display alumni
first_name,last_name,degree,graduation_year,door_no,street,city,state,pincode for a specified
functional area in a particular year of 1999 MIS graduates.
Query:
select *
from alumni
2.List all corporate names and name of the branch to which they have donated when the
amount is greater than 25000 and sort the donated amount in descnding order.
Query:
select cor_name,branch_name,amount,type_of_fund,donor_id,date_of_donation
3. Display all donations made to a particular G/L(general ledger)account .The id of the donor
as well as the amount of donation,date of donation,type of fund donated by corporate name
abc_tech.
Query:
select donor_id,amount,date_of_donation,type_of_fund
where cor_name='abc_tech';
4.Display all alumni working for a particular company .display the name,join date and left
date , job and salary details of individuals .
Query:
select f_name,l_name,join_date,job_title,salary,left_date
Query:
select f_name,l_name,degree,grad_year,city,state,amount
6.Display all phone numbers,phone types,of all the alumnis and count no.of phone numbers
and group them according to phone_numbers of alumni.
Query:
select f_name,l_name,ph_no,ph_type,count(ph_no)
from alumni_phone p inner join alumni a on p.al_id=a.al_id;
Query:
select branch_name,f_name,l_name,degree,grad_year
8. . Display all email_id,email types,of all the alumnis and count no.of email and group them
according to email_type of alumni.
Query:
select f_name,l_name,mail_id,email_type,count(mail_id)
group by email_type;
9. Display the corparate donations type_of_fund,date_of_donation and account_type to the
hyderabad branch of university.
Query:
where branch_name='hyd';
10. Display details of alumni who studied in the hyderabad branch of the university.
Query:
select f_name,l_name,degree,grad_year
The alumni data base created will be very useful to store the data of the university’s alumni .
Apart from the alumni data the database also stores the information of the corporate
supporters that are funding the university in various aspects. A clear information can be
obtained about the alumni who are donating funds to the university. The database will make it
very easy to retrieve information and update the existing data.