SlideShare a Scribd company logo
1 of 33
Download to read offline
CSC251 - Database Management System Lab
Presented by: Group 04
1. Project Description
2. Entity Relation Diagram
3. Schema Diagram
4. Attribute, Data type and Constraints of each Entity
5. List of Queries
6. Normalised form of tables
7. Queries and Output
8. Queries using Stored Procedures
9. Queries using Triggers
Outline
• An organized and systematic office solution is essential for all universities and
organizations.
• There are many departments of administration for the maintenance of college
information and student databases in any institution.
• All the modules in college administration are interdependent. So they need to
be centralized as, Information from one module will be needed by other
modules.
• The SEAS Educational Resource Management System is an automated version
of manual system. In case of manual system they need a lot of time,
manpower etc. Here all work is computerized. So the accuracy is maintained.
Maintaining backup is very easy which it can do with in a few minutes.
Project Description
• SEAS Educational Resource Management System deals with
• All kind of student details
• Professor details
• Course & Exam details
• Internship details
• E-learning material details
• Book & book store details
• Summer Project details and other resource related details too.
• Thus, this can be a very useful data base for the SEASers because it includes
almost all kind of details related to study from the very first day at college to
the last day!
Project Description Cont…
• Find out internships
• Find summer projects & extra credit courses of university
• Know about exam schedule
• Explore professor details
• Checkout library availability status of any book
• Find book shops near you
• Find softcopy of books
• Explore E-Learning
• Know about upcoming events and seminars
• Checkout your attendance
• Know your Credits subject vies
• Find backups
Main features of this Database System
Entity
Relationship
Diagram
Schema Diagram
Attribute Data type Constraints
Student ID Varchar(10) Primary Key
Enrollment No Varchar(10) Not Null
First Name Varchar(15) Not Null
Middle Name Varchar(15) Not Null
Last Name Varchar(15) Not Null
Student Contact No Decimal(10, 0) Not Null
Parent Contact No Decimal(10, 0) Not Null
Student Email ID Varchar(20) Not Null
Parent Email ID Varchar(20) Not Null
Father’s Occupation Varchar(10) Not Null
Mother’s Occupation Varchar(10) Not Null
Branch Varchar(10) Foreign Key(Branch), Not null
Blood Group Varchar(5) Not Null
Number of Backlogs Int
Attributes , Data Types and Constraint of Some Important
Entities
• Entity: Student
In the table shown above we have Student ID as the primary key which is unique for each row . The
various other attributes store the details of the students which is provided to the institution at the time of
admission.
Entity: Professor
Attribute Datatype Constraints
Professor ID Varchar(10) Primary Key
First Name Varchar(20) Not Null
Middle Name Varchar(20) Not Null
Last Name Varchar(20) Not Null
Contact No Decimal(10, 0) Not Null
Office Contact No Decimal(10, 0) Not Null
Email ID Varchar(20) Not Null
Office No Int Not Null
In the table shown above
Professor ID is the primary key
which uniquely identifies each
professor. This table stores the
personal details of the
professor.
Entity: Book
Attribute Datatype Constraints
Course ID Varchar(10) Foreign Key(Course), Not
Null
ISBN No Varchar(12) Not Null
Book ID Varchar(10) Primary Key
Title Varchar(50) Not Null
Edition Int
Publisher Varchar(30) Not Null
Rating Varchar(10)
Soft Copy URL Varchar(100)
Library Availability Status Char Not Null
Available In (Book Store) Varchar(10)
Price Real Not Null
In the book table Book ID is the
primary key which uniquely
identifies each book. This table
provides complete description of
each book along with the URL of
soft copy of the book.
Entity: Course
Attribute Data type Constraints
Course ID VARCHAR(10) PRIMARY KEY, NOT NULL
Name VARCHAR(20) NOT NULL
Description VARCHAR(40) NOT NULL
Credit REAL Foreign key (Professor), NOT
NULL
Professor ID VARCHAR(10) UNIQUE, NOT NULL
Branch VARCHAR(10) Foreign key (Branch), NOT
NULL
Semester No INT NOT NULL
Year INT NOT NULL
Type (core, elective) VARCHAR(10) NOT NULL
Semester Hours REAL
In the table shown above we have
Course ID as primary key which
uniquely identifies each course. This
table stores the complete description
of a particular course along with the
semester and the year in which the
course is offered.
Entity: Internship
Attribute Data type Constraints
Company ID Varchar(10) Primary Key, Not Null
Company Name Varchar(20) Not Null
Year Int Not Null
HR Name Varchar(20) Not Null
Contact No Decimal(10, 0) Not Null
Profile Varchar(30)
Stipend Real
In the table shown above we have
Company ID as primary key which
uniquely identifies internship offer of
each company. This table stores the
complete description of a internship
offered along with the profile the
company looks for and the stipend
they offer .
Entity: Semester
Attribute Data type Constraints
Semester No INT PRIMARY KEY, NOT NULL
Year INT
Name (winter /monsoon) VARCHAR(10) NOT NULL
Start Date DATE NOT NULL
End Date DATE
In the table shown above we have
semester no and year as primary
key which uniquely identifies each
semester. This table stores the
details like name, start date and
end date of each semester.
Attribute Data type Constraints
Exam ID VARCHAR(10) PRIMARY KEY, NOT NULL
Term VARCHAR(15) NOT NULL
Start Date DATE NOT NULL
End Date DATE NOT NULL
Time TIME NOT NULL
Entity: Exam
In the table shown above we
have exam id as the primary key
which is unique for every exam
conducted in each semester. This
semester stores the details of
the exam like the term in which
the exam takes place and the
start date and end date of exam.
Attribute Data type Constraints
Student ID VARCHAR(10) PRIMARY KEY, FOREIGN
KEY(Student),NOT NULL
Course ID VARCHAR(10) PRIMARY KEY, FOREIGN
KEY(Course), NOT NULL
Semester INT NOT NULL
CGPA REAL NOT NULL
Grade CHAR NOT NULL
Entity: Result
In the table shown above we have
Student ID and Course ID as the
primary key. Student ID denotes
each student uniquely and Course
ID denotes the course in which
result has been declared.
Entity: Extra course
Attribute Data Type Constraints
Course ID Varchar(10) Not null
Instructor Name Varchar(20) Not null
Name Varchar(20) Not null
Description Varchar(40) -
Year Int Not null
Fees Double -
In the table shown above we have
Course ID as the primary key. This
table stores the details of the extra
course provided by the institution
along with the fees that should be
paid to pursue the extra course.
Entity: Summer Project
Attribute Data Type Constraints
Instructor ID Varchar(10) Not null
Instructor Name Varchar(20) Not null
Title Varchar(20) Not null
Description Varchar(100) -
Year Int Not null
Duration Varchar(10) Not null
Stipend Double -
This table stores the description of
summer project provided in each
course. During summer vacation if a
student wants to know the details of
the project in a specific subject he
may refer this table and contact the
specific instructor in case he wants
to join the project.
Entity: Attendance
Attribute Data Type Constraints
Student ID Varchar(10) Not null
Course ID Varchar(10) Not null
Month Varchar(15) Not null
Total Days Int Not null
Days Attended Int Not null
This table stores the attendance
of each student in every subject
month-wise. This table helps the
institution to know the details of
the students who have less
attendance.
• List the students who have attendance less the 80% in course ‘X’.
• Retrieve all students of B.Tech.(ICT) batch ‘X’ having CGPA >= 3.0.
• Display the Grade of student ‘X’ in course ‘Y’
• List IDs of students of B.Tech.(ICT) batch ‘X’ having any F grade in subject ‘Y’.
• List the pre requirements of company ‘X’ for profile ‘Y’.
• List company names who are offering stipend more than amount ‘X’.
• List all the offered summer projects in year ‘X’.
• Find number of students in batch ‘X’ and branch ‘Y’.
• List the names of professors who has experience of more than 10 years.
• List professors having experience in field /company ‘X’.
• Display the speaker and topic of talk on date ‘X’.
List of Queries
• Display all the seminars of month ‘X’ in year ‘Y’.
• List the students who have taken extra course ‘X’ under the mentorship of
instructor ‘Y’.
• Display URL of soft copy of all the courses of semester ‘X’ of branch ‘Y’.
• List the students who have taken extra course after every semester.
• List out all the books of course ‘X’.
• Find the library availability status of book ‘X’.
• List all the book store of city ‘X’ having book ‘Y’.
• Show all the books of course ‘X’ in ascending order of their rating.
• Display the starting and ending date of mid semester and end semester exam
of semester ‘X’.
• Display top 3 students of course ‘X’.
Cont…
• 1st Normal Form:
• All tables in our project are in 1st normal form as no table contained
multivalued attributes.
• Tables that contained multivalued attributes are student, professor, book,
internship and book store.
• To make these tables in 1st NF we have created separate tables that contained
only multivalued attributes.
Normalized Form of Tables
• Table shown in image is Book Author
table.
• As we can see that one book has
multiple authors, so we cannot
include this attribute in book table.
• 2nd Normal Form:
• All tables in our project are in 2nd normal form as no table contains any partial
dependency.
• Which is not any non- prime attribute depends on any subset of candidate key,
means all non- prime attributes depends on whole candidate key.
Table shown in image is internship table, as we can see that all non- prime attribute
depends on whole candidate key which is “Company ID”.
• 3rd Normal Form:
• All tables in our project are in 3rd normal form, as there in no transitive
dependency between attributes.
• Which is not any non- prime attribute depends on non- prime attributes,
means all non- prime attributes depends only on prime/ candidate key.
• Table shown in image is professor table, We can also derive contact number
of students from their name too that represent transitive dependency.
• But it may be possible that two students have the same name, in this case
contact number depends on Student ID only (candidate key); which
represent 3rd normal form.
• Boyce–Codd Normal Form (BCNF):
• BCNF represents that there is no functional dependency in any table.
• Which is that no prime attribute depends on any non- prime attribute.
• In our project Student table has a functional dependency between attributes
‘Student ID’ and ‘Enrolment ID’.
• Table shown in image in Student table, as we can see that ‘Student ID’ can be
obtained from ‘Enrolment No’.
• To remove this functional dependency we have created another table that
contains only these two attributes.
Queries and Output
• Query: - Total Attendance of students for course ‘X’.
• Query: - Name of courses taken by professor
‘X’ in winter.
• Query: - Top 3 Students of course ‘X’.
• Query: - List of seminar/ talk details for in
ascending order of semester.
• Query:- Display the details of all the students whose attendance
is less than 80% in DBMS.
• Query:- Display the details of student who have failed in
supplementary exam.
• Query:-Find the total number of students from ICT branch who
have to give supplementary exam.
• Query:-Find the IDs of students who have A+ in ESD or A+ in
Economics or A+ in ADC.
Inserting Using Sequence
CREATE TABLE Admin(
`User ID` INT(4) NOT NULL PRIMARY KEY AUTO_INCREMENT ,
`User Name` VARCHAR(30)
);
EXPLANATION:
• While creating table admin the attribute ‘User ID’ is defined by auto increment function which
indicates that whenever a new value is entered the attribute ‘User ID’ is automatically
incremented.
• A stored procedure is a set of Structured Query Language (SQL) statements to execute a
particular instruction with a name assigned to it, so it can be reused to execute the same
set of instruction with different values of parameters in it.
• Benefits of using Stored Procedures:
• Using stored procedures we can access and modify data in database.
• It improves the productivity as statements in a stored procedure must be written
once.
• It reduces the network traffic on server as only the call to execute stored procedure
needs to be sent over a network instead of writing every single line of the code.
Stored Procedures
Examples
• Example shown in image is to find out result details of a particular course as to find out overall
performance in a particular subject, this is important and it is frequently used by professor and admin
staff.
• Example shown in image is to find out library status of a book, it is frequently used by students as it is
important for them to check a library status of a particular book.
• Example shown in image is to find out talk/seminar details of a particular day, which is
frequently used by students.
• Example shown in image is to find out total attendance of students in a particular
course, this is frequently used by professor.
• A trigger is a special kind of stored procedure that automatically executes when
an event occurs in the database server.
• DML triggers execute when a user tries to modify data through a data
manipulation language (DML) event.
• DML events are INSERT, UPDATE, or DELETE statements on a table or view.
• These triggers fire when any valid event is fired, regardless of whether or not any
table rows are affected.
• Types of Triggers:
• Row Triggers and Statement Triggers
• BEFORE and AFTER Triggers
• INSTEAD OF Triggers
• Triggers on System Events and User Events
Trigger in DBMS
• Backing up data of Result table
• This trigger will insert data in new table whenever result table is updated
Queries using Triggers
Inserted data in table Result Updated data in table Result
Backed up data in table trigger_result after update
• Auto generate attendance in %
• This trigger will calculate % of days attended in given month of a student at the
time of insertion.
Cont…
• Auto generate Username of Admin
• This trigger will generate username for admin people whenever their first and last
name is inserted into database.
Cont…
Created trigger Before Insert
Output of admin table
• Storing details of deleted student from supplementary exam table
• This trigger will help to insert data of students in new backed up table whenever
data is deleted form supplementary exam table.
Cont…
Inserted data in supplementary exam table When student 201401021 passes course SEASC004
Backed up data in trigger_s_exam table after deleting it from main table
Thank you!

