DBMS Mini
DBMS Mini
Bachelor of Engineering in
Computer Science & Engineering
By
NITHIN C (1CR21CS412)
CERTIFICATE
This is to certify that the Database Management System Project work entitled “MOBILE
STORE MANAGEMENT SYSTEM” has been carried out by Nithin C (1CR21CS412)
and Adarsh Palanakar (1CR21CS400), bona fide students of CMR Institute of Technology,
Bengaluru in partial fulfillment for the award of the Degree of Bachelor of Engineering in
Computer Science and Engineering of the Visvesvaraya Technological University, Belagavi
during the year 2022-2023. It is certified that all corrections/suggestions indicated for the
Internal Assessment have been incorporated in the report deposited in the departmental
library. This Database Management System Project report has been approved as it satisfies the
academic requirements in respect of project work prescribed for the said Degree.
_____________________________ _____________________________
Signature of Guide Signature of HOD
(Dr. Sanchari Saha) (Dr. Shreekanth M Prabhu)
Assistant Professor Professor & HoD
Dept. of CSE, CMRIT Dept. of CSE, CMRIT
External Viva
1.
2.
ii
DECLARATION
We, the students of V semester of Computer Science and Engineering, CMR Institute of
Technology, Bangalore declare that the project work entitled "Mobile Store Management
System" has been successfully completed under the guidance of Dr. Sanchari Saha, Assistant
Professor, Dept. of Computer Science and Engineering, and Mrs. Anjali Gupta, Assistant
Professor, CMR Institute of technology, Bengaluru. This project work is submitted in partial
fulfillment of the requirements for the award of the Degree of Bachelor of Engineering in
Computer Science and Engineering during the academic year 2022-2023. The matter embodied
in the project report has not been submitted previously by anybody for the award of any degree
or diploma to any university.
Place: Bangalore
Date: 12/01/2023
Team members:
NITHIN C (1CR21CS412)
iii
ABSTRACT
The title of project is mobile shop management system. The main purpose of our project is to do
smart work and also, we can see that in this era of advanced technology we also have to do work
more smartly that’s why most of the shops need advanced techniques to do their work more
speedily and smartly that’s why storing or collecting important data on paper is not reliable and
also it has chance of missing that paper so we created this for storing most important data like
billing, customer information and product information. It will help to organize mobile shop data
in very systematic way.
iv
ACKNOWLEDGEMENT
I take this opportunity to express my sincere gratitude and respect to CMR Institute of
Technology, Bengaluru for providing me a platform to pursue my studies and carry out the
Database Management System Project.
It gives me an immense pleasure to express my deep sense of gratitude to Dr. Sanjay
Jain, Principal, CMRIT, Bengaluru, for his constant encouragement.
I would like to extend my sincere gratitude to Dr. Shreekanth M Prabhu, HOD,
Department of Computer Science and Engineering, CMRIT, Bengaluru, who has been a constant
support and encouragement throughout the course of this project.
I would like to thank my guide Dr. Sanchari Saha, Assistant Professor and
Mrs. Anjali Gupta, Assistant Professor, Department of Computer Science and Engineering,
for the valuable guidance throughout the tenure of the project work.
I would also like to thank all the faculty members of Department of Computer Science
and Engineering who directly or indirectly encouraged me.
Finally, I thank my parents and friends for all the moral support they have given me
during the completion of this work.
v
TABLE OF CONTENTS
1.1 Objectives
2. System Requirements 2
3.1 Tables 3
4.2 SQL 11
5. Screenshots 23
vi
7. References 31
LIST OF FIGURES
LIST OF TABLES
Table No Table Name Page no
1.1 Display the Tables_in_votesystem 22
1.2 Display the Candidates Table 22
vii
1.3 Display the Admin Table 23
1.4 Display the Position Table 23
1.5 Display the voters Table 24
1.6 Display the votes table 24
viii
MOBILE STORE MANAGEMENT SYSTEM
CHAPTER 1
INTRODUCTION
In this rapid growing generation, technology is growing day by day. Our project is on mobile
shop management system for manage a mobile shop. In our project we have included billing
system, product, customer management, manage brands, manage sail details. We can add the
details of mobile, tablets, headphones and other products. Need of high speed data access is
necessary in today’s world. Record of employee and records of customers will be safely kept
in database. We can edit the data as well as retrieve the data whenever required. In existing
system details are maintained manually so it takes time to save and modify the data. It
becomes very difficult to maintain the data. So, we have prepared an enhanced system of
mobile shop management. This is a very useful for mobile shop to manage their shop easily.
1.1 Objectives
The specific objectives of the project include:
This System has large scope for the Mobile Shop Management System& Mobile
Information.
The System stores all information of the Mobiles.
System can able to accept user request and manages information like Mobile’s as
well as the Customers and Clients
System provides the facility of Mobile Information with their Prices.
System Provide facility of payment and purchase Products
be recorded and that have implicit meaning. For example, consider the names, telephone
numbers, and addresses of the people you know. Nowadays, this data is typically stored in
mobile phones, which have their own simple database software. In other words, a database
has some source from which data is derived, some degree of interaction with events in the
real world, and an audience that is actively interested in its contents. A database can be of
any size and complexity. For example, the list of names and addresses referred to earlier may
consist of only a few hundred records, each with a simple structure. On the other hand, the
computerized catalogue of a large library may contain half a million entries organized under
different categories.
A database has the following implicit properties:
A database represents some aspect of the real world, sometimes called the mini
world or the universe of discourse. Changes to the mini world are reflected in the
database.
A database is a logically coherent collection of data with some inherent meaning. A
random assortment of data cannot correctly be referred to as a database.
A database is designed, built, and populated with data for a specific purpose. It has
an intended group of users and some preconceived applications in which these users
are interested.
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. Defining a database involves specifying the data
types, structures, and constraints of the data to be stored in the database. The database
definition or descriptive information is also stored by the DBMS in the form of a database
catalogue or dictionary; it is called meta-data. Constructing the database is the process of
storing the data on some storage medium that is controlled by the DBMS. Manipulating a
database includes functions such as querying the database to retrieve specific data, updating
the database to reflect changes in the mini world, and generating reports from the data.
Sharing a database allows multiple users and programs to access the database
simultaneously.
1.3.1 ADVANTAGES OF DBMS:
Compared to the File Based Data Management System, Database Management System has
many advantages.
3.Data Security
Data Security is vital concept in a database. Only authorised users should be allowed to
access the database and their identity should be authenticated using a username and
password. Unauthorised users should not be allowed to access the database under any
circumstances as it violates the integrity constraints.
4.Privacy
The privacy rule in a database means only the authorized users can access a database
according to its privacy constraints. There are levels of database access and a user can only
view the data he is allowed to. For example - In social networking sites, access constraints
are different for different accounts a user may want to access.
5.Backup and Recovery
Database Management System automatically takes care of backup and recovery. The users
don't need to backup data periodically because this is taken care of by the DBMS. Moreover,
it also restores the database after a crash or system failure to its previous condition.
6.Data Consistency
Data consistency is ensured in a database because there is no data redundancy. All data
appears consistently across the database and the data is same for all the users viewing the
database. Moreover, any changes made to the database are immediately reflected to all the
users and there is no data inconsistency.
1.3.2 COMPONENTS OF DBMS
The figure 1.1 shows the components of DBMS which describe the different parts that work
together for creating, managing the database that forms a complete system named
DBMS(database management system).
Users:
Users may be of any kind, such as data base administrators, system developers or database
users.
Database application:
DBMS:
1.4 CONSTRAINTS
Mainly Constraints on the relational database are of 4 types:
Domain constraints
Key constraints
Entity Integrity constraints
DOMAIN CONSTRAINTS:
Every domain must contain atomic values (smallest indivisible units) it means composite
and multivalued attributes are not allowed.
We perform datatype check here, which means when we assign a data type to a column
we limit the values that it can contain.
Eg. If we assign the datatype of attribute age as int, we can’t give it values other than int
datatype.
These are called uniqueness constraints since it ensures that every tuple in the relation
should be unique.
A relation can have multiple keys or candidate keys(minimal superkey), out of which we
choose one of the keys as primary key, we don’t have any restriction on choosing the
primary key out of candidate keys, but it is suggested to go with the candidate key with
less number of attributes.
Null values are not allowed in the primary key, hence Not Null constraint is also a part of
key constraint.
Entity Integrity constraints says that no primary key can take NULL value, since using
primary key we identify each tuple uniquely in a relation.
The Referential integrity constraints is specified between two relations or tables and used
to maintain the consistency among the tuples in two relations.
This constraint is enforced through foreign key, when an attribute in the foreign key of
relation R1 have the same domain(s) as the primary key of relation R2, then the foreign
key of R1 is said to reference or refer to the primary key of relation R2.
The values of the foreign key in a tuple of relation R1 can either take the values of the
primary key for some tuple in relation R2, or can take NULL values, but can’t be empty.
1.5 NORMALISATION
Normalizing tables accordingly based on the normal forms.
NORMAL FORMS:
Of a relation refers to the highest normal form condition that it meets and hence indicates the
degree to which it has been normalized.
First NF:
States that the domain of the attribute must only include atomic values and the value of any
attribute in a tuple must be a single value.
Second NF:
Is based on the concept of full functional dependency I.e. if removal of any attribute A from
X in FD X->Y the dependency does not hold anymore.
Third NF:
A relation schema R is in 3NF if, whenever a non-trivial functional dependency X->A holds
in R either: X is a super key of R or A is prime attribute of R.
Boyce-Codd NF:
A relation schema R is in BCNF if whenever a non-trivial functional dependency X->A holds
in R, then X is a super key of R.
Fourth NF:
A relation schema R is in 4NF w.r.t a set of dependencies F if, for every non-trivial
multivalued dependency X->>Y in F+ ,X is a super key for R.
CHAPTER 2
SYSTEM REQUIREMENTS
The system requirements for a project outline the necessary hardware and software resources
for development, deployment, and operation. It is important to carefully consider and plan for
the system requirements of a project, as the wrong choices can lead to performance issues,
compatibility problems, or other issues that can impact the success of the project.
Client-side requirements are any device that is capable of connecting to the internet and
running a web browser.
2.2 Software Requirements
Client-side software can run on any device that supports an internet connection and a web
browser.
CHAPTER 3
DESIGN
The design chapter of this project report outlines the process and considerations that went
into the design of the project. This includes the identification of design goals and objectives,
the collection and analysis of data, the development of the system or product design, and the
validation and testing of the design. The design chapter provides a comprehensive
understanding of the project's design, and is based on established principles and practices.
1. BRANDS
2. CART
3. CATEGORIES
4. CLIENTS
5. INVENTORY
6. ORDER_LIST
7. ORDERS
8. PRODUCTS
9. SALES
10. SUB_CATEGORIES
11. SYSTEM_INFO
12. USERS
3.2 ER Diagram
The Entity Relationship (ER) diagram is a visual representation of the data model of the
Mobile store management project. It illustrates the entities, attributes, and relationships
between the different elements of the data model, and provides a clear overview of the
organization and structure of the data. The ER diagram is an important tool for understanding
the underlying data model of the Mobile store management project, and for identifying the
relationships and dependencies between different data entities.
CHAPTER 4
IMPLEMENTATION
The implementation section of this project report outlines the steps and processes involved in
the development and deployment of the Mobile Store Management System project. This
includes the selection and configuration of tools and technologies, the design and coding of the
system, the testing and debugging of the system, and the deployment of the system to a
production environment. The implementation chapter provides a detailed description of the
project's implementation, and documents the challenges and successes encountered during the
development process. The purpose of the implementation chapter is to provide insight into the
project's technical execution and the rationale behind the implementation decisions.
To execute the project, first start the Xampp server, run Apache and MySQL, then run the
below commands in the chrome extension:
• Localhost/phpmyadmin
• Create database
• Import tables
• Localhost/mobile_store
INSERT INTO client (id, firstname, lastname, gender, contact, email, password,
default_delivery_address, date_created) VALUES
(1, 'Claire', 'Blake', 'Female', '09123456789', '[email protected]',
'cd74fae0a3adf459f73bbf187607ccea', 'Sample Address', '2021-08-30 15:32:20');
16:06:19');
INSERT INTO order_list (id, order_id, product_id, quantity, price, total) VALUES
(1, 1, 1, 1, 74990, 74990),
(2, 1, 3, 1, 350, 350);
INSERT INTO products (id, brand_id, category_id, sub_category_id, name, `specs`, status,
date_created) VALUES
(1, 1, 1, 0, 'iPhone Pro Max 12', '<ul class=\\\"techspecs-list\\\" role=\\\"list\\\"
style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; list-style:
none;\\\"><li role=\\\"listitem\\\" style=\\\"margin: 0px; padding: 0px;\\\">Super Retina XDR
display</li><li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding:
0px;\\\">6.7-inch (diagonal) all-screen OLED display</li><li role=\\\"listitem\\\"
style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">2778-by-1284-pixel resolution at 458
ppi</li></ul><p class=\\\"typography-caption model-caption\\\" style=\\\"margin: 0.8em 0px
0px; padding: 0px; line-height: 1.33337;\\\">The iPhone 12 Pro Max display has rounded
corners that follow a beautiful curved design, and these corners are within a standard
rectangle. When measured as a standard rectangular shape, the screen is 6.68 inches
diagonally (actual viewable area is less).</p><p style=\\\"margin: 0.8em 0px 0px; padding:
0px; line-height: 1.33337;\\\"><br></p><ul class=\\\"techspecs-list\\\" role=\\\"list\\\"
style=\\\"margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; list-style:
none;\\\"><li role=\\\"listitem\\\" style=\\\"margin: 0px; padding: 0px;\\\">HDR
display</li><li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">True
Tone</li><li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">Wide
color (P3)</li><li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding:
0px;\\\">Haptic Touch</li><li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding:
0px;\\\">2,000,000:1 contrast ratio (typical)</li><li role=\\\"listitem\\\" style=\\\"margin:
0.4em 0px 0px; padding: 0px;\\\">800 nits max brightness (typical); 1,200 nits max
brightness (HDR)</li><li role=\\\"listitem\\\" style=\\\"margin: 0.4em 0px 0px; padding:
0px;\\\">Fingerprint-resistant oleophobic coating</li><li role=\\\"listitem\\\"
style=\\\"margin: 0.4em 0px 0px; padding: 0px;\\\">Support for display of multiple languages
and characters simultaneously</li></ul>', 1, '2021-08-30 12:19:22');
INSERT INTO users (id, firstname, lastname, username, password, avatar, last_login, type,
date_added, date_updated) VALUES
(1, 'Adminstrator', 'Admin', 'admin', '0192023a7bbd73250516f069df18b500',
'uploads/1624240500_avatar.png', NULL, 1, '2021-01-20 14:02:37', '2021-06-21 09:55:07');
--
Indexes for table `sub_categories`
CHAPTER 5
SCREENSHOTS
5.1 RESULT OUTPUT
ADMIN LOGIN
The figure 5.1 shows the screenshot of the Admin Login of our Project.
This login page allows a Admin to enter their username and password to website.
ADMIN HOME
The figure 5.2 shows the screenshot of the Admin Home of our Project.
From this window, the user can navigate to the various other windows (like Product
List, Inventory List, Maintance) using the navigation bar.
PRODUCT LIST
The figure 5.3 shows the screenshot of the Product List of our Project.
It will show product details like as (name, Brand, specs,status).
INVENTORY LIST
The figure 5.4 shows the screenshot of the Inventory List of our Project.
It will show Inventory details like as (Product, Price, Stock,Action).
ORDER LIST
The figure 5.5 shows the screenshot of the Order list of our Project.
It will show Order list details like as (Date Order, Client, Total
Amount,Paid,Status,Action).
SALES REPORT
Fig 5.6 Sales Report
The figure 5.6 shows the screenshot of the Sales Report of our Project.
It will show Sales Report details like as (DateTime, Product, Client, QTY, Amount).
BRAND LIST
Fig 5.7 Brand list
• The figure 5.7 shows the screenshot of the Brand list of our Project.
• It will show Brand list details like as (Date Create, Brand Name, Description, Status,
Action).
CATEGORY LIST
• The figure 5.8 shows the screenshot of the Brand list of our Project.
• It will show Category list details like as (Date Create, Brand Name, Description, Status,
Action).
USER LOGIN
The figure 5.9 shows the User login page of the project.
This signup page allows users to create a new account on a website or application.
USER HOME
Fig 5.10 User home Screen
The figure 5.10 shows the screenshot of the User Home page of our Project.
From this window, the user can navigate to the various other windows (like Smart Phone,
All Categories, About Us) using the navigation bar.
SMART PHONE
Fig 5.11 Smart phone screen
The figure 5.11 shows the screenshot of the Smart phone page of our Project.
This page show the phone details.
ACCESSORIES
Fig 5.12 Accessories Screen
• The figure 5.12 shows the screenshot of the Accessories page of our Project.
• It will shows what type of Accessories.
PRODUCT CATEGORIES
Fig 5.13 Product Categories
• The figure 5.13 shows the screenshot of the Product Categories page of our Project.
• It will show the all the details of (Accessories, Mobile Hardware, Smart Phone, External
Storage)
USER CART
Fig 5.14 User Cart
• The figure 5.14 shows the screenshot of the User Cart page of our Project.
• It will shows the (Cart List, Grand Total).
CHAPTER 6
The “Mobile Store Management System” has been created with the intention of providing a
user with application which will suffice all needs for the details of mobile phones and other
updates.
All the requirements specifications were followed as far as possible and few additional
features were added that can make the application more users friendly and less complicated.
The project “Mobile Store Management System” has been developed with the proper
guidance from the client.
We hope that “Mobile Store Management System” fulfils all the needs in possible manner.
Future scope: