Please Help me With question # 1.16 show how the tables you create for question 1.15 solve the three problems of the list identified in this chapter 1.15 Ans: Three themes can be identified. They are: Pet details Owner detais Service details Pet details table: The following attributes, including "PetName," "PetType," "PetBreed," and "PetDOB," are included in the pet information table. PetName PetType PetBreed PetDOB King Dog Std.Poodle 27-Feb-15 Teddy Cat Cashmier 1-Feb-15 Fido Dog Std.Poodle 17-Jul-17 AJ Dog Collie mix 5-May-17 Cedro Cat Unknown 6-Jun-14 Woolley Cat Unknown ??? Buster Dog Border Collie 11-Dec-13 Jiddah Cat Abyssinian 1-Jul-10 Owner details:Owner Lname, Owner Fname, OwnerPhone, and Owner Mail are some of the properties found in the owner details table. Owner Last Name Owner First Name Owner Phone # Owner Email Downs Marsha 201-823-5467 Marsha.Downs@somewhere.com James Richard 201-735-9812 Richard.James@somewhere.com Downs Marsha 201-823-5467 Marsha.Downs@somewhere.com Frier Liz 201-823-6578 Liz.Frier@somewhere.com James Richard 201-735-9812 Richard.James@somewhere.com James Richard 201-735-9812 Richard.James@somewhere.com Trent Miles 201-634-7865 Miles.Trent@somewhere.com Evans Hilary 201-634-2345 Hilary.Evans@somewhere.com ID column creation: OwnerID Owner Last Name Owner First Name Owner Phone # Owner Email 1 Downs Marsha 201-823-5467 Marsha.Downs@somewhere.com 2 James Richard 201-735-9812 Richard.James@somewhere.com 3 Frier Liz 201-823-6578 Liz.Frier@somewhere.com 4 Trent Miles 201-634-7865 Miles.Trent@somewhere.com 5 Evans Hilary 201-634-2345 Hilary.Evans@somewhere.com Explanation: The information from the owner database may be found in the table below, with the ID columns specified to eliminate duplication. In order to address discrepancies, the Owner table has an additional ID field named Owner id and duplicate records (Downs, James) are eliminated. Service details table: The Service details table has the following properties, including "Service," "Date," and "Charge." Service Date Charge Ear infection 17-Aug-16 $66.00 Nail clip 5-Sep-16 $27.50 One year shots 5-May-16 $42.50 Nail clip 5-Sep-16 $27.50 Skin infection 3-Oct-1 $36.00 Laceration problem 5-Oct-16 $127.00 Booster shots 4-Nov-16 $111.00 ID column creation: ServiceID Service Date Charge 1 Ear infection 17-Aug-16 $66.00 2 Nail clip 5-Sep-16 $27.50 3 One year shots 5-May-16 $42.50 4 Skin infection 3-Oct-1 $36.00 5 Laceration problem 5-Oct-16 $127.00 6 Booster shots 4-Nov-16 $111.00 Explanation: The information from the service table is contained in the following table, which specifies the ID fields to be used to weed out duplicates. To prevent discrepancies, the duplicate entry (Nail Clip) in the service information database is eliminated and replaced with the service id as the ID field.
Please Help me With question # 1.16 show how the tables you create for question 1.15 solve the three problems of the list identified in this chapter
1.15 Ans:
Three themes can be identified. They are:
- Pet details
- Owner detais
- Service details
Pet details table:
The following attributes, including "PetName," "PetType," "PetBreed," and "PetDOB," are included in the pet information table.
PetName |
PetType |
PetBreed |
PetDOB |
King |
Dog |
Std.Poodle |
27-Feb-15 |
Teddy |
Cat |
Cashmier |
1-Feb-15 |
Fido |
Dog |
Std.Poodle |
17-Jul-17 |
AJ |
Dog |
Collie mix |
5-May-17 |
Cedro |
Cat |
Unknown |
6-Jun-14 |
Woolley |
Cat |
Unknown |
??? |
Buster |
Dog |
Border Collie |
11-Dec-13 |
Jiddah |
Cat |
Abyssinian |
1-Jul-10 |
Owner details:Owner Lname, Owner Fname, OwnerPhone, and Owner Mail are some of the properties found in the owner details table.
Owner Last Name |
Owner First Name |
Owner Phone # |
Owner Email |
Downs |
Marsha |
201-823-5467 |
Marsha.Downs@somewhere.com |
James |
Richard |
201-735-9812 |
Richard.James@somewhere.com |
Downs |
Marsha |
201-823-5467 |
Marsha.Downs@somewhere.com |
Frier |
Liz |
201-823-6578 |
Liz.Frier@somewhere.com |
James |
Richard |
201-735-9812 |
Richard.James@somewhere.com |
James |
Richard |
201-735-9812 |
Richard.James@somewhere.com |
Trent |
Miles |
201-634-7865 |
Miles.Trent@somewhere.com |
Evans |
Hilary |
201-634-2345 |
Hilary.Evans@somewhere.com |
ID column creation:
OwnerID |
Owner Last Name |
Owner First Name |
Owner Phone # |
Owner Email |
1 |
Downs |
Marsha |
201-823-5467 |
Marsha.Downs@somewhere.com |
2 |
James |
Richard |
201-735-9812 |
Richard.James@somewhere.com |
3 |
Frier |
Liz |
201-823-6578 |
Liz.Frier@somewhere.com |
4 |
Trent |
Miles |
201-634-7865 |
Miles.Trent@somewhere.com |
5 |
Evans |
Hilary |
201-634-2345 |
Hilary.Evans@somewhere.com |
Explanation:
- The information from the owner
database may be found in the table below, with the ID columns specified to eliminate duplication. - In order to address discrepancies, the Owner table has an additional ID field named Owner id and duplicate records (Downs, James) are eliminated.
Service details table:
The Service details table has the following properties, including "Service," "Date," and "Charge."
Service |
Date |
Charge |
Ear infection |
17-Aug-16 |
$66.00 |
Nail clip |
5-Sep-16 |
$27.50 |
One year shots |
5-May-16 |
$42.50 |
Nail clip |
5-Sep-16 |
$27.50 |
Skin infection |
3-Oct-1 |
$36.00 |
Laceration problem |
5-Oct-16 |
$127.00 |
Booster shots |
4-Nov-16 |
$111.00 |
ID column creation:
ServiceID |
Service |
Date |
Charge |
1 |
Ear infection |
17-Aug-16 |
$66.00 |
2 |
Nail clip |
5-Sep-16 |
$27.50 |
3 |
One year shots |
5-May-16 |
$42.50 |
4 |
Skin infection |
3-Oct-1 |
$36.00 |
5 |
Laceration problem |
5-Oct-16 |
$127.00 |
6 |
Booster shots |
4-Nov-16 |
$111.00 |
Explanation:
- The information from the service table is contained in the following table, which specifies the ID fields to be used to weed out duplicates.
- To prevent discrepancies, the duplicate entry (Nail Clip) in the service information database is eliminated and replaced with the service id as the ID field.
Step by step
Solved in 3 steps