/*vet script fall 2010*/ /*drop all tables*/ drop table animal_color

advertisement
/*vet script fall 2010*/
/*drop all
drop table
drop table
drop table
drop table
drop table
drop table
drop table
drop table
drop table
tables*/
animal_color cascade constraints;
species cascade constraints;
VET_STATE cascade constraints;
VET_appt_type cascade constraints;
VET cascade constraints;
VET_client cascade constraints;
animal cascade constraints;
vet_appt cascade constraints;
breed cascade constraints;
/*create table animal_color*/
CREATE TABLE ANIMAL_COLOR
(
COLOR_ID
NUMBER
COLOR_NAME VARCHAR2(15 BYTE)
);
ALTER TABLE ANIMAL_COLOR ADD (
PRIMARY KEY
(COLOR_ID)
);
/*create table species*/
CREATE TABLE SPECIES
(
SPECIES_ID
NUMBER
SPECIES_DESCRIPTION VARCHAR2(35 BYTE)
);
ALTER TABLE SPECIES ADD (
PRIMARY KEY
(SPECIES_ID)
);
/*create table breed*/
CREATE TABLE BREED
(
BREED_ID
NUMBER
BREED_DESCRIPTION VARCHAR2(50 BYTE)
);
NOT NULL,
NOT NULL
NOT NULL,
NOT NULL
NULL,
NULL
ALTER TABLE BREED ADD (
PRIMARY KEY
(BREED_ID));
/*create table VET_STATE*/
CREATE TABLE VET_STATE
(
STATE_ABBREV CHAR(2 BYTE)
STATE_NAME
VARCHAR2(35 BYTE)
);
ALTER TABLE VET_STATE ADD (
PRIMARY KEY
(STATE_ABBREV));
NOT NULL,
NOT NULL
/*create table VET_appt_type*/
CREATE TABLE VET_APPT_TYPE
(
APPT_TYPE
NUMBER
APPT_TYPE_DESCRIPTION VARCHAR2(25 BYTE)
);
ALTER TABLE VET_APPT_TYPE ADD (
PRIMARY KEY
(APPT_TYPE));
NOT NULL,
NOT NULL
ALTER TABLE VET_appt_type
MODIFY APPT_TYPE DEFAULT 1;
/*create table VET*/
CREATE TABLE VET
(
VET_ID
NUMBER
VET_FNAME VARCHAR2(30 BYTE)
VET_LNAME VARCHAR2(35 BYTE)
);
ALTER TABLE VET ADD (
PRIMARY KEY
(VET_ID));
/*create table VET_client*/
CREATE TABLE VET_CLIENT
(
CLIENT_ID
NUMBER
CLIENT_LNAME VARCHAR2(30 BYTE)
CLIENT_FNAME VARCHAR2(30 BYTE)
ADD1
VARCHAR2(30 BYTE)
CITY
VARCHAR2(25 BYTE)
STATE
CHAR(2 BYTE)
ZIP
CHAR(5 BYTE)
);
ALTER TABLE VET_CLIENT ADD (
PRIMARY KEY
(CLIENT_ID));
NOT NULL,
NOT NULL,
NOT NULL
NOT NULL,
NOT NULL,
NOT NULL,
NULL,
NULL,
NULL,
NULL
ALTER TABLE VET_CLIENT ADD (
FOREIGN KEY (STATE)
REFERENCES VET_STATE (STATE_ABBREV));
alter table vet_client modify state
default 'PA';
alter table vet_client modify zip
default '19122';
/*create table animal*/
CREATE TABLE ANIMAL
(
ANIMAL_ID
NUMBER
CLIENT_ID
NUMBER
PRIMARY_COLOR NUMBER
DOB
DATE
NOT
NOT
NOT
NOT
NULL,
NULL,
NULL,
NULL,
SPECIES
NAME
GENDER
BREED
NUMBER
VARCHAR2(35 BYTE)
VARCHAR2(4 BYTE)
NUMBER
NOT NULL,
NOT NULL,
NOT NULL,
NULL
);
ALTER TABLE ANIMAL ADD (
PRIMARY KEY
(ANIMAL_ID));
ALTER TABLE ANIMAL ADD (
FOREIGN KEY (CLIENT_ID)
REFERENCES VET_CLIENT (CLIENT_ID));
ALTER TABLE ANIMAL ADD (
FOREIGN KEY (PRIMARY_COLOR)
REFERENCES ANIMAL_COLOR (COLOR_ID));
ALTER TABLE ANIMAL ADD (
FOREIGN KEY (SPECIES)
REFERENCES SPECIES (SPECIES_ID));
ALTER TABLE ANIMAL ADD (
FOREIGN KEY (BREED)
REFERENCES BREED (BREED_ID));
alter table animal add
check (gender in ('MU', 'MN', 'FS', 'FU'));
/*create table vet_appt*/
CREATE TABLE VET_APPT
(
APPT_ID
NUMBER
VET_ID
NUMBER
ANIMAL_ID
NUMBER
APPT_DATE
DATE
APPT_TYPE
NUMBER
WEIGHT
NUMBER(6,2)
TEMPERATURE NUMBER(6,2)
);
ALTER TABLE VET_APPT ADD (
PRIMARY KEY
(APPT_ID)
);
ALTER TABLE VET_APPT ADD (
FOREIGN KEY (ANIMAL_ID)
REFERENCES ANIMAL (ANIMAL_ID));
ALTER TABLE VET_APPT ADD (
FOREIGN KEY (VET_ID)
REFERENCES VET (VET_ID));
ALTER TABLE VET_APPT ADD (
FOREIGN KEY (APPT_TYPE)
REFERENCES VET_APPT_TYPE (APPT_TYPE));
NOT
NOT
NOT
NOT
NOT
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
/*populate vet_state*/
Insert into VET_STATE
(STATE_ABBREV, STATE_NAME)
Values
('PA', 'Pennsylvania');
Insert into VET_STATE
(STATE_ABBREV, STATE_NAME)
Values
('NJ', 'New Jersey');
Insert into VET_STATE
(STATE_ABBREV, STATE_NAME)
Values
('DE', 'Delaware');
Insert into VET_STATE
(STATE_ABBREV, STATE_NAME)
Values
('NY', 'New York');
/*populate animal_color*/
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(1, 'black');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(2, 'white');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(3, 'tan');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(4, 'orange');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(5, 'cream');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(6, 'mixed');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(7, 'gray');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(8, 'other');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(9, 'tabby');
Insert into ANIMAL_COLOR
(COLOR_ID, COLOR_NAME)
Values
(10, 'b and w');
/*populate species*/
Insert into SPECIES
(SPECIES_ID, SPECIES_DESCRIPTION)
Values
(1, 'dog');
Insert into SPECIES
(SPECIES_ID, SPECIES_DESCRIPTION)
Values
(2, 'cat');
Insert into SPECIES
(SPECIES_ID, SPECIES_DESCRIPTION)
Values
(3, 'rabbit');
Insert into SPECIES
(SPECIES_ID, SPECIES_DESCRIPTION)
Values
(4, 'pig');
Insert into SPECIES
(SPECIES_ID, SPECIES_DESCRIPTION)
Values
(5, 'sheep');
/*populate breed*/
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(1, 'Siberian Husky');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(2, 'Golden Retriever');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(3, 'Doberman');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(4, 'Greyhound');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(5, 'Akita');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(6, 'Yellow Lab');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(7, 'Chocolate Lab');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(8, 'Domestic Short Hair');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(9, 'Domestic Long Hair');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(10, 'Persian');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(11, 'Siamese');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(12, 'Maine Coon');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(13, 'Mixed');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(14, 'Hemingway Polydactyl');
Insert into BREED
(BREED_ID, BREED_DESCRIPTION)
Values
(15, 'Southdown Babydoll');
/*populate VET_APPT_TYPE*/
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(1, 'Follow-up');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(2, 'Wellness');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(3, 'Senior');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(4, 'Pre-Op');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(5, 'Post-Op');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(6, 'Emergency');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(7, 'Innoculation');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(8, 'New Patient');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(9, 'OPD Surgery');
Insert into VET_APPT_TYPE
(APPT_TYPE, APPT_TYPE_DESCRIPTION)
Values
(10, 'Extensive Surgical ');
/*populate vet*/
Insert into VET
(VET_ID, VET_FNAME, VET_LNAME)
Values
(1, 'Jane', 'Kirchoffer');
Insert into VET
(VET_ID, VET_FNAME, VET_LNAME)
Values
(2, 'Michelle', 'Bishop');
Insert into VET
(VET_ID, VET_FNAME, VET_LNAME)
Values
(3, 'Mark', 'Fox');
Insert into VET
(VET_ID, VET_FNAME, VET_LNAME)
Values
(4, 'Jill', 'Rosenblatt');
/*populate vet_client*/
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(134, 'Marselis', 'Cindy', '3300 N. Broad Street', 'Philadelphia',
'PA', '19140');
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(143, 'Doyle', 'Mart', '1811 N. 13th Street', 'Philadelphia',
'PA', '19122');
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(155, 'Springsteen', 'Bruce', '3456 Rock Way', 'Rumson',
'NJ', '08002');
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(166, 'Clemmons', 'Clarence', '23445 Hudson Street', 'Neptune',
'NJ', '08002');
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(187, 'Dante', 'Silvio', '23667 Soprano Way', 'Metuchen',
'NJ', '08556');
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(198, 'Van Zandt', 'Stevie', '878 Bada Bing Way', 'Hoboken',
'NJ', '08555');
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(157, 'Scialfa', 'Patti', NULL, 'Rumson',
'NJ', '08002');
Insert into VET_CLIENT
(CLIENT_ID, CLIENT_LNAME, CLIENT_FNAME, ADD1, CITY,
STATE, ZIP)
Values
(209, 'Ethridge', 'Melissa', '1414 Tibet Road', 'Huntingdon Valley',
'PA', '19006');
/*populate animal*/
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB,
NAME, GENDER, BREED)
Values
(2, 134, 1, TO_DATE('03/23/2002 00:00:00',
'Asbury', 'FS', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB,
NAME, GENDER, BREED)
Values
(3, 134, 9, TO_DATE('07/29/2001 00:00:00',
'Bogart', 'MN', 9);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB,
NAME, GENDER, BREED)
Values
(5, 134, 7, TO_DATE('08/15/2003 00:00:00',
'Fiona', 'FS', 9);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB,
NAME, GENDER, BREED)
Values
SPECIES,
'MM/DD/YYYY HH24:MI:SS'), 2,
SPECIES,
'MM/DD/YYYY HH24:MI:SS'), 2,
SPECIES,
'MM/DD/YYYY HH24:MI:SS'), 2,
SPECIES,
(7, 134, 4, TO_DATE('04/07/2003 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
'Pickelpuss', 'MN', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(8, 134, 7, TO_DATE('10/24/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
'Luciano', 'MN', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(9, 134, 9, TO_DATE('01/19/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
'Lucky', 'MN', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(10, 134, 10, TO_DATE('08/20/1998 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
'Piccadilly', 'FS', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(11, 134, 9, TO_DATE('06/02/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
'Springsteen', 'FS', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(12, 134, 2, TO_DATE('04/06/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 5,
'Bob', 'MN', 15);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(13, 134, 1, TO_DATE('01/19/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
'Clarence', 'MN', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(1, 134, 10, TO_DATE('07/03/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
'Juno', 'MN', 1);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(4, 134, 3, TO_DATE('09/15/2003 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
'Jack', 'MN', 13);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(6, 134, 2, TO_DATE('06/30/2008 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 5,
'Daisy', 'FU', 15);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(25, 134, 2, TO_DATE('06/30/2008 00:00:00', 'MM/DD/YYYY
'Petunia', 'FU', 15);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(24, 166, 4, TO_DATE('02/11/2002 00:00:00', 'MM/DD/YYYY
'Danny', 'MU', 3);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(23, 143, 7, TO_DATE('07/06/1999 00:00:00', 'MM/DD/YYYY
'Pete', 'FU', 7);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(27, 143, 7, TO_DATE('12/15/2004 00:00:00', 'MM/DD/YYYY
'Bailey', 'FS', 8);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(29, 134, 1, TO_DATE('05/01/2008 00:00:00', 'MM/DD/YYYY
'Grillo', 'MN', 14);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(28, 134, 1, TO_DATE('05/01/2008 00:00:00', 'MM/DD/YYYY
'Hemingway', 'FS', 14);
Insert into ANIMAL
(ANIMAL_ID, CLIENT_ID, PRIMARY_COLOR, DOB, SPECIES,
NAME, GENDER, BREED)
Values
(30, 134, 6, TO_DATE('12/15/2007 00:00:00', 'MM/DD/YYYY
'Max', 'MN', 13);
HH24:MI:SS'), 5,
HH24:MI:SS'), 2,
HH24:MI:SS'), 3,
HH24:MI:SS'), 2,
HH24:MI:SS'), 2,
HH24:MI:SS'), 2,
HH24:MI:SS'), 1,
/*Populate Vet_appt table*/
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(1, 1, 3, TO_DATE('07/14/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(2, 3, 2, TO_DATE('07/14/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
12, 101.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(3, 1, 5, TO_DATE('07/14/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
11.6, 101.7);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(4, 3, 12, TO_DATE('07/14/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3,
8.5, 102);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(5, 2, 3, TO_DATE('07/28/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.1, 101.3);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(6, 2, 7, TO_DATE('08/15/2008 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
18, 101.2);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(7, 4, 6, TO_DATE('09/22/2008 10:30:00', 'MM/DD/YYYY HH24:MI:SS'), 7,
87, 101);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(8, 2, 4, TO_DATE('09/15/2008 12:20:00', 'MM/DD/YYYY HH24:MI:SS'), 7,
78, 100.9);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(9, 3, 9, TO_DATE('10/01/2008 10:40:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
8.6, 101.9);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(10, 1, 3, TO_DATE('01/08/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(11, 3, 2, TO_DATE('10/14/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
12, 101.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(12, 1, 5, TO_DATE('10/12/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
11.6, 101.7);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(13, 3, 12, TO_DATE('09/14/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3,
8.5, 102);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(14, 2, 3, TO_DATE('03/04/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.1, 101.3);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(15, 2, 7, TO_DATE('11/15/2008 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
18, 101.2);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(16, 1, 1, TO_DATE('10/14/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
79, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(17, 3, 8, TO_DATE('10/14/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
16, 101.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(18, 1, 10, TO_DATE('10/12/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
19, 101.7);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(19, 3, 11, TO_DATE('09/14/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3,
12, 101.56);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(20, 2, 3, TO_DATE('06/14/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.5, 101.3);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(21, 2, 7, TO_DATE('12/04/2007 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
17.6, 101.2);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(22, 2, 3, TO_DATE('07/19/2007 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.1, 101.3);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(23, 2, 7, TO_DATE('12/20/2008 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
18, 101.2);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(24, 1, 1, TO_DATE('11/18/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
79, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(25, 3, 8, TO_DATE('11/18/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
16, 101.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(26, 1, 10, TO_DATE('11/16/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
19, 101.7);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(27, 3, 11, TO_DATE('10/19/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3,
12, 101.56);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(28, 2, 3, TO_DATE('08/19/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.5, 101.3);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(29, 2, 7, TO_DATE('12/20/2008 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
17.6, 101.2);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(30, 2, 3, TO_DATE('01/15/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.1, 100.68);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(31, 2, 7, TO_DATE('01/24/2009 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
18, 101.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(32, 1, 1, TO_DATE('12/23/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
79, 101.8);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(33, 3, 8, TO_DATE('12/23/2008 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
16, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(34, 1, 10, TO_DATE('12/21/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
19, 101.9);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(35, 3, 11, TO_DATE('11/23/2008 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3,
12, 101.76);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(36, 2, 3, TO_DATE('08/23/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.5, 101.5);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(37, 2, 7, TO_DATE('06/02/2008 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
17.6, 101.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(38, 3, 11, TO_DATE('01/02/2009 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3,
12.25, 101.36);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(39, 2, 3, TO_DATE('10/02/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.75, 101.1);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(40, 2, 7, TO_DATE('03/05/2009 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
17.85, 100.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(41, 2, 3, TO_DATE('12/22/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.35, 101.3);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(42, 2, 7, TO_DATE('05/22/2009 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
18.25, 101.2);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(43, 1, 1, TO_DATE('03/08/2009 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
79.25, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(44, 3, 8, TO_DATE('03/08/2009 19:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
16.25, 102.7);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(45, 1, 10, TO_DATE('03/06/2009 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
19.25, 101.7);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(46, 3, 11, TO_DATE('02/06/2009 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3,
12.25, 101.56);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(47, 2, 3, TO_DATE('11/06/2008 12:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
14.75, 103);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(48, 2, 7, TO_DATE('04/09/2009 20:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2,
17.85, 101.2);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(49, 1, 30, TO_DATE('10/06/2008 14:45:00', 'MM/DD/YYYY HH24:MI:SS'), 1,
44.5, 101);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(50, 2, 30, TO_DATE('11/09/2008 16:55:00', 'MM/DD/YYYY
47.6, 101);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(51, 3, 30, TO_DATE('11/03/2008 10:15:00', 'MM/DD/YYYY
47.4, 101.4);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(52, 3, 30, TO_DATE('11/10/2008 19:55:00', 'MM/DD/YYYY
46.3, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(53, 2, 28, TO_DATE('12/21/2008 17:35:00', 'MM/DD/YYYY
10.2, 101);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(54, 2, 29, TO_DATE('12/24/2008 19:15:00', 'MM/DD/YYYY
7.9, 101.1);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(55, 1, 30, TO_DATE('12/13/2008 07:45:00', 'MM/DD/YYYY
46.5, 101.6);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(57, 1, 30, TO_DATE('01/13/2009 07:45:00', 'MM/DD/YYYY
45.3, 101);
Insert into VET_APPT
(APPT_ID, VET_ID, ANIMAL_ID, APPT_DATE, APPT_TYPE,
WEIGHT, TEMPERATURE)
Values
(56, 2, 30, TO_DATE('01/14/2009 07:55:00', 'MM/DD/YYYY
46.2, 101.5);
COMMIT;
HH24:MI:SS'), 9,
HH24:MI:SS'), 4,
HH24:MI:SS'), 5,
HH24:MI:SS'), 8,
HH24:MI:SS'), 8,
HH24:MI:SS'), 9,
HH24:MI:SS'), 9,
HH24:MI:SS'), 9,
Download