Você está na página 1de 18

ABSTRACT

This project deals with college database which maintains faculty, staff, placements,
subject allocation, student personal information as well as their academic information details.
The main aim of this project is automation of the college details, for the quick reference as well
as for online access. This information is useful for the parents of the students; faculty
information is useful for the college reputation as well as university reference regarding the
subject expert’s information.

1
INDEX

Content Page. no

Abstract 1

Chapter 1 : Introduction 3

Chapter 2 : Requirements Specification 4

Chapter 3 : Conceptual Database Design 5

Chapter 4 : Logical Database Design 8

Chapter 5 : Querying the Relational Database 10

Chapter 6 : Output Screens 12

Chapter 7 : Conclusion 17

References 18

2
CHAPTER 1
INTRODUCTION:

This project deals with college database which maintains faculty, staff, placements, subject
allocation, student personal information as well as their academic information details. The main aim of
this project is automation of the college details, for the quick reference as well as for online access. This
information is useful for the parents of the students; faculty information is useful for the college
reputation as well as university reference regarding the subject expert’s information.

COLLEGE DATABASE:
Faculty information is maintained as faculty id must start with branch name, faculty name,
designation only allows Assistant, associate and professors, branch allows only ECE, EEE, CSE and IT.
Department information is maintained as Department id, name, location, phone number,
strength, HoD, number of faculty.
Subject allotment details as follows year, branch, name of the subject, allotted faculty.
Students personal information is maintained with their name, number, branch, year, gender,
date of birth, date of joining, mobile number, and email- id with the following conditions name must be
in characters, number in between 1 and 60, branch only ECE, CSE, EEE and IT, year not greater than 4,
gender accept only M and F, length of mobile number is 10 digits, email id must have @ symbol.
Student’s academic information is maintained as follows name, number, branch, year, overall
percentage up to that year if he is 1st year then it is null, SSC %, Inter %, EAMCET Rank if any, attendance
percentage up to the last month, 6 subject marks in mid1, mid2 (consider 25 marks).
Placement details are maintained as follows name of the student, number, branch, company
name, date of selection, date of joining in company.

3
CHAPTER 2
Requirement Specifications
Hardware Requirements:

Intel Pentium Processor


20 GB Hard Disk

Software Specifications

Windows OS
Oracle 10g
MS-Word

4
CHAPTER 3
(Conceptual Database Design)
Conceptual Design

Entities:
Faculty Table
Department Table
Subject Allocation Table
Student Personal information Table
Student Academic information table
Placements Table
Attributes:

1. Faculty – fid, fname, designation, branch

Attribute Domain Specification Constraints


Fid varchar Uniquely identifies each faculty Must start with department name
Fname Char Name of faculty --
Designation Char Specifies the faculty level Must be within Asst, Assoc, Prof
Branch char Specifies the department of the faculty References to department

2. Dept – did, dname, loc, phno, strength, nof, hod

Attribute Domain Specification Constraints


did Varchar Uniquely identifies department Primary key
dname Char Name of the department Must be within ECE, CSE, IT, EEE
Location Char Location of department --
Phno Number Phone number of department --
Strength Number Students strength --
Nof Number Total no. of faculty in the department --
hod char Head of the department Refer to faculty

3. Suballoc – year, branch, subname, facname

Attribute Domain Specification Constraints


Year Number Year of study <5
Branch Char Branch name References to dept
Subname Char Allocated Subject name --
Facname Char Name of the faculty References to faculty

4. Student – sid, sname, branch, year, gender, dob, doj, phno, emailid

Attribute Domain Specification Constraints


Sid Number Primary key
Sname Char
Branch Char References to dept

5
Year Number <5
Gender Char Accept only M or F
Dob Date -
Doj Date -
Phno Number Count of numbers=10
emailid varchar @ must be present

5. Sacademic – sname, sid, branch, year, percentage, ssc, inter,eamcet, atten, M1SUB1, M1SUB2,
M1SUB3, M1SUB4, M1SUB5, M1SUB6, M2SUB1, M2SUB2, M2SUB3, M2SUB4,M2SUB5,M2SUB6

Attribute Domain Specification Constraints


Sname Char
Sid Number
Branch Char
Year Number
Percentage Number
Ssc Number
Inter Number
Eamcet Number
Attendance Number
M1SUB1 Number

M2SUB1 Number
….

6. Placement – sid, sname, branch, company, dateofselection, dateofjoining

Attribute Domain Specification Constraints


Sid Number
Sname Char
Branch Char
Company Char
Date of
Date
selection
Date of
Date
joining

Relationships:

1. Many Students can enroll in one department

Student Enroll Dept


s

2. A Department having many numbers of faculties

Dept Has 6
Faculty
3. Each faculty is allocates one subject

Faculty Teach Subjects

