Question

Consider the following tables: STORAGE(ST_CODE, ST_NAME, ST_LOCATION, ST_CONTACT) ITEM(IT_CODE, IT_DESCRIPTION, IT_QUANTITY, ST_CODE) For the tables given...

  1. Consider the following tables:

STORAGE(ST_CODE, ST_NAME, ST_LOCATION, ST_CONTACT)

ITEM(IT_CODE, IT_DESCRIPTION, IT_QUANTITY, ST_CODE)

For the tables given above, work on the problems below:

4. For one of the tables, give examples of a superkey and a secondary key.

5. For the given tables, explain how entity integrity and referential integrity could be violated. Give specific examples.

6. Use Visio to create a detailed Crow's Foot ERD. The diagram must include all entities, attributes, and relationships. Primary keys and foreign keys must be clearly identified on the diagram.

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

Please do understand my concern, as per Chegg guidelines we are supposed to answer the first question if there is more than one question in a post, your downvote effects my career a lot, if I get a downvote for a wrong answer or incomplete answer I will accept it. Please give a positive rating

4)

the super key for REGION- REG_CODE,  REG_DESCRIPTION,

the super key for STORE - ST_CODE, ST_NAME

secondary key for REGION- REG_DESCRIPTION, REG_LOCATION

secondary key for STORE - ST_NAME, ST_MANAGER, REG_CODE

5)

entity integrity means the primary key cannot be null

the primary key for STORAGE is ST_CODE if it is null then it will cause entity integrity constraint

the primary key for STORE is IT_CODE if it is null then it will cause entity integrity constraint

ST_CODE is the foreign key for the ITEM table, so if the ST_CODE value is null in STORAGE then it causes referential integrity

Add a comment
Know the answer?
Add Answer to:
Consider the following tables: STORAGE(ST_CODE, ST_NAME, ST_LOCATION, ST_CONTACT) ITEM(IT_CODE, IT_DESCRIPTION, IT_QUANTITY, ST_CODE) For the tables given...
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
  • QUESTION 1 1. Use the following business rules to draw the fully labeled Crow's Foot ERD...

    QUESTION 1 1. Use the following business rules to draw the fully labeled Crow's Foot ERD in Visio. The diagram must include all entities, attributes, and relationships. Primary keys and foreign keys must be clearly identified on the diagram. Write all appropriate connectivities and cardinalities on the ERD. a). Each city may have many sport teams. The number of teams is limited to 20 per city. b). Each team belongs to one and only city. c). Each team has at...

  • QUESTION 1 1. Use the following business rules to draw the fully labeled Crow's Foot ERD...

    QUESTION 1 1. Use the following business rules to draw the fully labeled Crow's Foot ERD in Visio. The diagram must include all entities, attributes, and relationships. Primary keys and foreign keys must be clearly identified on the diagram. Write all appropriate connectivities and cardinalities on the ERD. a). Each city may have many sport teams. The number of teams is limited to 20 per city. b). Each team belongs to one and only city. c). Each team has at...

  • QUESTION 1 What is the most common relationship within a relational database? Select the best answer...

    QUESTION 1 What is the most common relationship within a relational database? Select the best answer from the following. One-To-One relationship. o One-To-Many relationship. Many-To-Many relationship. Zero-To-Zero relationship. QUESTION 2 What is an "entity'? Select the best answer from the following. An entity, for our purposes, is the same as a table in the database. An entity represents one of the columns in an individual table. There are no entities in a relational database. Entities are only part of NoSQL...

  • need help! 1. To keep track of vendors and products they supply, XYZCorp. uses the table...

    need help! 1. To keep track of vendors and products they supply, XYZCorp. uses the table structure shown below. Assuming that the sample data are representative, draw a dependency diagram in Visio that shows all functional dependencies including both partial and transitive dependencies. (Hint: Look at the sample values to determine the nature of the relationships.) VEND TYPE Non-profit organization Non-profit organization Profit organization Profit organization Profit organization PART CODE 1234 PART DESC Logic Chip VEND NAME Fast Chips VEND...

  • A small surgery center needs your help to create a database. The office manager has identified...

    A small surgery center needs your help to create a database. The office manager has identified the following types of data (entities): patients, doctors, procedures and appointments. Please identify the attributes and primary keys needed for each of the entities. Identify the data types you would use for each of the attributes. Determine the relationships between the entities and find the one-to-many and many-to-many relationships. Use the ER matrix to determine the relationships. Create an ER diagram using Visio based...

  • Q) Integrity Constraints question. Consider following tables (bold are Primary Keys) •Hotel (hotelNo, hotelName, city) •Room...

    Q) Integrity Constraints question. Consider following tables (bold are Primary Keys) •Hotel (hotelNo, hotelName, city) •Room (roomNo, hotelNo, type, price) •Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo) •Guest (guestNo, guestName, guestAddress) Identify the foreign keys in this schema, Explain how the entity and referential integrity rules apply to these relations.

  • Project: Relational Modeling Note: This project must be unique in its design (E-R diagram) and implementation...

    Project: Relational Modeling Note: This project must be unique in its design (E-R diagram) and implementation (SQL queries). You are not to copy or use any part of a database project that was previously submitted or appears on the Web, in a textbook, or otherwise made available via an external source. Contact your instructor if you have any questions regarding this requirement. Deliverables for Part 1: (1) Project Description. Provide an overview of your project identifying the major components as...

  • Create a database model consisting of 1) a summary of the relationships between the entities simi...

    create a database model consisting of 1) a summary of the relationships between the entities similar to Figure 6-40; 2) a crow's foot ER diagram for the design using Power Architect. Reminder: a crow's foot ERD does not contain primary keys, foreign keys, or intersection relations. Export your Power Architect diagram to a .pdf and attach it to the assignment drop box. Figure 6-40 entities and attributes to use: CEREAL_MANUFACTURERS (CMID, CMName, CMHomeState) PRODUCTS (PID, PName) INGREDIENTS (IID, IName) SUPPLIERS...

  • Show the ERD for the following piece of the problem statements. Show only entities (or dependent...

    Show the ERD for the following piece of the problem statements. Show only entities (or dependent entities), relationships, multiplicities, primary keys and foreign keys. Create an appropriate primary key if necessary. You don’t need to specify other attributes. If a relationship is M:N, then show two diagrams: both the M:N relationship diagram and its decomposition into two 1:N relationships. (a) A book has one or many keywords and one keyword can be used in zero or many books. (b) A...

  • Scenic Routes operates a bus company that specializes in traveling on secondary roads, rather than Interstate...

    Scenic Routes operates a bus company that specializes in traveling on secondary roads, rather than Interstate highways. Their slogan is: “It Takes a Little Longer, But It’s Scenic.” The firm needs to update its passenger reservation system. Background Data items must include reservation number, Route Number, Date, Origin, Destinations, Departure Time, Arrival Time, Passenger Name, and Seat Number. For example, Route 97 leaves Monroe, VA, daily at 8:00 a.m. and arrives in Spencer, VA, 100 miles away, at 11:00 a.m....

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