Question

Need assistance with this question. Please show detailed steps. For each of the following (parts a through g) E-R diagrams: L. Transform the diagram to a relational schema that shows referential integrity constraints (see the following figure for an example of such a schema - underlined items are primary keys, dotted underlines refer to foreign keys, while the arrows indicate direction from foreign to primary) CUSTOMER CustomerlD CustomerName ORDER OrderlD OrderDate CustomerlD ORDER LINE OrderlD rd OrderedQuantity PRODUCT roductD ProductDescription

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Relational Schema :-

1.Customer (CustomerID,CustomerName,CustomerAdress,CustomerCity,CustomerState,CustomerPostalCode)

2. Order(OrderID,OrderDate,CustomerID) // CustomerID is referred from Primary key CustomerID of Customer Relation

3. Product(ProductID,ProductDescription,ProductFinish,ProductStandardPrice,ProductLineID)

4. OrderLine(OrderID,ProductID,OrderedQuantity) //OrderID is refeered from primary key of Order relation and ProductID is referred from the primary key of Product Relation.

-> All primary keys are underlined.

-> All Foriegn keys are explained above.

-> Everything numbered is relation with relation name and the various attributes that define a particular relation.

Add a comment
Know the answer?
Add Answer to:
Need assistance with this question. Please show detailed steps. For each of the following (parts a through g) E-R di...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Database: Convert E-R diagrams to relational schema and show • Primary Keys (using underline) • Foreign Keys (using dotted underline) • Referential Integrity Convert the E-R diagrams to relational s...

    Database: Convert E-R diagrams to relational schema and show • Primary Keys (using underline) • Foreign Keys (using dotted underline) • Referential Integrity Convert the E-R diagrams to relational schema and show: Primary Keys (using underline) Foreign Keys (using dotted underline) . Referential Integrity Your schema should look similar to the example below. CUSTOMER CustName ORDER PROJECT Foect Title EMPLOYEE PROJECT assigecl to Tite BBli EMPLOYEE PROJECT 0 ProectTitle 4 student admitdate D,C gradstudent advisor major mimor class person name...

  • Database Schemas: Please draw the schemas like the example and not just list the entities and attributes! Thanks in adva...

    Database Schemas: Please draw the schemas like the example and not just list the entities and attributes! Thanks in advance! Convert the E-R diagrams to relational schema and show Primary Keys (using underline) Foreign Keys (using dotted underline) .Referential Integrity Your schema should look similar to the example below: CUSTOMER CustName ORDER OrderDate dob admitdate D,C gradstudent advisor major mimor class person phone D,C home homeid street buyer city ssn state ssn address zip nobedrms spousename profession spouseprofess minprice bdrms...

  • Given the following relational database schema (primary keys are bold and underlined). Answer questions 2.1 to 2.4 Orde...

    Given the following relational database schema (primary keys are bold and underlined). Answer questions 2.1 to 2.4 Orders(orderld, customerld, dateOrdered, dateRequired, status) Customer(customerld, customerLastName, customerStreet, customerCity, customerState, customer Lip OrderDetails(orderld.productld, quantity, lineNumber, amount) Products(productld, name, description, quantity, unitPrice) Account(accountNumber, customerld, dateOpened, creditCard, mailingStreet, mailingCity, mailingState, mailingZip) 2.1 (2 Points) List all possible foreign keys. For each foreign key list both the referencing and referenced relations. 2.2 (2 Points) Devise a reasonable database instance by filling the tables with data of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT