Question: Advanced Challenge Create two tables based on the E-R model shown in Figure 4-41 and the business rules in the following list for a work

 Advanced Challenge Create two tables based on the E-R model shown

Advanced Challenge Create two tables based on the E-R model shown in Figure 4-41 and the business rules in the following list for a work order tracking database. Include all the constraints in the CREATE TABLE statements. You should have only two CREATE TABLE statements and no ALTER TABLE statements. Name all constraints except NOT NULLs. Project Proj P name P desc P budpet Projt Wo desc Wo-assigned t -w hold a name for the person assiganed Dates Wil hold a Y or N Wo start Wo due FIGURE 4-41 Workorders E-R model .Use your judgment for column datatypes and sizes. .Each project added must be assigned a name, and no duplicate project names .Each work order must be assigned to a valid project when added and be assigned Proj# and WOR are used to uniquely identify rows in these tables. are allowed. a description and number of hours. . Each work order added must have a different description. .The number of hours assigned to a work order should be greater than zero. If data is provided for the Wo-complete column, only Y or N are acceptable values. Create and execute the SQL statements needed to enforce the data relationships among these tables

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!