This commit is contained in:
Dan Buch 2012-02-11 12:58:40 -05:00
parent 02d0a5b41e
commit d7b4f60519
2 changed files with 21 additions and 0 deletions

14
ex3-myself.sql Normal file
View File

@ -0,0 +1,14 @@
INSERT INTO person (id, first_name, last_name, age)
VALUES (1, "Dan", "Buch", 31);
INSERT INTO pet (id, name, breed, age, dead)
VALUES (2, "Franny", "Dog", 14, 0);
INSERT INTO pet (id, name, breed, age, dead)
VALUES (3, "Zooey", "Cat", 7, 0);
INSERT INTO person_pet (person_id, pet_id)
VALUES (1, 2);
INSERT INTO person_pet (person_id, pet_id)
VALUES (1, 3);

7
ex3.sql Normal file
View File

@ -0,0 +1,7 @@
INSERT INTO person (id, first_name, last_name, age)
VALUES (0, "Zed", "Shaw", 37);
INSERT INTO pet (id, name, breed, age, dead)
VALUES (0, "Fluffy", "Unicorn", 1000, 0);
INSERT INTO pet VALUES (1, "Gigantor", "Robot", 1, 1);