You are on page 1of 31

CERTIFICATE

This Is To Certify That The Course Based Project Entitled


“Centralized College Database”. Is a Bonafide Work Done
By Valay Mhatre FYITB 22220,Jobin Pereira
FYITB22159, Atharav Parte FYITB 22103, Shivam
Rajbar FYITB 22164, Aaron Fernandes FYITB 22184,
Sundar Prajapati FYITB 22202. In Partial Fulfilment of
The Requirement For (Semester I) CE_2 PROJECT in
BSC_IT in “Thakur Collage of Science and Commerce”
During The Academic Year 2022-23.

Project in charge Date :-


CONTENTS PAGE NO

INTRODUCTION 7

ERD 8

TABLE DESIGN 9

CREATING DATABASE 10

TABLE&RELATION 11

QUERIES 26

CONCLUSION 40

REFERENCE 41

Bibilography 42
LIST OF FIGURES PAGE NO

ERD 8

TABLE DESIGN 9
List of tables

LIST OF TABLES PAGE NO

STUDENT TABLE 19

COURSE TABLE 20

DEPARTEMENT TABLE 21

SUBJECT TABLE 22

FACULTY TABLE 23

LIBRARY TABLE 24

EXAM TABLE 25
ABSTRACT

• Centralised College Database is developed and implemented in


cross-platform. The main objective of this system is to design
or develop a software portal for colleges for maintaining
lectures details, student's attendance information, and student's
internal and external marks managing system. Students will use
this system from anywhere to know about details on attendance
and marks and communicate with respectable members for
doubts. Latest data on marks and school or college data are
modified or updated by the administrator which is available for
lecturers and students
• Presently to maintain data about different aspects, the college is
using manual process i.e., using huge registers and books. Now
the college needs a computerized and advanced environment
where it is simple for storing data regarding student
information, their attendance, faculty details, course details,
marks reports ,and schedule. Current manual flow it is a
difficult job in maintaining. Using data and more time is taken
or consuming.
• There is a total wastage of stationery products and more human
resources and manpower effort is required. We have now
developed a computerized and automatic environment which
replace all these issues.
INTRODUCTION

• Centralised College Database will work on college area network. Under


this College Database, it will include all the departments which come to a
particular college. It will have billing system for the finance department,
library system for carrying out the task of library department ,class
attendance, online notes and notice board so that their students can get all
the information by using their valid registration ID and password. If any
student is notable to submit their library book on time, then he/she will
find a charge for the requested amount.
• The system utilizes user authentication, displaying only information
necessary for an individual’s duties. Additionally, each sub-system has
authentication allowing authorized users to create or update information
in that subsystem. All data is thoroughly reviewed and validated on the
server before actual record alteration occurs. In addition to a staff user
interface, the system plans for student user interface, allowing users to
access
• information and submit requests online thus reducing processing time. All
data is stored securely on SQL servers managed by the college
administrator and ensures a highest possible level of security. The system
features a complex logging system to track all users’ access and ensure
conformity to data access guidelines and is expected to increase the
efficiency of the college’s record management thereby decreasing the
work hours.
CREATING DATABASE

CREATE DATABASE
CENTRALIZED_COLLEGE_DATABASE_G2;CO
NNECT
CENTRALIZED_COLLEGE_DATABASE_G2;
TABLE RELATION

STUDENT &FACULTY MANY TO ONE

STUDENT & COURSE MANY TO ONE

DEPARTEMENT & COUSRE ONE TO MANY

FACULTY & SUBJECTS ONE TO MANY

STUDENT & LIBRARY ONE TO MANY

DEPARTEMENT & EXAM ONE TO MANY

DEPARTEMENT & FACULTY ONE TO MANY


Creating student table

• CREATE TABLE STUDENT


• (STD_ID INTEGER PRIMARY KEY,
• F_NAME VARCHAR(40),
• ADDRESS VARCHAR(100),
• PHONE_NO NUMERIC(10),
• AGE INTEGER(20),
• GENDER CHAR(1));
Creating course table

• CREATE TABLE COURSE


• (C_ID INTEGER PRIMARY KEY,
• C_NAME VARCHAR(20));
Creating department table

• CREATE TABLE DEPARTEMENT


• (D_ID INTEGER(20),
• D_NAME VARCHAR(20));
Creating subject table

• CREATE TABLE SUBJECT


• (SUB_ID INTEGER PRIMARY KEY,
• SUB_NAME VARCHAR(20),
• E_ID INTEGER(10));
Creating faculty table

• CREATE TABLE FACULTY


• (F_ID INTEGER PRIMARY KEY,
• F_NAME VARCHAR(100)
• SALARY INT(20),
• GENDER CHAR(1),
• PHONE_NO DECIMAL(10,0));
Creating library table

• CREATE TABLE LIBRARY


• (BOOK_ID INTEGER PRIMARY KEY,
• BOOK_NAME VARCHAR(50),
• D_O_I DATE);
Creating exam table

• CREATE TABLE EXAM


