DBMS Concepts

DBMS Tutorial Components of DBMS. Applications of DBMS The difference between file system and DBMS. Types of DBMS DBMS Architecture DBMS Schema Three Schema Architecture. DBMS Languages.

DBMS ER Model

ER model: Entity Relationship Diagram (ERD) Components of ER Model. DBMS Generalization, Specialization and Aggregation.

DBMS Relational Model

Codd’s rule of DBMS Relational DBMS concepts Relational Integrity Constraints DBMS keys Convert ER model into Relational model Difference between DBMS and RDBMS Relational Algebra DBMS Joins

DBMS Normalization

Functional Dependency Inference Rules Multivalued Dependency Normalization in DBMS: 1NF, 2NF, 3NF, BCNF and 4NF

DBMS Transaction

What is Transaction? States of transaction ACID Properties in DBMS Concurrent execution and its problems DBMS schedule DBMS Serializability Conflict Serializability View Serializability Deadlock in DBMS Concurrency control Protocols

Difference

Difference between DFD and ERD

Misc

Advantages of DBMS Disadvantages of DBMS Data Models in DBMS Relational Algebra in DBMS Cardinality in DBMS Entity in DBMS Attributes in DBMS Data Independence in DBMS Primary Key in DBMS Foreign Key in DBMS Candidate Key in DBMS Super Key in DBMS Aggregation in DBMS Hashing in DBMS Generalization in DBMS Specialization in DBMS View in DBMS File Organization in DBMS What Is A Cloud Database What Is A Database Levels Of Locking In DBMS What is RDBMS Fragmentation in Distributed DBMS What is Advanced Database Management System Data Abstraction in DBMS Checkpoint In DBMS B Tree in DBMS BCNF in DBMS Advantages of Threaded Binary Tree in DBMS Advantages of Database Management System in DBMS Enforcing Integrity Constraints in DBMS B-Tree Insertion in DBMS B+ Tree in DBMS Advantages of B-Tree in DBMS Types of Data Abstraction in DBMS Levels of Abstraction in DBMS 3- Tier Architecture in DBMS Anomalies in Database Management System Atomicity in Database Management System Characteristics of DBMS DBMS Examples Difference between Relational and Non-Relational Databases Domain Constraints in DBMS Entity and Entity set in DBMS ER Diagram for Banking System in DBMS ER Diagram for Company Database in DBMS ER Diagram for School Management System in DBMS ER Diagram for Student Management System in DBMS ER Diagram for University Database in DBMS ER Diagram of Company Database in DBMS Er Diagram Symbols and Notations in DBMS How to draw ER-Diagram in DBMS Integrity Constraints in DBMS Red-Black Tree Deletion in DBMS Red-Black Tree Properties in DBMS Red-Black Tree Visualization in DBMS Redundancy in Database Management System Secondary Key in DBMS Structure of DBMS 2-Tier Architecture in DBMS Advantages and Disadvantages of Binary Search Tree Closure of Functional Dependency in DBMS Consistency in Database Management System Durability in Database Management System ER Diagram for Bank Management System in DBMS ER Diagram for College Management System in DBMS ER Diagram for Hotel Management System in DBMS ER Diagram for Online Shopping ER Diagram for Railway Reservation System ER Diagram for Student Management System in DBMS Isolation in DBMS Lossless Join and Dependency Preserving Decomposition in DBMS Non-Key Attributes in DBMS Data Security Requirements in DBMS DBMS functions and Components What is Homogeneous Database? DBMS Functions and Components Advantages and Disadvantages of Distributed Database Relational Database Schema in DBMS Relational Schema Transaction Processing in DBMS Discriminator in DBMS

ER Diagram for Online Shopping

Introduction

In DBMS, ER diagram for an online shopping system shows how the databases are connected to each other. It also shows how all the databases are logically related to each other. We can also create an ER diagram by drawing the figure of a different part of the online shopping system and their properties and how they perform their task. 

We can draw an ER diagram of the online shopping system by drawing the design of the database. The sketch of the database became the storage of the database where the data comes and goes. 

Details Online Shopping System ER Diagram

Now we describe the overall function of the Online Shopping System in the below table. It is a complete overview of the information about the online shopping project.

Name:ER Diagram of the Online Shopping System.  
Abstract:The ER Diagram of the Online Shopping system shows the relationship between various entities. We can also call it the blueprint of the online shopping system.  
Diagram:We can also call the ER diagram an Entity Relationship diagram.  
Tool used:The ER diagram provides some symbol that is known as the diagramming tool.  

What is Online Shopping System?

The online shopping system is a type of electronic commerce system that allows the customer to buy goods and services over the internet. It can be done via a mobile app or web browser.

Features of Online Shopping Entity Relationship Diagram

