Manager Id Last_name Skill Id First_name Skill name Manager Skills Skill_pay Manages Has Project E 4 Employee Works On Emp Id Project Id Project_name Project_cost (Emp_frst_name) Emp_start_date) (Emp_last_name

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter7: User Creation And Management
Section: Chapter Questions
Problem 5HOA
icon
Related questions
Question

Although you always wanted to be a dog trainer, you ended up being an expert on databases because you love to work with data and logic. Your old love is still there, however, so you set up a database company, DogTraining, that builds a product for dog kennels. The core of this product is a database with a schema that captures all the information that kennels need to maintain. Kennels keep information about dog trainers, the First and Last names of the dog trainers (which are unique), birthplace, color of the dog trainers hair, and style of training.  For each dog, the trainer, the date the dog was born, a name (not unique), the type of dog (e.g., Brittany, German Shepard, Collie, etc.), color of the dog’s hair, and how much weighs must be stored. Dogs are also classified into groups of various kinds, for example, hunting, guard, working; a given dog may belong to more than one group. Each group is identified by a name (like those just given) that describes the group. Finally, kennels keep information about customers. For each customer, kennels keep that person’s last name (which is not unique), first name (which is not unique), address, age (a derived value), date of birth, monthly income (very important!), and the dog types (NOT GROUPS) of dogs that the customer tends to like. Use the attached ERD as a template!

 

3.1) Draw the ER diagram for the database.

 

 

3.2) Identify the relational schema for the database. Make sure to clearly indicate primary keys and foreign keys.  You can add an ID integer PK attribute to any entity, where it makes logical sense to do so.

Manager Id
Last_name
Skill Id
First_name
Skill name
Manager
Skills
Skill_pay
Manages
Has
Project E
4 Employee
Works On
Emp Id
Project Id
Project_name
Project_cost
(Emp_frst_name)
Emp_start_date) (Emp_last_name
Transcribed Image Text:Manager Id Last_name Skill Id First_name Skill name Manager Skills Skill_pay Manages Has Project E 4 Employee Works On Emp Id Project Id Project_name Project_cost (Emp_frst_name) Emp_start_date) (Emp_last_name
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning