Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix ex13.

  • Loading branch information...
commit 6fa0b426ac190ab8b3207a4da5b2b8fe07493de1 1 parent a40b18f
@zedshaw zedshaw authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  code/ex13.sh-session
  2. +1 −1  ex13.tex
View
3  code/ex13.sh-session
@@ -15,6 +15,7 @@ CREATE TABLE pet (
name TEXT,
breed TEXT,
age INTEGER,
- dead INTEGER
+ dead INTEGER,
+ dob DATETIME
);
View
2  ex13.tex
@@ -28,7 +28,7 @@ \section{The Assignment}
\item Add a \ident{salary} column to \ident{person} that is \ident{float}.
\item Add a \ident{dob} column to both \ident{person} and \ident{pet} that is a \ident{DATETIME}.
\item Add a \ident{purchased\_on} column to \ident{person\_pet} of type \ident{DATETIME}.
-\item Add a \ident{parent} column that's an \ident{INTEGER} and holds the \ident{id}
+\item Add a \ident{parent} to \ident{pet} column that's an \ident{INTEGER} and holds the \ident{id}
for this pet's parent.
\item Update the existing database records with the new column data using \ident{UPDATE} statements. Don't forget about the \ident{purchased\_on} column in \ident{person\_pet} relation table to indicate when that person bought the pet.
\item Add 4 more people and 5 more pets and assign their ownership and what pet's
Please sign in to comment.
Something went wrong with that request. Please try again.