DB Week 2 Assigment
DB Week 2 Assigment
Instructor Wellwerts
In this paper I would be working with a company that wants to enhance their database
Answers
its relationship. It defines entities, relationships, and constraints without specifying data
A logical data model takes entities a step further and work out the details of how their
attributes and relationships. It defines the structure, but does not concern itself with the
technical aspects of how the database will be constructed (Constantine Nalimov, gleek_).
Relationships
a. The customer places an order (one-to-many: one customer can place multiple orders).
b. An order contains products (many-to-many: an order can have multiple products, and
c. An inventory tracks products (one-to-one: each product has a single inventory record).
As a Physical Data Model
database management system (DBMS). It includes data types, indexing, and storage
Customer Table
Name VARCHAR(100),
Phone VARCHAR(15),
Address TEXT
);
Product Table
Product_Name VARCHAR(255),
Description TEXT,
Price DECIMAL(10,2),
Stock_Quantity INT
);
Order Table
Customer_ID INT,
Order_Date DATE,
Total_Amount DECIMAL(10,2),
);
Inventory Table
Quantity_Available INT,
Warehouse_Location VARCHAR(255),
);
Conceptual design helps in understanding business needs, while physical designs ensures
What is a Conceptual Data Model? With Examples! (September 22, 2021), Constantine
Nalimov. Gleek_.
https://www.gleek.io/blog/conceptual-data-model.html
Connolly, T., & Begg, C. (2015). Database systems: A practical approach to design,
Coronel, C., & Morris, S. (2018). Database systems: Design, implementation, &
Elmasri, R., & Navathe, S. (2020). Fundamentals of database systems (7th ed.). Pearson.
Hoffer, J., Venkataraman, R., & Topi, H. (2019). Modern database management (13th
ed.). Pearson.