Dbms Report
Dbms Report
Submitted in partial fulfillment of the requirement for the fifth semester Database
Management Lab(21CSL55)
Bachelor of Engineering
In
Information Science & Engineering
By
Amrutha Bandi D C Pooja Harshita K Kusuma S
1AP20IS002 1AP21IS007 1AP21IS011 1AP21IS015
2023-2024
DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING
A P S COLLEGE OF ENGINEERING
Anantha Gnana Gangothri, 26th K M, NH-209, Kanakapura Road,
Somanahalli, Bengaluru-560082
A. P. S. COLLEGE OF ENGINEERING
(Affiliated to Visvesvaraya Technological University)
Anantha Gnana Gangothri,
26th KM, NH-209, Kanakapura Road, Somanahalli, Bengaluru-560082.
CERTIFICATE
It is certified that the Mini Project Work entitled “Food Ordering System” has been carried
out at APS College of Engineering, Bengaluru, by Amrutha Bandi(1AP21IS002) D C
Pooja(1AP21IS007) Harshita K(1AP21IS011) Kusuma S(1AP21IS015) bonafide student
of Fifth Semester, B.E. in partial fulfillment of the requirements for the fifth semester
DBMS LABORATORY WITH MINI PROJECT (21CSL55) of Bachelor of
Engineering in Information Science & Engineering affiliated to Visvesvaraya
Technological University, Belagavi during academic year 2023-24. It is certified that all
corrections/suggestions indicated for Internal Assessment have been incorporated in the
report deposited in departmental library. The mini project report has been approved as it
satisfies the academic requirements in respect of mini project work for the said degree.
---------------------------- ------------------------
Signature of the Guide Signature of the HOD I/C & Principal
Ms. Kavyashree B Dr. D.G Anand
Asst. Professor Principal
Dept. of ISE APSCE
External Viva
Name of the Examiners Signature with date
1. ___________________ _________________
2. ___________________ _________________
ABSTRACT
given online, either through the internet or intranet using computer system. This Online
Examination System is a software solution, which allows any institute to arrange, conduct
and manage examinations via an online environment. Some of the problems faced during
manual examination systems are the delays occurred in result processing filing poses a
problem, filtering of records is difficult. Online examination is one of the crucial parts for
online education system. It is efficient, fast enough and reduces the large amount of material
resource. The main goal of this online examination system is to effectively evaluate the
student thoroughly through a totally automated system that only reduce the required time but
1 INTRODUCTION 1
1.1 History of DBMS 1
1.1.1 Past and present 2
1.2 Introduction to DBMS 2
1.2.1 What is database? 2
1.2.2 Advantages of Database 2
1.2.3 Disadvantages of Database 3
1.2.4 Components of Database Design 3
1.3 Database Design 3
1.3.1 The Entity-Relationship Model 3
1.3.2 Relational Schemas 5
1.3.3 Normalization 6
1.4 Stored Procedure 9
1.5 Triggers 11
2 REQUIREMENT ANALYSIS 11
2.1 Introduction to Technology 11
2.1.1 HTML 11
2.1.2 CSS 11
2.1.3 JAVASCRIPT 11
2.1.4 BOOTSTRAP 11
2.2 Scripting Languages 11
2.2.1 PHP 11
2.2.2 MYSQL 12
2.3 Server 12
2.3.1 XAMPP Server 12
3 REQUIREMENTS SPECIFICATION 13
3.1 Hardware Requirements 13
3.2 Software Requirements 13
4 IMPLEMENTATION 14
4.1 Sequence Diagram 14
4.2 Entity-Relation Diagram 15
4.3 Source code 16
4.4 Existing and proposed system 17
5 SCREENSHOTS 18
7 BIBILOGRAPHY
22
Books
Websites
CHAPTER-1
INTRODUCTION
Databases (or DBs) have played a very important part in the recent evolution of
computers. The first computer programs were developed in the early 1950s, and focused
almost completely on coding languages and algorithms. At the time, computers were
basically giant calculators and data (names, phone numbers) was considered the leftovers of
processing information. Computers were just starting to become commercially available, and
when business people started using them for real-world purposes, this leftover data suddenly
became important.
The project was called INGRES (Interactive Graphics and Retrieval System),
and successfully demonstrated a relational model could be efficient and practical. INGRES
worked with a query language known as QUEL, in turn, pressuring IBM to develop SQL in
1974, which was more advanced (SQL became ANSI and OSI standards in 1986 1nd 1987).
SQL quickly replaced QUEL as the more functional query language.
1.1 INTRODUCTION TO DBMS:
Database management creates a place where users have an advantage of more and
better managed data. Thus making it possible for end-users to have a quick look and to
respond fast to any changes made in their environment.
model. The designer determines what data must be stored and how the data elements
interrelate. With this information, they can begin to fit the data to the database model.
Database design involves classifying data and identifying interrelationships. This theoretical
representation of the data is called an ontology. The ontology is the theory behind the
COMPONENTS OF AN ER DIAGRAM :
The objective of the first normal form is to divide the base data into logical units
called tables. When each table has been designed, a primary key is assigned to most or all
tables. Examine Figure 4.2, which illustrates how the raw database shown in the previous
figure has been redeveloped using the first normal form.
The third normal form's objective is to remove data in a table that is not dependent on
the primary key.
Another table was created to display the use of the third normal form.
EMPLOYEE_PAY_TBL is split into two tables, one table containing the actual employee
pay information and the other containing the position descriptions, which really do not need
to reside in EMPLOYEE_PAY_TBL. The POSITION_DESC column is totally independent
of the primary key, EMP_ID .
1.3 AIM OF THE PROJECT:
LITERATURE SURVEY
2.1 INTRODUCTION TO TECHNOLOGY XAMPP
SERVER:
XAMPP stack of software is an open-source localhost server providing a
number of functionalities through the package of software it contains. The software,
which is part of XAMPP is started/stopped using the XAMPP Control Panel. It is used
for testing the projects and modifications offline before launching it on the global web.
One such very important functionality provided by XAMPP is the creation of the
MySQL database. This is done by using phpMyAdmin. The detailed explanation of what
is phpMyAdmin and how to use it to create MySQL database with XAMPP will be
discussed in this article. XAMPP's ease of deployment means a WAMP or LAMP stack
can be installed quickly and simply on an operating system by a developer, with the
advantage that common add-in applications such as WordPress and Joomla! can
also be installed with similar ease using Bitnami. Though it is a heavy app for most of
the operating systems even when owing to its less size it takes a load on the processor
speed.
PHP:
PHP is a general-purpose scripting language especially suited to web
development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in
1994. The PHP reference implementation is now produced by The PHP Group. PHP
originally stood for Personal Home Page, but it now stands for the recursive initialism PHP:
Hypertext Pre-processor. PHP code is usually processed on a web server by a PHP interpreter
implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable.
On a web server, the result of the interpreted and executed PHP code – which may be any
type of data, such as generated HTML or binary image data – would form the whole or part
of an HTTP response. Common uses of PHP
➢ PHP performs system functions, i.e., from files on a system it can create, open,
read, write, and close them.
➢ PHP can handle forms, i.e., gather data from files, save data to a file, through
email you can send data, return data to the user.
➢ You add, delete, modify elements within your database through PHP.
A relational database stores data in separate tables rather than putting all
the data in one big storeroom. The database structures are organized into physical
files optimized for speed. The logical model, with objects such as databases, tables,
views, rows, and columns, offers a flexible programming environment. You set up
rules governing the relationships between different data fields, such as one-to-one,
one-to-many, unique, required or optional, and “pointers” between different tables.
The database enforces these rules, so that with a well-designed database, your
application never sees inconsistent, duplicate, orphan, out-of- date, or missing data.
The SQL part of “MySQL” stands for “Structured Query Language”. SQL
is the most common standardized language used to access databases. Depending on
your programming environment, you might enter SQL directly (for example, to
generate reports), embed SQL statements into code written in another language, or
use a language-specific API that hides the SQL syntax.
Open-Source means that it is possible for anyone to use and modify the
software. Anybody can download the MySQL software from the Internet and use it
without paying anything. If you wish, you may study the source code and change it
to suit your needs. The MySQL software uses the GPL (GNU General Public
License), http://www.fsf.org/licenses/, to define what you may and may not do with
the software in different situations. If you feel uncomfortable with the GPL or need
to embed MySQL code into a commercial application, you can buy a commercially
licensed version from us. See the MySQL Licensing Overview for more
information(http://www.mysql.com/company/legal/licensing/)
CHAPTER 3
REQUIREMENTS OF SPECIFICATION
Browser - Chrome
CHAPTER 4
Existing System:
In the other existing system, it does not allow the appearing candidates to choose their
subjects as per their choice and check the results. Other demerits which are found in existing
system are: It does not allow the admin to create dummy users at the emergency time and set
time interval of each questions and for each sections. Secure login and concept of cookies
and session has not been used to identify each users and set time interval and session for each
users. Admin has to set the questions number and enter subject manually before entering
question of that particular subject. Admin do not have the facility to search questions subject
wise and update at that point of time. To update or delete any question, admin has to find
question manually one by one and perform operations such as delete and update.
Under the student section, they do not see their image in the left menu and their
student id or screen id, so that they can use it to check their results using this id. Automatic
redirection of page after time gets over is not available in the existing system and many more.
So to overcome from these problems, this new system has been presented with advanced new
features.
Proposed System:
Under the proposed system, concept of JavaScript has been used for displaying timer for
each section and each question on user’s html page. After time will get over, it will
automatically redirected to next questions and after questions get completed of any section it
will be moved to next instruction page and question section. Concept of temporary cookies
and session has been used to identify each correct users to make secure login and logout. In
this system, candidates will able to see their result just after completing their examination
and automatic logout operation will be performed just after checking their result.
Under admin section some new features has been added such as automatic question
number generation, providing select options for choosing subjects, providing options of
search, update and delete questions in one page and facility for providing dummy users. This
system has uses the concept of sending email messages to the appearing and other candidates
and checking history performance of each and every candidates who have appeared for the
exam’s
CHAPTER 5
IMPLEMENTATION
-- --------------------------------------------------------
--
-- Table structure for table `admin_acc`
--
--
-- Dumping data for table `admin_acc`
--
-- --------------------------------------------------------
--
-- Table structure for table `course_tbl`
--
--
-- Dumping data for table `course_tbl`
--
-- --------------------------------------------------------
--
-- Table structure for table `examinee_tbl`
--
CREATE TABLE `examinee_tbl` (
`exmne_id` int(11) NOT NULL,
--
-- Dumping data for table `examinee_tbl`
--
-- --------------------------------------------------------
--
-- Table structure for table `exam_answers`
--
--
-- Dumping data for table `exam_answers`
INSERT INTO `exam_answers` (`exans_id`, `axmne_id`, `exam_id`, `quest_id`,
`exans_answer`, `exans_status`, `exans_created`) VALUES
(295, 4, 12, 25, 'Diode, inverted, pointer', 'old', '2019-12-07 02:52:14'),
(296, 4, 12, 16, 'Data Block', 'old', '2019-12-07 02:52:14'),
(297, 6, 12, 18, 'Programmable Logic Controller', 'old', '2019-12-05 12:59:47'),
(298, 6, 12, 9, '1850s', 'old', '2019-12-05 12:59:47'),
(299, 6, 12, 24, '1976', 'old', '2019-12-05 12:59:47'),
(300, 6, 12, 14, 'Operating System', 'old', '2019-12-05 12:59:47'),
(301, 6, 12, 19, 'WAN (Wide Area Network)', 'old', '2019-12-05 12:59:47'),
(302, 6, 11, 28, 'fds', 'new', '2019-12-05 12:04:28'),
(303, 6, 11, 29, 'sd', 'new', '2019-12-05 12:04:28'),
(304, 6, 12, 15, 'David Filo & Jerry Yang', 'new', '2019-12-05 12:59:47'),
(305, 6, 12, 17, 'System file', 'new', '2019-12-05 12:59:47'),
-- --------------------------------------------------------
--
-- Table structure for table `exam_attempt`
--
--
-- Dumping data for table `exam_question_tbl`
--
-- --------------------------------------------------------
--
-- Table structure for table `exam_tbl`
--
--
-- Dumping data for table `exam_tbl`
--
-- --------------------------------------------------------
--
-- Table structure for table `feedbacks_tbl`
--
--
-- Dumping data for table `feedbacks_tbl`
--
SCREENSHOTS
Fig 5.1
Fig 5.2