• (EXAM_ID INTEGER PRIMARY KEY,
• ROOM_NO INTEGER(20),
• TIME TIME,
• DATE DATE);
INSERT INTO STUDENT
VALUES
(1,'AKSHAY','MUMBAI', 8877881122,18,'M'),
(2,'SANDHYA','KOLKATA',7722829912,19,'F'),
(3,'TEESHA','BENGALURU', 7712312312,18,'F'),
(4,'SUPRIYA','MUMBAI',8877881122,17,'F'),
(5,'ABHAY','BENGALURU', 9900211201,19,'M'),
(6,'BHASKAR','DELHI',9923211099,18,'M'),
(7,'ASMI','BENGALURU', 7894737377,17,'F'),
(8,'AJAY','PUNE', 9845091341,18,'M'),
(9,'CHITRA','DELHI', 7696772121,19,'F'),
(10,'JEEVA','PUNE', 9944850121,18,'M');
INSERT INTO COURSE
VALUES
(1,'BSC IT'),
(2,'BSC CS'),
(3,'BSC DS');

INSERT INTO SUBJECT


VALUES
(1,'DBMS',201),
(2,'D.E',202),
(3,'C.S',203),
(4,'MATHS',204),
(5,'I.P',205);
INSERT INTO FACULTY
VALUES
(1,'SANA',15000,'F',8464216456),
(2,'SAGRIKA',18000,'F',8464216457),
(3,'ANANDI',10000,'F',8464216458),
(4,'NEETA',8000,'F',8464216459),
(5,'MITHILESH',11000,'M',8464216453);

INSERT INTO DEPARTEMENT


VALUES
(1,'CS'),
(2,'DS'),
(3,'IT');

INSERT INTO LIBRARY


VALUES
(100,'PYTHON','2022/10/12'),
(101,'DISCRETE MATH','2022/10/16'),
(102,'BASIC HTML','2022/10/24'),
(103,'FUNDAMENTALS OF
BASIC COMMUNICATION','2022/10/18'),
(104,'C PROGRAMMING','2022/10/1');
INSERT INTO EXAM
VALUES
(201,101,'8:30','2022/10/12'),
(202,102,'8:30','2022/10/13'),
(203,103,'8:30','2022/10/15'),
(204,118,'8:30','2022/10/17'),
(205,106,'8:30','2022/10/19');
1. ALTER TABLE COURSE
ADD DURATION INTEGER;

2. ALTER TABLE DEPARTEMENT


ADD D_HEAD VARCHAR(20);

3. ALTER TABLE SUBJECT


ADD CREDITS INTEGER;
4. ALTER TABLE SUBJECT
DROP CREDITS;

5. DELETE FROM STUDENT


WHERE ADDRESS='PUNE';

6. UPDATE STUDENT
SET ADDRESS='DELHI'
WHERE F_NAME='SUPRIYA';
7. SELECT SUBJECT.SUB_NAME, SUBJECT.
SUB_ID, EXAM.ROOM_NO FROM
SUBJECT
LEFT JOIN EXAM
ON SUBJECT.E_ID=EXAM.EXAM_ID;

8. SELECT SUBJECT.SUB_NAME,
SUBJECT.SUB_ID, EXAM.ROOM_NO FROM
SUBJECT
INNER JOIN EXAM
ON SUBJECT.E_ID=EXAM.EXAM_ID;

9. SELECT SUBJECT.SUB_NAME,
SUBJECT.SUB_ID, EXAM.ROOM_NO FROM SUBJECT
RIGHT JOIN EXAM
ON SUBJECT.E_ID=EXAM.EXAM_ID;
10.SELECT * FROM STUDENT
WHERE GENDER='M';

11.SELECT * FROM STUDENT


WHERE GENDER='F';

12.SELECT E_ID
FROM SUBJECT
HAVING COUNT(E_ID)>2;

13.SELECT * FROM STUDENT


GROUP BY F_NAME;
14.SELECT DISTINCT ADDRESS FROM STUDENT;

15.SELECT COUNT(F_NAME) FROM STUDENT;

16.SELECT F_NAME, PHONE_NO FROM


FACULTY;

17.SELECT * FROM STUDENT


WHERE AGE<19;

18.SELECT * FROM STUDENT


WHERE
ADDRESS='MUMBAI' OR
ADDRESS='DELHI';

19.SELECT * FROM LIBRARY WHERE


D_O_I BETWEEN '2022/10/1' AND '2022/10/31';
20.SELECT * FROM STUDENT WHERE AGE>18 AND
GENDER='M';

21.SELECT GENDER, SUM(SALARY) AS TOTAL_SALARY


FROM FACULTY
GROUP BY GENDER;

22.SELECT * FROM FACULTY ORDER BY SALARY;

23.SELECT * FROM FACULTY ORDER BY SALARY DESC;

24.SELECT REVERSE(F_NAME) FROM STUDENT;


25.SELECT AVG(SALARY) FROM FACULTY;

26.SELECT MAX(SALARY) FROM FACULTY;

27. SELECT MIN(SALARY) FROM FACULTY;


CONCLUSION

• Information is an indispensable tool that many colleges and other


organization use to advance decision making. Large amount of
student’s data are generated either manually or electronically on daily
basis.
• An integrated student database system provides various solutions to
address problems associated with manual system. In order to assess
the performance of the college and students overtime, there is the need
to use past records of students without any missing data. The
integrated student database system which captures and maintains
longitudinal data of students would provide an accurate and reliable
data about current and past students.
• The system is free of errors and very efficient and less time consuming
due to the care taken to develop it. All the phases of software
development cycle are employed and it is worthwhile to state that the
system is very robust. Provision is made for future development in the
system as well.
REFRENCE

• Oracle
• Database | Oracle
• Advanced SQL Queries, Examples of Queries in SQL List of TOP-70 Items in 2022 –
Byte Scout
• SQL Tutorial (w3schools.com)
• Learn SQL Tutorial – java t point

You might also like