Вы находитесь на странице: 1из 21

Tuition Database System

CHAPTER 1
INTRODUCTION
1.1 Overview of the project
An online Tuition management system is a platform where both students can sign up and fill in
their respective details to find the best tutor. This is also a platform for tutors with good experience in
teaching to find students.
The database enables both students and teachers to sign in and fill in their details and submit it.This
is then accessible by the administrator only.After signing in with their unique name and password, the
students can access the webpage and get familiar with the offers and specifications of the management.
The website is simple to use and it is a user-friendly application.The role of the application is to
maintain data and process it whenever it is needed. It is a simple UI (user interface) system, there is a
requirement to maintain all the users detail records to achieve that there is a need to use a system which
will store and process all this data. The user should register or maintain his/her profile in order to access
the website.

The website consists of six tables with its specific attributes and the six tables are :
Admin
Quote
Ssign
Tsign
Sdetails
Tdetails

Each table as unique key attribute named as primary keys, a relationship between the tables/entities
are drawn using a foreign key and resolved into a tables/entities.

DBMS:
A database-management system (DBMS) is a computer-software application that interacts
with end-users, other applications, and the database itself to capture and analyze data. A general-
purpose DBMS allows the definition, creation, querying, update, and administration of database. A
database is not generally portable across different DBMSs, but different DBMSs can Inter-operate by
using standards such as SQL and ODBC or JDBC to allow a single application to work with more than
one DBMS.
The DBMS essentially serves as an interface between the database and end users or application
programs, ensuring the data is consistently organized and remains easily accessible. A DBMS provides
concurrency, security, data integrity, consistency, controls redundancy and data independence. In this
project the Relational DBMS (RDBMS) used in MySQL. It is open source software which uses SQL (
Structural Query Language ) which is a standard language for storing, manipulating and retrieving data
in databases.

Dept. of CSE, SJBIT 2019-20 1


Tuition Database System

JSP
It stands for Java Server Pages.
It is a server side technology.
It is used for creating web application.
It is used to create dynamic web content.
In this JSP tags are used to insert JAVA code into HTML pages.
It is an advanced version of Servlet Technology.
It is a Web based technology helps us to create dynamic and platform independent web pages.
In this, Java code can be inserted in HTML/ XML pages or both.
JSP is first converted into servlet by JSP container before processing the client’s request.
They are easy to maintain.

Dept. of CSE, SJBIT 2019-20 2


Tuition Database System

CHAPTER 2
DESIGN

2. 1REQUIREMENTS AND CONSTRAINT


Feature to sign up .
Feature to add student details.
Feature to add teacher details.
Feature to retrieve quotes.
Feature to user login.
Feature to teacher login.
Feature to admin login.

2.2 ENTITIES AND ATTRIBUTES

2.3 SOFTWARE REQUIREMENT SPECIFICATION


MINIMUM HARDWARE REQUIREMENTS
CPU : Intel Centrino Core 2 Duo
RAM : 1GB
GPU : Intel HD Graphics
Peripherals : Standard PS/2 or USB Keyboard , Standard PS/2 or USB Wheel/Optical Mouse

SOFTWARE REQUIREMENTS
Operating System : Windows 10
Front end : HTML, JSP, CSS
Back end : MYSQL, ECLIPSE

Dept. of CSE, SJBIT 2019-20 3


Tuition Database System

2.4 SYSTEM DESIGN

2.4.1 E R DIAGRAM

This relationship diagram shows how the tables in the database are connected to each other and
how the controls flows from one table to another when some action triggered by the user. It also shows
the constraints on the database such as primary key constraints, foreign key constraints and procedures
and trigger. Entity Relationship Diagram also called as ER Diagram.

When documenting a system or process, looking at the system in multiple ways increases the
understanding of that system. ERD diagrams are commonly used in conjunction with a data flow
diagram to display the contents of a data store. They help us to visualize how data is connected in a
general way, and are particularly useful for constructing a relational database.

