20.07.2013 Views

Beginning SQL

Beginning SQL

Beginning SQL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C<br />

5,<br />

6<br />

);<br />

INSERT INTO Films<br />

(<br />

FilmId,<br />

FilmName,<br />

YearReleased,<br />

PlotSummary,<br />

AvailableOnDVD,<br />

Rating,<br />

CategoryId<br />

)<br />

VALUES<br />

(<br />

2,<br />

‘Soylent Yellow’,<br />

1967,<br />

‘Detective Billy Brambles discovers that Soylent Yellow is made of soya bean.<br />

Ewwww!’,<br />

‘Y’,<br />

5,<br />

5<br />

);<br />

Attendance Table<br />

Again, because of the date issue, there are separate code listings for Oracle and non-Oracle systems.<br />

Database Systems Other Than Oracle<br />

466<br />

The download file AttendanceTable_Data.txt contains the following code:<br />

INSERT INTO Attendance<br />

(<br />

LocationId,<br />

MeetingDate,<br />

MemberAttended,<br />

MemberId<br />

)<br />

VALUES<br />

(<br />

2,<br />

‘2004-01-01’,<br />

‘Y’,<br />

1<br />

);<br />

INSERT INTO Attendance<br />

(

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!