Module 3.0 PDF
Module 3.0 PDF
MCA 104
Module-3
3.0 Relational Database Design
features of good relational database design:
A good relational database design should exhibit certain
features that ensure data integrity, efficiency, and ease of
maintenance. Here are some key features of a well-designed
relational database:
Entities:
Products (ProductID [PK], ProductName, Category, Price, Brand)
Orders (OrderID [PK], Order Date, Customer Name, Customer
Email)
Order Details (Order DetailID [PK], OrderID [FK], ProductID [FK],
Quantity, Unit Price)
In this example, the database follows a smaller schema
approach by combining data from multiple entities into
denormalized tables. The "Orders" table contains both
customer information and order details. The "OrderDetails"
table stores information about products ordered, including the
quantity and unit price. While this design may result in some
data redundancy (e.g., customer information being repeated in
multiple orders), it simplifies query complexity, making it easier
to retrieve order details and product information in a single
query without numerous joins.
Choosing between a large schema and a smaller schema
depends on the specific requirements of the application and
the nature of the data being stored. Large schemas are
generally preferred for applications where data integrity and
consistency are critical, such as financial systems or data
warehouses. On the other hand, smaller schemas may be more
suitable for applications where read performance is a higher
priority, such as web applications with a large number of
concurrent users.