Figure 2.1: ER Diagram for Tuition Database


Dept. of CSE, SJBIT 2019-20 4
Tuition Database System

The database is normalized up to 3rd normal form. That is the tables in the database has multimedia
fields(attributes) and there will be one primary key in each table that uniquely identifies each tuple in
the table.

2.5 SCHEMA DIAGRAM


The Schema Diagram gives us the information about the attributes in the table of the database and how
the given tables are related to each other. The term schema refers to the organization of data as a
blueprint of how the database is constructed(divided into database tables in the case of relational
databases). The formal definition of the database scheme is a set of formulas(sentences) called integrity
constraints, is imposed on the database.. Relational schema shows references among fields in the
databases. When a primary key is referenced in another table in the database, it is called the foreign
key. This is denoted by an arrow with the head pointing at the referenced key attributes.

A schema diagram helps organize values in the database. It also gives an idea of what order the table
should be created in. the following diagram shows the schema diagram for the database.
The data which is stored in the database at a particular moment of time is called an instance of the
database.
The overall design of a database is called schema.
A database schema is the skeleton structure of the database. It represents the logical view of the entire
database.
A schema contains schema objects like table, foreign key, primary key, views, columns, data types,
stored procedure, etc.
A database schema can be represented by using the visual diagram. That diagram shows the database
objects and relationship with each other.
A schema diagram can display only some aspects of a schema like the name of record type, data type,
and constraints. Other aspects can't be specified through the schema diagram.

Dept. of CSE, SJBIT 2019-20 5


Tuition Database System

Figure2.2: Schema Diagram for Tuition Database

Dept. of CSE, SJBIT 2019-20 6


Tuition Database System

CHAPTER 3
IMPLEMENTATION

3.1 TECHNOLOGIES USED


HTML :Hypertext Mark-up Language (HTML) is the standard mark-up language for
creating web pages and web applications. With Cascading Style Sheets (CSS) and JavaScript it forms
a triad of cornerstone technologies for the World Wide Web. Web browsers receive HTML documents
from a web server or from local storage and render them into multimedia web pages. HTML describes
the structure of a web page semantically and originally included cues for the appearance of the
document.HTML elements are the building blocks of HTML pages. With HTML
constructs, images and other objects, such as forms, may be embedded into the rendered page. It
provides a means to create structured documents by denoting structural semantics for text such as
headings, paragraphs, lists, links, quotes and other items. HTML elements are delineated by tags,
written using angle brackets. Tags such as <img/> and <input /> introduce content into the page
directly. Others such as <p>...</p> surround and provide information about document text and may
include other tags as sub-elements. Browsers do not display the HTML tags, but use them to interpret
the content of the page.
JSP: JSP is a server-side scripting language designed primarily for web development.
Features of JSP:
Coding in JSP is easy :- As it is just adding JAVA code to HTML/XML.
Reduction in the length of Code :- In JSP we use action tags, custom tags etc.
Connection to Database is easier :-It is easier to connect website to database and allows to read or
write data easily to the database.
Make Interactive websites :- In this we can create dynamic web pages which helps user to interact in
real time environment.
Portable, Powerful, flexible and easy to maintain :- as these are browser and server independent.

No Redeployment and No Re-Compilation :- It is dynamic, secure and platform independent so no


need to re-compilation.
Extension to Servlet :- as it has all the features of servlets, implicit objects and custom tags
CSS : Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of
a document written in a markup language. Although most often used to set the visual style of web
pages and user interfaces written in HTML and XHTML, the language can be applied to
any XML document, including plain XML, SVG and XUL, and is applicable to rendering in speech, or
on other media. Along with HTML and JavaScript, CSS is a cornerstone technology used by most
websites to create visually engaging web pages, user interfaces for web applications, and user interfaces
for many mobile applications.
CSS is designed primarily to enable the separation of presentation and content, including aspects such
as the layout, colors, and fonts. This separation can improve content accessibility, provide more
flexibility and control in the specification of presentation characteristics, enable multiple HTML pages
to share formatting by specifying the relevant CSS in a separate .CSS file, and reduce complexity and
repetition in the structural content.

