List the entities, their attributes and relationships for the description and make an ER-diagram for this e-Commerce Portal. You may use the concept of keys, aggregation, generalisation, cardinality etc. in a proper way. Design the suitable RDBMS tables for the ER-diagram created by you. The database design should include keys, foreign keys, constraints and referential integrity constraints. Your database design must be normalized up to 3rd Normal form. Make necessary assumptions wherever require.
E-Commerce Portal Description:
An e-commerce portal is an online platform that facilitates the buying and selling of products and services. It allows customers to browse through various product categories, view product details, add items to their cart, and complete the purchase process. The portal also enables sellers to list their products, manage inventory, and handle orders and shipments.
Entities, Attributes, and Relationships:
- Customer: Attributes: CustomerID, FirstName, LastName, Email, Password, Address, City, State, ZipCode, Phone Relationships: Customers can place multiple Orders, and an Order is placed by one Customer.
- Product: Attributes: ProductID, ProductName, Description, Price, Quantity, CategoryID Relationships: A Product belongs to one Category, and a Category can have multiple Products.
- Category: Attributes: CategoryID, CategoryName, Description Relationship: A Category can have multiple Products.
- Order: Attributes: OrderID, OrderDate, ShippingAddress, ShippingCity, ShippingState, ShippingZipCode, TotalAmount, CustomerID Relationships: An Order is placed by one Customer, and an Order can have multiple OrderItems.
- OrderItem: Attributes: OrderItemID, OrderID, ProductID, Quantity, Price Relationships: An OrderItem belongs to one Order, and an OrderItem is associated with one Product.
- Seller: Attributes: SellerID, SellerName, Email, Password, Address, City, State, ZipCode, Phone Relationships: A Seller can list multiple Products, and a Product is listed by one Seller.
ER-Diagram:
+------------+ +-------------+ | Customer | | Order | +------------+ +-------------+ | CustomerID | | OrderID | | FirstName | | OrderDate | | LastName | | ShippingAddr| | Email | | ShippingCity| | Password | | ShippingState | Address | | ShippingZip | | City | | TotalAmount | | State | | CustomerID | | ZipCode | _______ ___ __________ _________ _________ _______ _______ ________ _______ ________ _________ _______.
________ __________ ______ ____ ___ ________ _______ _____.
_______ ______ ______ ____ ______.
__________ ___ _________ ____ _________ _______ ___ __________ ____.
_______ ___ __________ _______ ______ ____ ____.
_____ _____ ________ __________ _____.
_______ _____ __________ ________ ________.
_____ __________ ____ ___ __________ _____ _______ ____ ____ _____.
_________ _____ _____ ___ ________ _______.
________ _______ ______ _____ ________ ________ ___.
_______ ___ ___ __________ _________.
_______ _____ ___ _______ _______ _______.
____ __________ __________ _______ _________ _________ _________ __________ ____.
_____ ________ ________ __________ ____ ________.
____ ____ ________ ____ ______.
_____ __________ ______ ____ ____.
_________ ______ _____ _______ __________ __________ ____ _______ ______ ______ ____ ___.
___ ___ _________ _________ ____.
____ __________ ___ _______ ______ ______.
______ ___ ____ _________ ____ _____.
________ ___ ______ __________ _________ ________ ___ _______ __________.
_______ ________ __________ ________ ________ ___ __________ ____ ______ _____ ___ _______.
_______ __________ ____ _____ ___.
_______ ___ ________ ________ __________ __________ __________ ________ _________.
______ __________ _______ ______ ________ _________ __________ _____ ________ ____ _______.
_________ _________ ____ _______ ____ ____ ______ ___.
______ _______ __________ _________ ___ __________ ________ _____ ______.
________ __________ __________ __________ _________ ___.
_________ _________ ________ ________ ______ _________ __________ ________ __________ ________ ______ _______.
___ ______ __________ ________ ________ ______ __________.
_____ ________ _______ ___ ____ __________ ____.
__________ ________ ___ _________ ______ ______ ______ _____ ____ ______ _______.
_____ _________ _____ _____ ____ _____ __________ _____.
____ _____ __________ _____ _________ ____ _______ ___.
__________ ______ _________ _________ _________.
______ _____ _________ ___ _________ __________ _______ _____ ___ _____ ______ ________.
____ ________ ______ _________ _______ ______ _______ ___ _________ __________.
_________ ___ _____ __________ __________ ____ ___ _________.
_______ ________ _______ ____ ____ _____ ___ ________ __________ _______ _____.
________ ___ __________ _______ ___ _____ __________ ____ _______ ____ _________.
____ ___ ______ ______ ________.
_____ _________ _______ _____ ____ ________ _________ _______.
______ _____ ______ ________ _______ ________ ___ ____ _____ _____ __________.
____ ____ ___ ______ ___.
__________ _______ ______ ____ __________ __________ _______ ____ __________ _______.
__________ __________ _____ ________ __________ _____ _______.
____ _______ ______ ____ _____ _____ ____ ________ ______ _________.
_______ ______ _______ ______ ________ __________ ___ ________.
_____ ______ ___ ________ ________ _____ _________ _____ __________ _________ ________ ___.
________ _________ ________ __________ ________ _________ __________ ___ _____.
___ ____ ______ ______ _________ __________ ____ __________ ___ _________ __________ ____.
_____ _______ ___ __________ _________.
____ __________ ____ ____ _____ ___ ____ _______ ____ ___.
________ __________ _____ ____ ________ __________ _________ ___ ______ ______.
_________ _______ _______ ____ _______ ______ ___ _________ _________.
____ _______ ____ _________ _____ ___ _________ _______ ______ ______ ______ ______.
________ ______ ______ ____ ________ ___ __________ _________ __________ _____ _______ _________.
____ _______ _____ ____ _____.
______ ________ _________ _________ ______ ___ ___ __________ _______ _____.
_____ __________ _____ ________ ________ _____.
____ _________ _____ ___ _________ _____ ______ __________.
_____ __________ _____ ____ ________ ________.
______ __________ ________ ___ _______ ______ _______ _______ ______ _____ ______ __________.
______ ________ ____ _______ ___ __________ _________ ___ ______.
___ _________ _____ ______ _______ ______ _____ _________ _____ ____.
___ _____ _____ _________ __________ ___.
____ _____ ___ ________ ________ ________ ____ ______ _____ ________ _________ _______.
_________ _______ ________ _______ _____.
___ ___ _____ ___ _______ _____ __________ _______.
____ ___ _____ ____ ____ ______.
____ _________ ______ _________ _____ __________.
______ _________ _______ __________ ______ _____.
___ ______ ______ _________ ___.
___ ____ ______ ________ __________ ________ _____ _____ _______ ___ _____.
____ ________ ___ _____ _________.
_____ _____ _______ ________ _______ ___ _________ _______ __________.
_____ ______ ________ _______ ______ __________ ________ ____ ____ ____.
____ ______ ___ ____ __________.
__________ ______ __________ _________ ___ ______.
_________ ___ ______ _______ ___.
______ ______ _________ ______ ____ _______ _____ ________ ____ __________.
___ __________ ____ __________ ____ __________.
__________ ______ ________ __________ ______.
_____ _________ ________ __________ ______ _____ _______ ____ _______ ________ ______ _______.
_________ ________ _____ ____ ___ _________.
______ _________ __________ _________ _____ _____.
__________ _____ ________ _________ __________ _________ __________ _____ ______.
__________ _______ __________ _______ ____ ___.
___ ______ _____ ______ ______ ________ ____ ____.
___ ____ ___ ________ _______ ___ _______ _______.
_________ _________ ___ _____ _____ _____.
_____ _________ _______ ________ _______ ______.
_____ _______ _________ _____ _________ ______ ____ _________ _______ ________ __________ ___.
_______ ________ _______ ___ ___ __________ ________ _______ ____ __________ _____.
_____ ________ _________ ______ _________ _____ _______ ________ _________ _____ ____.
___ ___ _________ ________ __________ _____ ______ _____ __________ ______ ___.
____ _______ _______ _________ __________ ________ ____ __________ ____ _______ _______ __________.
_________ _____ __________ __________ _____ __________ ___ _________ __________ _________.
__________ ______ __________ ______ _______.
_____ _____ __________ _____ __________ ___ ____ __________.
____ _________ _______ ___ ______ ______ ________ ________ _______ ______.
__________ __________ _______ ________ ______.
__________ ________ __________ ______ _________ ___ _____ __________ ____ ______ ________.
______ ________ _______ _________ _____ _________ ______.
_________ _______ __________ _____ _________ _______ ____ _____ __________.
_______ ________ __________ _______ ___ _________ ____.
_____ __________ _____ _____ ____ ___.
_________ ___ __________ _____ __________ ____ _______.
_________ ________ __________ _______ ______.
_______ __________ ____ ____ ____ __________ _____.
__________ ______ ________ __________ __________ ______.
_____ ____ ____ ________ ______ ________ _________ _________ _____ _____.
______ ______ __________ ________ ________.
___ ________ _______ ____ _____ ___ ______ _____ ______ ________ ________ ___.
__________.
Get Full Answer on WhatsApp