Professional Documents
Culture Documents
Superclass: CB
Version: 01
Student declaration
I have read and understood SQA HND’s Policy on Academic Dishonesty and Plagiarism.
Student Signature : WY
e
Visit table
Create table visit
Creating visit table including vasit date which connect with primary
key,basic cost with float column type,symptom,treatment and pet_ID,vet_id
they are the two which connect with foreign key from the vet table and pet
table
a
MMMMEDICATION TABLE
MEMEDI
Task1
Task 2
Excute the visit and medication and its success.and the two of that table connect with foreign key
from the table of pet and vet
Task3
I excute vet table to populate the visit and medication tables,and I successfully insert this
two table .
Task4
On 22 june 2014,the owner of the dig that has sore foot visit the vet to get injection from the
doctorsarah wilson .the cost for treatment is 15.00.
Task5
The antibioticinjection and soothing cream cost a 17.89 and 12.50,so add two rows for the
medicineand cost
Task6
Remove the practice table .
Task7
Remove practice_id which contant with foreign key to vet table.
Task8
Adding a phone number column to the vet table
Task9
Add two junior partner.one of these new vet have not given a mobile phone yet.
task10
ASSESSMENT2
Task1
Select the title,forename,surname from owner table and name,type,breed from pet table.
And the out put should be sort on the owner surname and the pet name
Task 2
Select the pet that born between 1999 and 20001 and the
pet_ID,name ,type ,breed,born from pet table.and the report should be list in
the oldest first
Task3
Select the type of pet,bet it went the how much there are of each type,and the report should list the
highest occurances first.
Task4
The report want the total salary bill for junior and senior partner.
Task5
The report want the pet that name start or end with s.
And the display is pet_iD,name ,breed and gender.
Task6
A report of list is visit.the report want pet_id name ,breed ,visit date and basic cost which type is dog
Task7
Report want the number of visit which attend by vet,also include vet full name with the count of visit
attend.
Task8
Show the pet that has a symptom of ear and nose,and it also include the type and pet_iD,symptom..
Task9
The report want the total cost of medicine by theeach vet each day.only show the vet_ID and visit date
and total cost .
Task10
Show the list of pet that having an injectionduring may 2004,and the report want visit
date ,name,type,breed,treatmaent.
Task11
The report want t o see the average ,minium and maxium of the to
Task12
The report want the list of symptom ,treatment and medicinefor the pet whose pet_id is p0001.
Report view