Back End
MYSQL: MySQL is an open-source relational database management system(RDBMS).Its name is a
combination of "My", the name of co-founder Michael Widenius's daughter,and "SQL", the
abbreviation for Structured Query Language. The MySQL development project has made its source
code available under the terms of the GNU General Public License, as well as under a variety
of proprietary agreements. MySQL was owned and sponsored by a single for-profit firm.

Dept. of CSE, SJBIT 2019-20 7


Tuition Database System

MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home-brewed lexical
analyzer.MySQL works on many system platforms.It

including AIX, BSDi, FreeBSD, HPUX, eComStation, i5/OS, IRIX, Linux, macOS, Microsoft
Windows, NetBSD, Novell NetWare, OpenBSD, OpenSolaris, OS/2 Warp, QNX, Oracle ,
Solaris, Symbian, SunOS, SCO OpenServer, SCO UnixWare, Sanos and Tru64. A port of MySQL
to OpenVMS also exists.

ECLIPSE :
Eclipse is an IDE tool that helps us to develop software. An integrated development environment (IDE)
is a software application that provides comprehensive facilities to computer programmers for software
development. You can also write code in a text editor and compile and execute from command line; but
compared to a text editor, eclipse provides many additional useful features to make the development of
software easier and faster. IDE normally consists of a source code editor, build automation tools and a
debugger. Most modern IDEs like eclipse also offer intelligent code completion features.
Eclipse is mostly used to develop applications in Java, but by means of various plug-ins, Eclipse may
Fortran, Haskell, JavaScript, Lasso, Perl, PHP, Python, R, Ruby (including Ruby on Rails framework),
Scala, Clojure, Groovy, Scheme, and Erlang.
Eclipse contains a base workspace and an extensible plug-in system for customizing the development
environment. Eclipse is thus also a framework in addition to an IDE and can be extended to have more
features and functionalities through the use of plugins.

COMPONENT MODULES

Module 1: Student Signup.


The structure of the ssign table is as shown below:

Figure3.1 : Student Signup table structure

MYSQL QUERY FOR SSIGN TABLE CREATION:


CREATE TABLE `tuition`,’ssign’ (
`name` varchar(50) NOT NULL,
`email` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
PRIMARY KEY (`name`)
);
Dept. of CSE, SJBIT 2019-20 8
Tuition Database System

Module 2 : Teacher Signup.


The structure of the tsign table is as shown below:

Figure3.2 : Teacher Signup


MYSQL QUERY FOR TSIGN TABLE CREATION:
CREATE TABLE `tuition`,’tsign’ (
`name` varchar(50) NOT NULL,
`email` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
PRIMARY KEY (`name`)
);

Module 3 : Student Details.


The structure of the sdetails table is as shown below:

Figure3.3: Student Details

Dept. of CSE, SJBIT 2019-20 9


Tuition Database System

MYSQL QUERY FOR SDETAILS TABLE CREATION:


CREATE TABLE `tuition`,’sdetails’ (
‘id’ varchar(5)NOT NULL,
`name` varchar(50) NOT NULL,
`age` varchar(4) NOT NULL,
`standard` varchar(5) NOT NULL,
`subject` varchar(45) NOT NULL,
`timing` varchar(5) NOT NULL,
‘school` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
);
Module 4 : Teacher Details.
The structure of the tdetails table is as shown below:

Figure3.3:Teacher Details

MYSQL QUERY FOR TDETAILS TABLE CREATION:

CREATE TABLE `tuition`,’tdetails’ (


‘id’ varchar(5)NOT NULL,
`name` varchar(45) NOT NULL,
`age` varchar(4) NOT NULL,
`gender` varchar(4) NOT NULL,
`subject` varchar(50) NOT NULL,
`qualification` varchar(45) NOT NULL,
‘years` varchar(5) NOT NULL,
PRIMARY KEY (`id`)
);

