Question
//Database Management E-R(entity relation) diagram and turning E-R diagrams to SQL language commands //Part One: E-R Diagram Drawing ER diagrams, do not be subtle. Put
//Database Management E-R(entity relation) diagram and turning E-R diagrams to SQL language commands
//Part One: E-R Diagram
Drawing ER diagrams, do not be subtle. Put a gap between double-lines. Draw subset symbols nice and large.
Consider a database containing information about pets. Create entities and relationships as appropriate for each situation.
Information that is true for all of the following ER diagrams: All (mammalian) pets have RFID tag IDs that uniquely identify them, and also names and colors.
For each of the following situations, draw an ER diagram that describes it. Unless told to do otherwise, consider each situation independently.
Pets have food bowls. Sometimes bowls are shared among pets; sometimes one pet has multiple bowls. Every food bowl has a color, a size, and a unique manufacturer's ID.
Some pets are rabbits, and the database needs to store the minimum cage size for each rabbit. Some pets are dogs, and the database needs to store the favorite treat for each dog.
Every pet collar belongs to exactly one pet. Pet collars are identified by tag number, and the database also keeps track of collar colors and patterns. (Some pets are fashionistas and have many collars.)
Pets must have a water bowl or bowls. Bowls are identified by a unique manufacturer's ID, and also have a color and size.
The database must keep track of pet photos. To be in the database, each photo must be of one pet in the database and have a timestamp. Timestamps are not unique, since two family members might photograph different family pets at the exact same time.
//Part Two: E-R diagram to SQL language
Translate the following image into relations. Write the SQL statements to create those relations. Write English explanations of anything in the ER diagram that is not captured in your SQL. Assume all keys are data type 'integer' and all other fields are data type 'date'.
too coo gee kee hee xii XII syy Covering constraint: yes baa faa nii bii muu yaa I nii nIl ruu
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