box-o-sand/lsqlthw-remnants/ex2.sql
Dan Buch c076df41c6 Add 'lsqlthw-remnants/' from commit '45ac55d14c734fb12e130efc80476325866c4cb7'
git-subtree-dir: lsqlthw-remnants
git-subtree-mainline: 01e5a4e45f
git-subtree-split: 45ac55d14c
2013-01-09 23:47:55 -05:00

20 lines
298 B
SQL

CREATE TABLE person (
id INTEGER PRIMARY KEY,
first_name TEXT,
last_name TEXT,
age INTEGER
);
CREATE TABLE pet (
id INTEGER PRIMARY KEY,
name TEXT,
breed TEXT,
age INTEGER,
dead INTEGER
);
CREATE TABLE person_pet (
person_id INTEGER,
pet_id INTEGER
);