More Related Content

Similar to Educational Resource Management System

Storm rubrics presentation
Storm rubrics presentationStorm rubrics presentation
Storm rubrics presentationMarsha Jurewicz
 
5252020 Rubric Detail – 31228.202030httpsucumberlands.docx
5252020 Rubric Detail – 31228.202030httpsucumberlands.docx5252020 Rubric Detail – 31228.202030httpsucumberlands.docx
5252020 Rubric Detail – 31228.202030httpsucumberlands.docxfredharris32
 
Office 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docx
Office 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docxOffice 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docx
Office 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docxcherishwinsland
 
Databases, SQL and MS SQL Server
Databases, SQL and MS SQL ServerDatabases, SQL and MS SQL Server
Databases, SQL and MS SQL ServerDoncho Minkov
 
Resource PortfolioUnit outcomes addressed in this Assignment·.docx
Resource PortfolioUnit outcomes addressed in this Assignment·.docxResource PortfolioUnit outcomes addressed in this Assignment·.docx
Resource PortfolioUnit outcomes addressed in this Assignment·.docxdebishakespeare
 
Information Systems in Healthcare Paper Guidelines (graded, 200 poin
Information Systems in Healthcare Paper Guidelines (graded, 200 poinInformation Systems in Healthcare Paper Guidelines (graded, 200 poin
Information Systems in Healthcare Paper Guidelines (graded, 200 poinKiyokoSlagleis
 
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docxOffice 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docxcherishwinsland
 
Interactive Ppt College Research Requirements
Interactive Ppt  College Research RequirementsInteractive Ppt  College Research Requirements
Interactive Ppt College Research RequirementsBMS
 
Report Reference Guide
Report Reference GuideReport Reference Guide
Report Reference Guidesgarrett333
 
Top of FormBottom of FormEnterprise Architecture Enables Proce.docx
Top of FormBottom of FormEnterprise Architecture Enables Proce.docxTop of FormBottom of FormEnterprise Architecture Enables Proce.docx
Top of FormBottom of FormEnterprise Architecture Enables Proce.docxturveycharlyn
 
Choosing HSC Courses
Choosing HSC CoursesChoosing HSC Courses
Choosing HSC Coursesdean2105
 

Similar to Educational Resource Management System (16)

Storm rubrics presentation
Storm rubrics presentationStorm rubrics presentation
Storm rubrics presentation
 
5252020 Rubric Detail – 31228.202030httpsucumberlands.docx
5252020 Rubric Detail – 31228.202030httpsucumberlands.docx5252020 Rubric Detail – 31228.202030httpsucumberlands.docx
5252020 Rubric Detail – 31228.202030httpsucumberlands.docx
 
Office 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docx
Office 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docxOffice 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docx
Office 2016 – myitlabgrader – InstructionsAccess ProjectMIS 30.docx
 
Databases, SQL and MS SQL Server
Databases, SQL and MS SQL ServerDatabases, SQL and MS SQL Server
Databases, SQL and MS SQL Server
 
Resource PortfolioUnit outcomes addressed in this Assignment·.docx
Resource PortfolioUnit outcomes addressed in this Assignment·.docxResource PortfolioUnit outcomes addressed in this Assignment·.docx
Resource PortfolioUnit outcomes addressed in this Assignment·.docx
 
ER_model
ER_modelER_model
ER_model
 
Class search-tutorial
Class search-tutorialClass search-tutorial
Class search-tutorial
 
EDA
EDAEDA
EDA
 
Information Systems in Healthcare Paper Guidelines (graded, 200 poin
Information Systems in Healthcare Paper Guidelines (graded, 200 poinInformation Systems in Healthcare Paper Guidelines (graded, 200 poin
Information Systems in Healthcare Paper Guidelines (graded, 200 poin
 
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docxOffice 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
Office 2013 – myitlabgrader – InstructionsA_MIS_301MIS 301.docx
 
Euroquest
EuroquestEuroquest
Euroquest
 
Education case study(datawarehouse )
Education  case study(datawarehouse )Education  case study(datawarehouse )
Education case study(datawarehouse )
 
Interactive Ppt College Research Requirements
Interactive Ppt  College Research RequirementsInteractive Ppt  College Research Requirements
Interactive Ppt College Research Requirements
 
Report Reference Guide
Report Reference GuideReport Reference Guide
Report Reference Guide
 
Top of FormBottom of FormEnterprise Architecture Enables Proce.docx
Top of FormBottom of FormEnterprise Architecture Enables Proce.docxTop of FormBottom of FormEnterprise Architecture Enables Proce.docx
Top of FormBottom of FormEnterprise Architecture Enables Proce.docx
 
Choosing HSC Courses
Choosing HSC CoursesChoosing HSC Courses
Choosing HSC Courses
 

More from Charmi Chokshi

Deep learning with tensorflow
Deep learning with tensorflowDeep learning with tensorflow
Deep learning with tensorflowCharmi Chokshi
 
From ELIZA to Alexa and Beyond
From ELIZA to Alexa and BeyondFrom ELIZA to Alexa and Beyond
From ELIZA to Alexa and BeyondCharmi Chokshi
 
Trade relations US & India; the changing faces
Trade relations US & India; the changing facesTrade relations US & India; the changing faces
Trade relations US & India; the changing facesCharmi Chokshi
 
Public vs private sector banks in india
Public vs private sector banks in indiaPublic vs private sector banks in india
Public vs private sector banks in indiaCharmi Chokshi
 
Market analysis of pencil
Market analysis of pencilMarket analysis of pencil
Market analysis of pencilCharmi Chokshi
 
Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...
Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...
Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...Charmi Chokshi
 
Face recognition system using Hidden Markov Model
Face recognition system using Hidden Markov ModelFace recognition system using Hidden Markov Model
Face recognition system using Hidden Markov ModelCharmi Chokshi
 
Dictionary implementation using TRIE
Dictionary implementation using TRIEDictionary implementation using TRIE
Dictionary implementation using TRIECharmi Chokshi
 

More from Charmi Chokshi (14)

Deep learning with tensorflow
Deep learning with tensorflowDeep learning with tensorflow
Deep learning with tensorflow
 
Charmi chokshi ppt
Charmi chokshi pptCharmi chokshi ppt
Charmi chokshi ppt
 
From ELIZA to Alexa and Beyond
From ELIZA to Alexa and BeyondFrom ELIZA to Alexa and Beyond
From ELIZA to Alexa and Beyond
 
Report smart dustbin
Report smart dustbinReport smart dustbin
Report smart dustbin
 
Os prj ppt
Os prj pptOs prj ppt
Os prj ppt
 
magazine
magazinemagazine
magazine
 
Radio
RadioRadio
Radio
 
Trade relations US & India; the changing faces
Trade relations US & India; the changing facesTrade relations US & India; the changing faces
Trade relations US & India; the changing faces
 
Public vs private sector banks in india
Public vs private sector banks in indiaPublic vs private sector banks in india
Public vs private sector banks in india
 
Market analysis of pencil
Market analysis of pencilMarket analysis of pencil
Market analysis of pencil
 
Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...
Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...
Indian agriculture sector, Issues Related to Minimum Support Price, Subsidies...
 
Face recognition system using Hidden Markov Model
Face recognition system using Hidden Markov ModelFace recognition system using Hidden Markov Model
Face recognition system using Hidden Markov Model
 
Dictionary implementation using TRIE
Dictionary implementation using TRIEDictionary implementation using TRIE
Dictionary implementation using TRIE
 
8 bit mips-processor
8 bit mips-processor8 bit mips-processor
8 bit mips-processor
 

Recently uploaded

Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
Livre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdf
Livre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdfLivre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdf
Livre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdfsaad175691
 
Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...
Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...
Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...shreenathji26
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProRay Yuan Liu
 
ADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain studyADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain studydhruvamdhruvil123
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 
1- Practice occupational health and safety procedures.pptx
1- Practice occupational health and safety procedures.pptx1- Practice occupational health and safety procedures.pptx
1- Practice occupational health and safety procedures.pptxMel Paras
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfBalamuruganV28
 
10 AsymmetricKey Cryptography students.pptx
10 AsymmetricKey Cryptography students.pptx10 AsymmetricKey Cryptography students.pptx
10 AsymmetricKey Cryptography students.pptxAdityaGoogle
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...Amil baba
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
input buffering in lexical analysis in CD
input buffering in lexical analysis in CDinput buffering in lexical analysis in CD
input buffering in lexical analysis in CDHeadOfDepartmentComp1
 
Indian Tradition, Culture & Societies.pdf
Indian Tradition, Culture & Societies.pdfIndian Tradition, Culture & Societies.pdf
Indian Tradition, Culture & Societies.pdfalokitpathak01
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfShreyas Pandit
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxLina Kadam
 

Recently uploaded (20)

Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
Livre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdf
Livre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdfLivre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdf
Livre Implementing_Six_Sigma_and_Lean_A_prac([Ron_Basu]_).pdf
 
Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...
Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...
Introduction to Artificial Intelligence: Intelligent Agents, State Space Sear...
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision Pro
 
ADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain studyADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain study
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 
1- Practice occupational health and safety procedures.pptx
1- Practice occupational health and safety procedures.pptx1- Practice occupational health and safety procedures.pptx
1- Practice occupational health and safety procedures.pptx
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
10 AsymmetricKey Cryptography students.pptx
10 AsymmetricKey Cryptography students.pptx10 AsymmetricKey Cryptography students.pptx
10 AsymmetricKey Cryptography students.pptx
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
input buffering in lexical analysis in CD
input buffering in lexical analysis in CDinput buffering in lexical analysis in CD
input buffering in lexical analysis in CD
 
Indian Tradition, Culture & Societies.pdf
Indian Tradition, Culture & Societies.pdfIndian Tradition, Culture & Societies.pdf
Indian Tradition, Culture & Societies.pdf
 
Versatile Engineering Construction Firms
Versatile Engineering Construction FirmsVersatile Engineering Construction Firms
Versatile Engineering Construction Firms
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdf
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptx
 

Educational Resource Management System

  • 1. CSC251 - Database Management System Lab Presented by: Group 04
  • 2. 1. Project Description 2. Entity Relation Diagram 3. Schema Diagram 4. Attribute, Data type and Constraints of each Entity 5. List of Queries 6. Normalised form of tables 7. Queries and Output 8. Queries using Stored Procedures 9. Queries using Triggers Outline
  • 3. • An organized and systematic office solution is essential for all universities and organizations. • There are many departments of administration for the maintenance of college information and student databases in any institution. • All the modules in college administration are interdependent. So they need to be centralized as, Information from one module will be needed by other modules. • The SEAS Educational Resource Management System is an automated version of manual system. In case of manual system they need a lot of time, manpower etc. Here all work is computerized. So the accuracy is maintained. Maintaining backup is very easy which it can do with in a few minutes. Project Description
  • 4. • SEAS Educational Resource Management System deals with • All kind of student details • Professor details • Course & Exam details • Internship details • E-learning material details • Book & book store details • Summer Project details and other resource related details too. • Thus, this can be a very useful data base for the SEASers because it includes almost all kind of details related to study from the very first day at college to the last day! Project Description Cont…
  • 5. • Find out internships • Find summer projects & extra credit courses of university • Know about exam schedule • Explore professor details • Checkout library availability status of any book • Find book shops near you • Find softcopy of books • Explore E-Learning • Know about upcoming events and seminars • Checkout your attendance • Know your Credits subject vies • Find backups Main features of this Database System
  • 8. Attribute Data type Constraints Student ID Varchar(10) Primary Key Enrollment No Varchar(10) Not Null First Name Varchar(15) Not Null Middle Name Varchar(15) Not Null Last Name Varchar(15) Not Null Student Contact No Decimal(10, 0) Not Null Parent Contact No Decimal(10, 0) Not Null Student Email ID Varchar(20) Not Null Parent Email ID Varchar(20) Not Null Father’s Occupation Varchar(10) Not Null Mother’s Occupation Varchar(10) Not Null Branch Varchar(10) Foreign Key(Branch), Not null Blood Group Varchar(5) Not Null Number of Backlogs Int Attributes , Data Types and Constraint of Some Important Entities • Entity: Student In the table shown above we have Student ID as the primary key which is unique for each row . The various other attributes store the details of the students which is provided to the institution at the time of admission.
  • 9. Entity: Professor Attribute Datatype Constraints Professor ID Varchar(10) Primary Key First Name Varchar(20) Not Null Middle Name Varchar(20) Not Null Last Name Varchar(20) Not Null Contact No Decimal(10, 0) Not Null Office Contact No Decimal(10, 0) Not Null Email ID Varchar(20) Not Null Office No Int Not Null In the table shown above Professor ID is the primary key which uniquely identifies each professor. This table stores the personal details of the professor. Entity: Book Attribute Datatype Constraints Course ID Varchar(10) Foreign Key(Course), Not Null ISBN No Varchar(12) Not Null Book ID Varchar(10) Primary Key Title Varchar(50) Not Null Edition Int Publisher Varchar(30) Not Null Rating Varchar(10) Soft Copy URL Varchar(100) Library Availability Status Char Not Null Available In (Book Store) Varchar(10) Price Real Not Null In the book table Book ID is the primary key which uniquely identifies each book. This table provides complete description of each book along with the URL of soft copy of the book.
  • 10. Entity: Course Attribute Data type Constraints Course ID VARCHAR(10) PRIMARY KEY, NOT NULL Name VARCHAR(20) NOT NULL Description VARCHAR(40) NOT NULL Credit REAL Foreign key (Professor), NOT NULL Professor ID VARCHAR(10) UNIQUE, NOT NULL Branch VARCHAR(10) Foreign key (Branch), NOT NULL Semester No INT NOT NULL Year INT NOT NULL Type (core, elective) VARCHAR(10) NOT NULL Semester Hours REAL In the table shown above we have Course ID as primary key which uniquely identifies each course. This table stores the complete description of a particular course along with the semester and the year in which the course is offered. Entity: Internship Attribute Data type Constraints Company ID Varchar(10) Primary Key, Not Null Company Name Varchar(20) Not Null Year Int Not Null HR Name Varchar(20) Not Null Contact No Decimal(10, 0) Not Null Profile Varchar(30) Stipend Real In the table shown above we have Company ID as primary key which uniquely identifies internship offer of each company. This table stores the complete description of a internship offered along with the profile the company looks for and the stipend they offer .
  • 11. Entity: Semester Attribute Data type Constraints Semester No INT PRIMARY KEY, NOT NULL Year INT Name (winter /monsoon) VARCHAR(10) NOT NULL Start Date DATE NOT NULL End Date DATE In the table shown above we have semester no and year as primary key which uniquely identifies each semester. This table stores the details like name, start date and end date of each semester. Attribute Data type Constraints Exam ID VARCHAR(10) PRIMARY KEY, NOT NULL Term VARCHAR(15) NOT NULL Start Date DATE NOT NULL End Date DATE NOT NULL Time TIME NOT NULL Entity: Exam In the table shown above we have exam id as the primary key which is unique for every exam conducted in each semester. This semester stores the details of the exam like the term in which the exam takes place and the start date and end date of exam.
  • 12. Attribute Data type Constraints Student ID VARCHAR(10) PRIMARY KEY, FOREIGN KEY(Student),NOT NULL Course ID VARCHAR(10) PRIMARY KEY, FOREIGN KEY(Course), NOT NULL Semester INT NOT NULL CGPA REAL NOT NULL Grade CHAR NOT NULL Entity: Result In the table shown above we have Student ID and Course ID as the primary key. Student ID denotes each student uniquely and Course ID denotes the course in which result has been declared. Entity: Extra course Attribute Data Type Constraints Course ID Varchar(10) Not null Instructor Name Varchar(20) Not null Name Varchar(20) Not null Description Varchar(40) - Year Int Not null Fees Double - In the table shown above we have Course ID as the primary key. This table stores the details of the extra course provided by the institution along with the fees that should be paid to pursue the extra course.
  • 13. Entity: Summer Project Attribute Data Type Constraints Instructor ID Varchar(10) Not null Instructor Name Varchar(20) Not null Title Varchar(20) Not null Description Varchar(100) - Year Int Not null Duration Varchar(10) Not null Stipend Double - This table stores the description of summer project provided in each course. During summer vacation if a student wants to know the details of the project in a specific subject he may refer this table and contact the specific instructor in case he wants to join the project. Entity: Attendance Attribute Data Type Constraints Student ID Varchar(10) Not null Course ID Varchar(10) Not null Month Varchar(15) Not null Total Days Int Not null Days Attended Int Not null This table stores the attendance of each student in every subject month-wise. This table helps the institution to know the details of the students who have less attendance.
  • 14. • List the students who have attendance less the 80% in course ‘X’. • Retrieve all students of B.Tech.(ICT) batch ‘X’ having CGPA >= 3.0. • Display the Grade of student ‘X’ in course ‘Y’ • List IDs of students of B.Tech.(ICT) batch ‘X’ having any F grade in subject ‘Y’. • List the pre requirements of company ‘X’ for profile ‘Y’. • List company names who are offering stipend more than amount ‘X’. • List all the offered summer projects in year ‘X’. • Find number of students in batch ‘X’ and branch ‘Y’. • List the names of professors who has experience of more than 10 years. • List professors having experience in field /company ‘X’. • Display the speaker and topic of talk on date ‘X’. List of Queries
  • 15. • Display all the seminars of month ‘X’ in year ‘Y’. • List the students who have taken extra course ‘X’ under the mentorship of instructor ‘Y’. • Display URL of soft copy of all the courses of semester ‘X’ of branch ‘Y’. • List the students who have taken extra course after every semester. • List out all the books of course ‘X’. • Find the library availability status of book ‘X’. • List all the book store of city ‘X’ having book ‘Y’. • Show all the books of course ‘X’ in ascending order of their rating. • Display the starting and ending date of mid semester and end semester exam of semester ‘X’. • Display top 3 students of course ‘X’. Cont…
  • 16. • 1st Normal Form: • All tables in our project are in 1st normal form as no table contained multivalued attributes. • Tables that contained multivalued attributes are student, professor, book, internship and book store. • To make these tables in 1st NF we have created separate tables that contained only multivalued attributes. Normalized Form of Tables • Table shown in image is Book Author table. • As we can see that one book has multiple authors, so we cannot include this attribute in book table.
  • 17. • 2nd Normal Form: • All tables in our project are in 2nd normal form as no table contains any partial dependency. • Which is not any non- prime attribute depends on any subset of candidate key, means all non- prime attributes depends on whole candidate key. Table shown in image is internship table, as we can see that all non- prime attribute depends on whole candidate key which is “Company ID”.
  • 18. • 3rd Normal Form: • All tables in our project are in 3rd normal form, as there in no transitive dependency between attributes. • Which is not any non- prime attribute depends on non- prime attributes, means all non- prime attributes depends only on prime/ candidate key. • Table shown in image is professor table, We can also derive contact number of students from their name too that represent transitive dependency. • But it may be possible that two students have the same name, in this case contact number depends on Student ID only (candidate key); which represent 3rd normal form.
  • 19. • Boyce–Codd Normal Form (BCNF): • BCNF represents that there is no functional dependency in any table. • Which is that no prime attribute depends on any non- prime attribute. • In our project Student table has a functional dependency between attributes ‘Student ID’ and ‘Enrolment ID’. • Table shown in image in Student table, as we can see that ‘Student ID’ can be obtained from ‘Enrolment No’. • To remove this functional dependency we have created another table that contains only these two attributes.
  • 20. Queries and Output • Query: - Total Attendance of students for course ‘X’. • Query: - Name of courses taken by professor ‘X’ in winter.
  • 21. • Query: - Top 3 Students of course ‘X’. • Query: - List of seminar/ talk details for in ascending order of semester.
  • 22. • Query:- Display the details of all the students whose attendance is less than 80% in DBMS. • Query:- Display the details of student who have failed in supplementary exam.
  • 23. • Query:-Find the total number of students from ICT branch who have to give supplementary exam. • Query:-Find the IDs of students who have A+ in ESD or A+ in Economics or A+ in ADC.
  • 24. Inserting Using Sequence CREATE TABLE Admin( `User ID` INT(4) NOT NULL PRIMARY KEY AUTO_INCREMENT , `User Name` VARCHAR(30) ); EXPLANATION: • While creating table admin the attribute ‘User ID’ is defined by auto increment function which indicates that whenever a new value is entered the attribute ‘User ID’ is automatically incremented.
  • 25. • A stored procedure is a set of Structured Query Language (SQL) statements to execute a particular instruction with a name assigned to it, so it can be reused to execute the same set of instruction with different values of parameters in it. • Benefits of using Stored Procedures: • Using stored procedures we can access and modify data in database. • It improves the productivity as statements in a stored procedure must be written once. • It reduces the network traffic on server as only the call to execute stored procedure needs to be sent over a network instead of writing every single line of the code. Stored Procedures
  • 26. Examples • Example shown in image is to find out result details of a particular course as to find out overall performance in a particular subject, this is important and it is frequently used by professor and admin staff. • Example shown in image is to find out library status of a book, it is frequently used by students as it is important for them to check a library status of a particular book.
  • 27. • Example shown in image is to find out talk/seminar details of a particular day, which is frequently used by students. • Example shown in image is to find out total attendance of students in a particular course, this is frequently used by professor.
  • 28. • A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server. • DML triggers execute when a user tries to modify data through a data manipulation language (DML) event. • DML events are INSERT, UPDATE, or DELETE statements on a table or view. • These triggers fire when any valid event is fired, regardless of whether or not any table rows are affected. • Types of Triggers: • Row Triggers and Statement Triggers • BEFORE and AFTER Triggers • INSTEAD OF Triggers • Triggers on System Events and User Events Trigger in DBMS
  • 29. • Backing up data of Result table • This trigger will insert data in new table whenever result table is updated Queries using Triggers Inserted data in table Result Updated data in table Result Backed up data in table trigger_result after update
  • 30. • Auto generate attendance in % • This trigger will calculate % of days attended in given month of a student at the time of insertion. Cont…
  • 31. • Auto generate Username of Admin • This trigger will generate username for admin people whenever their first and last name is inserted into database. Cont… Created trigger Before Insert Output of admin table
  • 32. • Storing details of deleted student from supplementary exam table • This trigger will help to insert data of students in new backed up table whenever data is deleted form supplementary exam table. Cont… Inserted data in supplementary exam table When student 201401021 passes course SEASC004 Backed up data in trigger_s_exam table after deleting it from main table