Dept. of CSE, SJBIT 2019-20 10


Tuition Database System

Module 5 : Quote Table.


The structure of the quote table is as shown below:

Figure3.4: Quote STRUCTURE

MYSQL QUERY FOR QUOTE TABLE CREATION:


CREATE TABLE `tuition`,’quote’ (
‘fname’ varchar(40)NOT NULL,
`lname` varchar(45) NOT NULL,
`course` varchar(45) NOT NULL,
`phone` varchar(45) NOT NULL,
`message` varchar(45) NOT NULL,
PRIMARY KEY (`fname`)
);
Module 6 : Admin Table.
The structure of the admin table is as shown below:

Figure3.5: ADMIN table

MYSQL QUERY FOR ADMIN TABLE CREATION:


CREATE TABLE `tuition`,’admin’ (
‘name’ varchar(20)NOT NULL,
`password` varchar(45) NOT NULL,
PRIMARY KEY (`name,password`)
);

Dept. of CSE, SJBIT 2019-20 11


Tuition Database System

Stored procedure:
A procedure (often called a stored procedure) is a subroutine like a subprogram in a regular computing
language, stored in database. There are many useful applications of SQL procedures within a database
or database application architecture. SQL procedures can be used to create simple scripts for quickly
querying transforming, updating data, generating basic reports, improve application performance,
modularizing applications, and improve overall database design, and database security.
The stored procedure is named as display_tmdetails.
The stored procedure used here with its output displayed below:
After creating the procedure ,it is executed by using the following code:

Figure3.6: STORED PROCEDURE


CODE FOR STORED PROCEDURE:

Use tuition
Delimiter //
CREATE DEFINER=’root’@localhost’ PROCEDURE ‘display_tmdetails’()
Begin
Select * from tdetails;
End //
Call display_tmdetails(); //

Dept. of CSE, SJBIT 2019-20 12


Tuition Database System

Trigger:
Triggers are stored programs, which are automatically executed or fired when some event
occurs. Triggers are written to be executed in response to any of the following events. A database
manipulation (DML) statement (DELETE, INSERT, or UPDATE). A database definition (DDL)
statement (CREATE, ALTER, or DROP).

Figure3.7: TRIGGER tdetails_AFTER_INSERT

The trigger named tdetails_AFTER_INSERT is used in this project .


The code for trigger is given below:
CREATE DEFINER=’root’@’localhost’ TRIGGER ‘tdetails_AFTER_INSERT’ AFTER INSERT
ON ‘tdetails’ FOR EACH ROW BEGIN
DECLARE updatecount INT;
Set updatecount = ( select count(*) from tdetails );
END

3.3 Connection to database:

The database is connected to the front end html using jsp, the code for database connection is shown
below:

Class.forName=(“com.mysql.jdba.Driver”);

