1.1 Introduction To SQL
1.1 Introduction To SQL
1.1 Introduction To SQL
CHAPTER 1
INTRODUCTION
Databases and database technology have had a major impact on the growing use of
computers. It is fair to say that databases play a critical role in almost all areas where computers
are used, including business, electronic commerce, social media, engineering, medicine,
genetics, law, education, and library science.
A database is a collection of related data. By data, we mean known facts that can be
recorded and that have implicit meaning. A database management system(DBMS) is a
computerized system that enables users to create and maintain a database. The DBMS is a
general-purpose software system that facilitates the processes of defining, constructing,
manipulating, and sharing databases among various users and applications.
All DDL commands are auto-committed. That means it saves all the changes
permanently in the database.
E.g.: create-To create new table or database, alter-For alteration, truncate-Delete data from table,
drop-To drop a table
DML commands are not auto-committed. It means changes are not permanent to
database, they can be rolled back.
E.g. Insert-To insert a new row, update-To update existing row, delete-To delete a row, merge-
merging two rows or two tables
These commands are to keep a check on other commands and their effect on the database.
These commands can annul changes made by other commands by rolling back to original state. It
can also make changes permanent.
E.g.: commit-to permanently save, rollback-to undo change, save point-to save temporarily
Data control language provides command to grant and take back authority.
Swing was developed to provide a more sophisticated set of GUI components than the
earlier Abstract Window Toolkit (AWT). Swing provides a native look and feel that emulates
the look and feel of several platforms, and also supports a pluggable look and feel that allows
applications to have a look and feel unrelated to the underlying platform. It has more powerful
and flexible components than AWT. In addition to familiar components such as buttons, check
boxes and labels, Swing provides several advanced components such as tabbed panel, scroll
panes, trees, tables, and lists.
Though Swing is intended to be replaced by JavaFX, it will remain part of the Java SE
specification for the foreseeable future.
Swing's heavy reliance on runtime mechanisms and indirect composition patterns allows
it to respond at run time to fundamental changes in its settings. For example, a Swing-based
application is capable of hot swapping its user-interface during runtime. Furthermore, users can
provide their own look and feel implementation, which allows for uniform changes in the look
and feel of existing Swing applications without any programmatic change to the application
code.
JEditorPanes and JPasswordFields - for displaying web pages and inputting confidential
information
File Chooser - for navigating through files and directories, and selecting files and
directories
Tabbed Panels - for allowing different panels to occupy the same screen area
CHAPTER 2
REQUIREMENT SPECIFICATION
CHAPTER 3
OBJECTIVE OF THE PROJECT
The first objective of this system is to maintain the data of all the student and teacher in
database. It maintains the personal record as well as the academic record of the student. It
maintains teacher service record. Teacher personal record and salary record are also store in the
software. Reports are the most important outputs of Teacher management system (TMS).
Counseling report
Data Entry
Entering the correct and reliable data to the proposed system is the most important factor.
The proposed system will facilitate the admin with user-friendly screen, which will help the
admin to enter the correct data to proposed system easily. Different checks have been applied in
the program for the validity of data so that wrong information cannot be entered into the system
easily.
Updating
Mistake in the entry process are possible to occur. These mistakes needed to be corrected at
the right time so that the data remain correct. Any mistake during the entry process can be
corrected through this option.
Deletion
We can easily delete a particular record by requesting through entering the identity number.
The specified record is deleted from the database, which is not required anymore. This rarely
occurs because most of the record are stored permanently, which may be referenced in later time.
Data Retrieval
The main purpose of data retrieval is to describe and explain ways and methods by means of
which we get the required information from the system. The most imported operation in a system
is the utilization or retrieval of the stored data. Different programs have been developed for this
purpose. In these programs different queries are developed. These queries provide different
facilities to the admin.
Correctness
Efficiency
Flexibility
Security
Maintainability
Reliability
CHAPTER 4
IMPLEMENTATION
4.1 ER DIAGRAM: An entity relationship diagram (ERD) shows the relationships of
entity sets stored in a database. An entity in this context is a component of data. ER diagrams
illustrate the logical structure of databases.
TEACHER
STUDENT
USN Name TID SCode Marks Attendance Age Sex PID Result
SUBJECT
PARENT
For each binary 1:1 relationship type R in the ER schema, identify the relations S and T
that correspond to the entity types participating in R. There are three possible approaches:
The first approach is the most useful and should be followed unless special conditions
exist.
Foreign key approach: Choose one of the relations-S, and include as a foreign key in S
the primary key of T. It is better to choose an entity type with total participation in R in the role
of S. Include all the simple attributes of the 1:1 relationship type R as attributes of S.
Here 1:1 relationship type HAS is mapped by choosing the primary key of Ticket
Booking relation and included as foreign key in Payment relation.
The foreign key approach: For each regular binary 1: N relationship type R,
identify the relation S that represents the participating entity type at the N-side of the
relationship type. Include as foreign key in S the primary key of the relation T that
represents the other entity type participating in R. Include any simple attributes of the 1:
N relationship type as attributes of S.
In this database viewed By, books, cancel, give are 1:M relationship type.
TEACHER
STUDENT
USN Name TID SCode Marks Attendance Age Sex PID Result
For each weak entity type W in the ER schema with owner entity type E, create a relation
R and include all simple attributes of W as attributes of R. IN addition, include as foreign key
attributes of R, the primary key attributes of the relation that correspond to the owner entity
type.
TEACHER
PARENT
TEACHER TABLE
PRIMARY KEY(TID),
PARENT TABLE
STUDENT TABLE
SUBJECT TABLE
2)PARENT
3)STUDENT
4)SUBJECT