Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create an ER diagram based on the customer sales invoice and the product attribute list. Include many-to-many relationships: Entities Attributes (mandatory or optional) Unique Identifiers
- Create an ER diagram based on the customer sales invoice and the product attribute list. Include many-to-many relationships:
- Entities
- Attributes (mandatory or optional)
- Unique Identifiers
- Relationship cardinality
- Optionality
- Identifying and non-identifying relationships
- Foreign Keys
- Named Relationships
- ERD language
- Additional requirements:
- The company operates warehouses in different regions of the country
- Each warehouse stores products and each product may be stored at each warehouse. Not all products are stored at each warehouse. In addition, a warehouse could store a product, but be out of stock of that product. The company wants to maintain the inventory of each product at each warehouse.
- Create a second ER diagram with many-to-many relationships resolved
- Create a table (Word or Excel) in the DB1 Word document that lists each database table, column, and constraint
- Your database MUST include the following constraints:
- NOT NULL
- DEFAULT
- Primary key
- Primary key of the CUSTOMERS table is an IDENTITY auto generated column
- Primary key of the ORDERS table is a SEQUENCE auto generated column
- Unique key
- Foreign key
- Check constraint
- Use the ALTER TABLE statement to create the constraints identified in the business rules
- The NOT NULL constraints may be defined at the column level
- Include at least the following constraint testing:
- NOT NULL (1)
- DEFAULT (1)
- Primary keys (2)
- Unique keys (1)
- Foreign keys (4)
- CHECK constraints (at least three, but test all CHECK constraints)
- Test each constraint and provide unit-testing documentation:
- Provide a test that validates valid data is accepted
- Provide a test that validates invalid data is refused. For constraints such as ranges, test the upper and lower ranges. In other words, verify that all conditions work correctly.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started