Java.sql.Connection con =
DriverManager.getConnection(“jdbc:mysql://localhost:3306/lens”,”root”,”password”);

Statement st = con.createStatement();

ResultSet rs;
Dept. of CSE, SJBIT 2019-20 13
Tuition Database System

CHAPTER 4
TESTING

System testing of software or hardware is testing conducted on a complete, integrated system to


evaluate the system's compliance with its specified requirements. Testing is the process used to help
identify the correctness, completeness, security and quality of developed software. This includes
executing the program with the intent of finding errors. It is important to distinguish between faults and
failures. Software testing can provide objective, independent information about the quality of software
and risk of its failure to users or sponsors. It can be conducted as soon as executable software(even if
partially complete) exists. Most testing occurs after system requirements have been defined and then
implemented in testable programs. System testing falls within the scope of black-box testing, and as
such, should require no knowledge of the inner design of the code or logic.

System Testing is carried out on the whole system in the context of either system requirement
specifications or functional requirement specifications or in the context of both. System testing tests the
design and behavior of the system and also the expectations of the customer. It is performed to test the
system beyond the bounds mentioned in the software requirements specification (SRS).

In system testing, integration testing passed components are taken as input. The goal of integration
testing is to detect any irregularity between the units that are integrated together. System testing detects
defects within both the integrated units and the whole system. The result of system testing is the
observed behavior of a component or a system when it is tested.

Dept. of CSE, SJBIT 2019-20 14


Tuition Database System

CHAPTER 5

SNAPSHOTS
Student signup page:

Figure5.1: student signup


It consists of the fields:
Name
Email
Password
Password repetition
After filling all these fields ,the button SIGN UP has to be clicked ,for a successful signup.

Student login page: This page allows the students to login using their name and password.This
will lead them to the index page having details about the website.The students will have to fill a details
form and submit after logging in.

Dept. of CSE, SJBIT 2019-20 15


Tuition Database System

Figure5.2: Student login


Teacher Signup page:This is for the teachers to signup on the website.
The details they will have to fill in includes:
Name
Email
Password
By clicking on the submit button ,the teacher is successfully signing up on the website.

Figure5.3: TEACHER SIGNUP

Dept. of CSE, SJBIT 2019-20 16


Tuition Database System

Teacher login page: This page allows the teachers to login using their name and password.This will
lead them to the index page having details about the website.The students will have to fill a details form
and submit after logging in.

Figure5.4: Teacher Login

Student details page: This page takes in the details of the students.
The details entered and submitted by the students can only be accessed by the admin.

Figure5.5: Student Details

Teacher details page: This page takes in the details of the teachers.
The details entered and submitted by the teachers can only be accessed by the admin.

Dept. of CSE, SJBIT 2019-20 17


Tuition Database System

Figure5.6: Student Details


Admin login page: The admin uses his password to login to the website.He can access the details
of the students and the teachers by logging in.

Figure5.7: ADMIN LOGIN

Dept. of CSE, SJBIT 2019-20 18


Tuition Database System

Student details accessible to the admin:

Figure5.8: Display of Students details Table

Teacher details accessible to the admin:

Figure5.9: Display of Teacher Details Table

After clicking on back button, it takes admin to the home page.

Dept. of CSE, SJBIT 2019-20 19


Tuition Database System

CHAPTER 6
CONCLUSION
Our project is only a humble venture to satisfy the needs to manage their project work.
Several user friendly coding also have adopted. This package shall prove to be a powerful package in
satisfying all the requirements of the orders database. The objective of a software planning is to provide
a framework that enables the manager to make reasonable estimates made within a limited time frame
at the beginning of the software project and should be updated regularly as the project progresses.

During our database management course we have learned about the basics of database design. This
project gave us the opportunity to try our new skills in practice. While doing this project we also gained
deeper understanding on the database design and how it can be implemented in real life situations. We
believe we can use our database designing skills also in other projects.

Dept. of CSE, SJBIT 2019-20 20


Tuition Database System

BIBLIOGRAPHY
[1]. Fundamentals of Database systems, RamezElmasri and Shamkant B.Navathe, 7 th edition,
2017, Pearson.
[2]. Database Management System, Ramakrishnan, Gehrke, 3 rd edition, 2017, McGraw Hill.
[3]. Silberschatz Korth and Sudarshan, Database System concepts, 6th edition, McGraw Hill,
2013.
http://www.tutorialspoint.com/mysql/
[4]. httpd.apache.org/docs/2.0/misc/tutorials.html
[5]. W3Schools
https://www.w3schools.com
[6]. Stack OverFlow
http://stackoverflow.com
[7]. My sql Tutorial
www.mysqltutorial.org

Dept. of CSE, SJBIT 2019-20 21

Вам также может понравиться