Dms_1
Dms_1
In the subject of
‘Database Management System’(22319)
SUBMITTED BY
1. Isha M. Bagde
2. Akansha R. Deulkar
3. Ashay M. Thorat
4. Sneha S. Tumaskar
SUBMITTED TO
Page | 1
Government Polytechnic, Arvi
Department of Computer Engineering
Certificate
This is to certify, that students whose name is mention below of Third Semester
of Diploma in Computer Engineering has satisfactorily completed the Micro-
project entitled “Design a Online Retail Application by applying Trigger on it”
in Database Management System of the academic year 2023-24 as prescribed in
MSBTE curriculum.
Name Enrollment No. Seat No.
Isha M. Bagde 2201320213
Akansha R. Deulkar 2201320221
Ashay M. Thorat 2201320311
Sneha S. Tumaskar 2201320325
Place: Arvi
Date:
Page | 2
Declaration
We under signed hereby declare that the micro-project report entitled “Design a
Online Retail Application By applying Trigger on it.” We further declare that
contents of this report are properly citied and well acknowledge. This present report
is not submitted to any other examination of this or any other institute for the award
of any diploma.
Place: Arvi
Date:
Signature
Page | 3
Part A- Microproject Report
“Design a Online Retail Application by applying Trigger on it”
➢ Brief Introduction:-
RDBMS stands for relational database management system—a software system that
enables you to define, create, maintain, and control access to relational databases. A
relational database is a collection of information that organizes data in predefined
relationships where data is stored in one or more tables (or "relations") of columns and
rows, making it easy to see and understand how different data structures relate to each
other. Relationships are a logical connection between different tables, established on the
basis of interaction among these tables.
Many customers have access to the Internet both at work and at home, and online
stores are typically open 24 hours a day. Therefore, shopping online is very
convenient for them. One of the most alluring aspects of online shopping, especially
during the holiday season, is that it eliminates the need to stand in line or look around a
store for a specific item. Online stores offer a wide range of products.
It is a specific type of online trade. With this initiative, physical store customers will
be able to enjoy the advantages of online shopping.
It provides the customer with a list of the many things that may be purchased at the
retail establishment. The user is provided with access to a shopping cart to facilitate
more convenient online purchases. As a result of both the progression of technology and
the wave of digitalization, an increasing number of firms are making adjustments to
accommodate new technological developments.
The concept involves providing a facility that allows customers to place orders 24/7 and
a home delivery service to meet their needs. By providing an internet gateway for
customers to conveniently purchase from anywhere, stores can prevent losing clients
to popular online retailers like Flipkart or eBay. The application is accessible on
smartphones, ensuring it is readily available and accessible at all times.
Page | 4
➢ Aim of the Micro-Project:-
➢ Literature Review:-
Data:-
In a Database Management System (DBMS), data is organized and stored in a
structured manner to facilitate efficient retrieval, storage, and management.
Database:-
A database is a structured collection of data that is organized and stored in a way
that allows for efficient retrieval, updating, and management.
Tables:
Databases are typically divided into tables, which are used to store related data.
Each table consists of rows (records) and columns (attributes) that define the structure
of the data.
Schema:
The schema defines the structure of the database, including the tables, their
columns, data types, and relationships between tables. It acts as a blueprint for the
database.
Data Types:
Each column in a table has a data type that specifies the kind of data it can hold
(e.g., text, numbers, dates).
Keys:
Keys are used to uniquely identify records in a table.
Database management:-
Database management in a Database Management System (DBMS) involves
various activities related to the creation, maintenance, and manipulation of databases.
Page | 5
Types of database:-
There are several types of databases in database management systems (DBMS).
Here are some common ones:
Relational Databases:
These databases store data in tables with rows and columns, using a structured
schema. Popular examples include MySQL, PostgreSQL, and Oracle Database.
➢ Trigger In PL/SQL:-
Active trigger:-
-A database that has a set of associated trigger is called an active trigger.
Page | 6
➢ Syntax:-
➢ Advantages of Trigger:-
-SQl provides an alternate way for maintaining the data and referential integrity in
the table.
-Trigger helps in executing the scheduled tasks because they are called
automatically.
-They allow the database user to validate values before inserting and updating.
➢ Disadvantages of Trigger:-
-If we use the complex code in the trigger , it makes the application run slower.
Page | 7
➢ Proposed Methodology:-
- Design a structure or schema definition for product , customer , order ,
categories in online retail application.
- Identify the key attributes and normalize the table for product , customer , order
, categories.
- Apply trigger for product , customer , order , categories.
➢ Resourses Required:-
Name of
Sr. No. Specifications Quantity Remarks
Resource
Computer i5
1 Computer System RAM=8GB, 1
Windows 10,
8th generation.
Oracle 10g
3 Software 1
Express
Group Member:-
7. Isha Bagde
Page | 8
Action Plan:-
Page | 9
Part-B Micro-Project
“ Design a online retail application by applying trigger on it “
Rationale:-
Enhanced User Engagement:-
Applying triggers can personalize the user experience, offering tailored
product recommendations and promotions based on browsing history and preferences,
leading to increased engagement.
The first table is Product where it includes product_id , product_name , price and
customer_ id. Here the customer_id is the primary key the Product table which is uniquely
identify in the table. This key can refers by all the table .And the data of product is store in
the product table.
Primary key is basically one of the a candidate key chosen by the database designer
to uniquely identify the entity set.
Next table is customer table where the primary key of Product table is used which is
customer_id. This table contain customer_id , customer_name , customer_add ,
Mobile_num. Here customer_name is a foreign key which refers to customer_id attribute
from Product table.
Foreign Key is a key attribute of a relation that can be reffered in other relation.
Page | 10
Main Table:-
Table Name:-Customer
Table Name:-Order
Table Name:-categories
Category_id Category_name
200 Stationary
201 Electric Supplies
202 Home appliance
203 gadgets
Page | 11
Queries:-
Table Name:-Order
Table Name:-categories
Page | 12
Inserting The Data Into Tables:-
Table Name:- Product
Table Name:-Customer
Page | 13
Performing The Trigger Operation On Above table:-
Creating trigger :-
Table Name:-Product
Page | 14
Performing delete operation:-
Page | 15
Performing Select Operation:-
Select product_id,product_name,price
From product
Where price=20000;
Page | 16
Performing Subqueries:-
Creating Trigger:-
Table Name:-Customer
Page | 17
Performing Insert Operation:-
Insert into
customer(customer_id,customer_name,customer_add,Mobile_num)values(105,’Shivam’,
’Pune’,9876543213);
Page | 18
Performing Update Operation:-
Page | 19
Select * from customer where customer_name like ‘_h%’;
Page | 20
Conclusion:-
In this microproject, we implement the structure to store and organize the information
of data in such a way to make it easy to use as well as find.
A trigger is a database object that automatically performs an action, such as updating
data, in response to a specific event, like an insert, update, or delete operation on a table.
We implement 4 tables i.e. product , customer , order , categories and we applied the
trigger on on the database queries as well as SQL commands.
Skill Developed:-
References:-
- https://www.researchgate.net/publication/370600141_Online_Retail_Application
- https://www.quora.com/What-are-the-steps-involved-in-developing-an-online-
retail-application
- https://creately.com/diagram/example/i8kexm0g2/online-retail-shop
Page | 21
Page | 22