4. Many Students selected for many companies

Selected
Student Companies

ER Diagram for College Database:

7
CHAPTER 4
( Logical Database design)

Faculty Table:
create table faculty(
fid varchar2(12) check(fid like('cse%')
or
fid like('ece%')
or
fid like('eee%')
or
fid like('it%')),
fname char(10),
designation char(10) check(designation
in('asst','assoc','prof')),
branch char(5),
primary key(fid),
unique(fname));

Department Table:
create table dept(
did number(3),
dname char(10),
loc char(10),
phno number(10),
strength number(2),
nofac number(2),
hod char(10) references faculty(fname));

Subject allocation Table:


create table suballot(
year number check(year<5),
branch char(5) refernces dept(dname),
subname char(10),
Fname char(10) refernces faculty(fname));

Student personal information:


create table student(
sname char(10),
sid number(3),
branch char(5) references dept(dname),
year number(2) check(year<5),
gender char(2) check(gender in('M','F')),
dob date,
doj date,
phnum number(10),

8
emailid varchar2(15)
check(emailid like('%@%'))

Student Personal Information:


create table sacademic(
sname char(10) references student(sname),
sid number(3) references student(sid),
branch char(5) references dept(dname),
year number(2) check(year<5),
percentage number(3)
check((year=1 and percentage=null)
or
(YEAR=2 OR YEAR=3 OR YEAR=4),
SSC NUMBER(3),
INTER NUMBER(3),
eamcet NUMBER(5),
ATTEN NUMBER(3),
M1SUB1 NUMBER(2) CHECK(M1SUB1<26),
M1SUB2 NUMBER(2) CHECK(M1SUB2<26),
M1SUB3 NUMBER(2) CHECK(M1SUB3<26),
M1SUB4 NUMBER(2) CHECK(M1SUB4<26),
M1SUB5 NUMBER(2) CHECK(M1SUB5<26),
M1SUB6 NUMBER(2) CHECK(M1SUB6<26),
M2SUB1 NUMBER(2) CHECK(M2SUB1<26),
M2SUB2 NUMBER(2) CHECK(M2SUB2<26),
M2SUB3 NUMBER(2) CHECK(M2SUB3<26),
M2SUB4 NUMBER(2)CHECK(M2SUB4<26) ,
M2SUB5 NUMBER(2)CHECK(M2SUB5<26),
M2SUB6 NUMBER(2) CHECK(M2SUB6<26)
);

Placement Information:
create table placement(
sid number(3) references student(sid),
sname char(10) references student(sname),
branch char(5) references dept(dname),
company char(15),
doselection date,
doj date);

9
CHAPTER 5
Querying Relational Database
(Some sample queries)
1. Get the details of 1st year students.

Select * from student where year=1;

2. Get the details of students whose SSC percentage is greater than 70.

Select * from student where ssc>70;

3. Get the details of students whose SSC and Inter percentage is greater than 65.

Select * from student where ssc>70 and inter>65;

4. Get the 1st mid details of all the students

Select M1sub1,m1sub2,m1sub3,m1sub4,m1sub5,m1sub6 from sacademic;

5. Get the students whose EAMCET rank is available.

Select * from sacademic where eamcet is not null;

6. Get the total number of students from four years.

select count(*) from sacademic;

7. Get the mail id’s of 4th year students

Select emailid from student where year=4;

8. Display students branch wise.

select sid,sname from sacademic where branch=any(select branch from sacademic group by
branch)

9. Get the number of students from each branch year wise.

select count(*) from sacademic group by branch;

10. Get the faculty name who is going to the subject DBMS.

Select facname from suballoc where subname=’dbms’;

11. Get the total number of faculties from each department

10
Select count(*) from faculty group by branch;

12. Display Head of the department details.

Select * from faculty where fname=any(select hod from dept group by branch);

13. Display faculty information branch wise.

Select * from faculty group by branch;

14. Display Professors information from all branches.

Select * from faculty where designation=’prof’;

15. Display Students information Placed branch wise.

Select * from student where sname=any (select sname from placement group by branch);

16. Display placements Information Company wise.

Select company, count(*) from placement group by company;

17. Find the student name that placed recently.

Select sname from placement where doj=dos;

11
Chapter 6
Sample Output Screens

12
13
14
15
16
Chapter 7

CONCLUSION

We conclude that our project is useful for the students, parents and the faculty, to get the
information regarding the college as well as the student’s information. We included information’s about
student’s personal as well as academic information. Regarding Faculty we included the experience of
each faculty and their subject allotted information. It also includes student’s placement details.

17
References

1. Database Management system by Raghurama Krishnana


2. Database Management system concepts by Korth
3. Database Management system by C.J Date

www.wikipedia.com

www.infosyscampusconnect.com

18

Você também pode gostar