There is some feature of the Entity Diagram of online shopping system. These are as follows.

  1. Shopping Management: It can save all shopping-related information. It also acts as the basis of admin for the order of the customer.
  2. Customer Management: It also collects all the important information about the customers. This collected information was used to determine the order and transaction of the customer.
  3. Manage Transactions: This feature also allows the admin to monitor the transaction made by the customer. It also stores all the transactions made by the customer and the shopping information of the customer.
  4. Transactions and Reports Management: This feature also stores the transaction made by the customer. It also collects the report and information of all the transactions made by the customer.

What is an ER Diagram?

We can also call ER diagram the database design for the online shopping system project. The ER diagram is like a picture that contains how all the entities are related to each other. The most important part of the ER diagram is Relationships, Attributes, and Entities. 

Importance of ER Diagram

The ER diagram for the project is the foundation for the building of the database of the project. The properties, datatypes, and attributes are defined by the ER diagram.

ER Diagram for Online Shopping System

The ER diagram for the online shopping system, the system data, and their attributes. The data and the attributes are represented by the table, and the table shows how they are related to each other.

Database design for the Online Shopping system

ER Diagram for Online Shopping

The above diagram shows the database design for the online shopping system. This database design shows all the system data, and the output for the user ate stored in the database. In DBMS, a good ER diagram is needed for the creation of an online shopping system.

Online Shopping System ER Diagram Tables

The below table shows all about the field name of the table, description, datatype, and character length. Each table of the ER diagram defines and explains the data storage. 

The field column lists all the attributes of the database that describes each column. The types table of the database shows what kind of data each attribute is, and the length shows how many characters it has.

Table Name: Customer

FieldDescriptionTypeLength
customer_ID (PK)Customer IDInt11
nameCustomer NameVarchar255
contact_addCustomer ContactInt11
addressCustomer AddressText

Table Name: Categories

FieldDescriptionTypeLength
category_ID (PK)Category IDInt11
category_nameCategory NameVarchar255
category_typeCategory TypeVarchar255

Table Name: Shopping Order

FieldDescriptionTypeLength
order_ID (PK)Order IDInt11
customer_ID (FK)Customer IDInt11
dateDate of OrderDate

Table Name: Deliveries

FieldDescriptionTypeLength
acc_ID (PK)Account IDInt11
customer_ID (FK)Customer IDInt11
dateDate of DeliveryDate

Table Name: Products

FieldDescriptionTypeLength
product_ID (PK)Product IDInt11
category_ID (FK)Category IDInt11
product_nameProduct NameVarchar255

Table Name: Seller

FieldDescriptionTypeLength
seller_ID (PK)Seller IDInt11
product_ID (FK)Product NameInt11
seller_nameSeller NameVarchar255

Table Name: Payment

FieldDescriptionTypeLength
payment_ID (PK)Payment IDInt11
customer_ID (FK)Customer IDInt11
dateDate of PaymentDate

Table Name: Reports

FieldDescriptionTypeLength
report_ID (PK)Report IDInt11
customer_ID (FK)Customer IDInt11
order_ID (FK)Order IdInt11
product_ID (FK)Product IdInt11
payment_Id (FK)Payment IdInt11

With the help of the above tables, we can set up the database for the online shopping system. It provides the full description of the database with its table names. They will enter all the values and attributes for the database in the table.

How to create ER Diagram

We can create the ER diagram for the table just in 5 minutes. There are some steps, and with the help of these steps, we can build the ER diagram for the online shopping system project. The steps are as below.

Step 1:

We have to familiarize ourselves with the entity relationship diagram cardinality and symbols. Then we have to show the data structure for the project in the entity relationship diagram. The symbol of the entity relationship diagram shows how they fit together. Before making the ER diagram, we should properly know the meaning of all the symbols and how to use all of them symbols.

Symbol of entity relationship diagram:-

  1. Fields: This entity shows how the different types of data are used together for a project. The symbol is used to show how the part of the project is working.
  2. Key: It is a type of technique that is used to categorize the quality of the data. There are two types of keys available for the database. These are as follows.
    • Primary key: It is a set of unique properties that are used for finding the specific entity.
    • A foreign key: It is a type of key made up of a piece of data with too many links to other things.

Step 2: Finalize the entities included

Start making your ER Diagram by deciding on all the parts your online shopping system must have. You’ll need to leave the area in your design for these rectangles to be included later.

Step 3: Add the attributes of each entity

After you’ve decided on the entities, think about the traits you’ll need for each one. In a conceptual ER diagram, the details of the different entities are given as attributes. Attributes are things like a thing’s traits, a many-to-many relationship, or a one-to-one relationship. Attributes with multiple values can be given more than one value.

Step 4: Describe the relationships (cardinality) between entities and attributes

You will need the entities, their attributes, and the relationships between them in order to plot the relationships between the ERD. To get the right entity relationship diagram, you will use the information you gathered to build the data structure.

Conclusion

You need to know how the online shopping System was designed and built using diagrams. With the help of an ER diagram will help you make a system that works well.

Making it will help you understand how the software works behind the scenes. This is where all the data that goes in and out of the system will be stored.