Question

List the entities, their attributes and relationships for the description given above and make an ERdiagram for this e-Commerce Portal. You may use the concept of keys, aggregation, generalisation, cardinality etc. as per need. Design the suitable RDBMS tables for the ER-diagram you have created. The database design should include keys, foreign keys, constraints and referential integrity constraints. Your database design should be normalized up to 3rd Normal Form. Make necessary assumptions wherever require.

13 Sep 2024
Answer :
Word Count : 747

### Entities, Attributes, and Relationships for an e-Commerce Portal

#### 1. Entities and Attributes

1. Customer
   - *Attributes:* CustomerID (Primary Key), Name, Email, PhoneNumber, Address, Password

2. Product
   - *Attributes:* ProductID (Primary Key), Name, Description, Price, StockQuantity, CategoryID (Foreign Key)

3. Category
   - *Attributes:* CategoryID (Primary Key), CategoryName

4. Order
   - *Attributes:* OrderID (Primary Key), CustomerID (Foreign Key), OrderDate, TotalAmount

5. OrderItem
   - *Attributes:* OrderItemID (Primary Key), OrderID (Foreign Key), ProductID (Foreign Key), Quantity, Price

6. Payment
   - *Attributes:* PaymentID (Primary Key), OrderID (Foreign Key), PaymentDate, PaymentAmount, PaymentMethod

7. Supplier
   - *Attributes:* SupplierID (Primary Key), Name, ContactInformation

8. ProductSupplier
   - *Attributes:* ProductID (Foreign Key), SupplierID (Foreign Key)

#### 2. Relationships

- Customer - Order: One-to-Many (A customer can place multiple orders)
- Order - OrderItem: One-to-Many (An order can contain multiple items)
- Product - OrderItem: One-to-Many (A product can be part of multiple order items)
- Product - Category: Many-to-One (A product belongs to one category)
- Order - Payment: One-to-One (Each order has one payment record)
- Product - Supplier: Many-to-Many (A product can have multiple suppliers, and a supplier can provide multiple products)

#### 3. ER Diagram

![ER Diagram](https://example.com/ER-Diagram.png) *(For demonstration purposes; use appropriate tools like Lucidchart or draw.io to create your diagram)*

#### 4. RDBMS Tables

1. Customer Table
   ```sql
   CREATE TABLE Customer (
     

_______ _______ _______ _________ ________.
______ ________ ______ _________ _________ ___ ________.
________ ________ ____ ____ __________ ______ ___ _______ ______ ______.
_________ _________ _______ _________ _____.
_________ _______ ____ _____ ______ _________ __________.
_________ _____ ___ _________ ______ _______.
___ _________ __________ _____ _______ __________ __________ ____ _______ _____ _______.
_______ ____ _______ ________ _____ ______ ____ _______ _______ _____ _______ __________.
_______ _____ __________ ____ __________ ______ ___ _____ ________.
__________ _____ _______ ________ _______ ________ ______.
________ _________ ___ ________ ________.
________ ______ ______ ______ _________ ______ _____.
______ ________ __________ _________ _____.
________ _______ ______ _______ ___.
________ __________ ___ ____ ________ ____.
___ ____ _______ _______ ____.
___ ____ __________ ________ ______.
_______ ___ _____ ___ _______ ________ _________ ______ _______.
______ _________ __________ ____ ____ ___ ______ _________.
_________ _______ ____ ______ __________ _____ ____ ____ _____.
_______ _______ ___ ____ ____ _________ ___ ____ _____ ____.
____ _____ ___ ______ ___ ________ _______ ___.
___ ______ _______ ________ _____.
__________ _______ ______ _________ ____ __________ ________ _______ _____ ____ ___ _____.
____ ___ _______ _______ ______ ________.
_______ _______ ____ __________ __________ ________ ______ __________ _____.
______ ________ ____ _______ ________.
______ _____ __________ ______ __________ _________ ____ _________ __________ ________ __________.
_________ ______ _______ _______ _______ _________ _________ _______ ______ _____.
______ _____ ________ ____ ___ ________ ______ ______ _____.
_____ ________ ___ ____ _______ ____.
____ _____ __________ _______ _____ ___ ___ ____ _______.
__________ ______ _____ _______ _____ ___ ____ ________ ___ ________.
____ _______ ___ _________ ___ _________ ___ ________ ________ ______.
____ ________ ____ ___ _________ ________ ________ __________.
_______ ____ _________ ______ _____ ____ _______ ______ __________.
__________ __________ _______ _____ ______.
______ ____ ________ ______ _______ ________ _____ _________ ________ ________ _______ _________.
______ ________ _____ ______ _____ ________ _________.
_________ __________ _____ __________ ______ __________ ________ ____ __________ __________ ____.
_____ __________ ___ ______ ____ _________ _____ ____ ____.
____ ____ ___ ________ ___ __________ __________.
_______ ____ ___ ______ __________ ____ ________.
___ ______ _______ ___ _________ ____ ________.
________ ________ _______ ______ _____ __________ ____.
__________ ______ _____ ___ __________ _______.
_______ __________ ________ _________ ________ __________ __________ ____ __________ ________ _______.
____ _________ ____ _________ ____ ________ _____ ______ ____.
__________ ____ ____ ________ _______ ________ _______ _________ _______ __________ ___ ______.
________ ________ _____ _________ ______ ____ _________ __________ _________ _____.
_____ ________ ______ ________ _____ __________ ___ ____ _________ ________ _____ __________.
________ _________ _________ __________ __________ _______.
___ ____ ______ _________ ___.
____ ____ _____ ___ _____ ________.
_______ _______ _________ ____ ____ _______ ______ ______ _________ _____.
__________ _____ ___ ____ ________ ______ ________ _____.
_____ _________ ______ ________ _______ _______ _______.
____ ___ ___ _______ ________ _____.
_____ ______ ________ ________ ____ _______ __________ ________ ______ ______ _______ ____.
__________ _____ _____ ____ ____ _________.
___ ___ _________ ______ ______ ____ _____ _____ _________.
______ _______ __________ ______ ___ __________ ______ ___ ___ __________ ___ ____.
_______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCSL 210 2024 2025 - List the entities, their attributes and relationships for the descript | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→