Beginning SQL
Beginning SQL Beginning SQL
Appendix C VALUES ( 5, 3 ); INSERT INTO FavCategory ( CategoryId, MemberId ) VALUES ( 5, 4 ); Films Table 462 The SQL that you use to insert data into the Films table works on all five database systems. One point to note is that the film description for the film 15th Late Afternoon contains the word Shakespeare’’s — the second apostrophe tells the database systems that the first apostrophe isn’t the end of the text. The code to populate the Films table is contained in the download file called FilmsTable_Data.txt. INSERT INTO Films ( FilmId, FilmName, YearReleased, PlotSummary, AvailableOnDVD, Rating, CategoryId ) VALUES ( 1, ‘The Dirty Half Dozen’, 1987, ‘Six men go to war wearing unwashed uniforms. The horror!’, ‘N’, 2, 4 ); INSERT INTO Films ( FilmId, FilmName, YearReleased, PlotSummary, AvailableOnDVD,
- Page 914: Figure B-73 Setting Up and Using th
- Page 918: Query Analyzer allows you to enter
- Page 922: Figure B-77 Setting Up and Using th
- Page 926: Click the Execute icon and the tabl
- Page 930: From the Installation Type drop-dow
- Page 934: Figure B-83 Figure B-84 Setting Up
- Page 938: Figure B-86 You enter SQL queries i
- Page 942: C Initial Data Setup In Appendix B
- Page 946: ( 1, ‘Katie’, ‘Smith’, ‘1
- Page 950: Oracle ( 5, ‘John’, ‘Jones’
- Page 954: Email, DateOfJoining ) VALUES ( 3,
- Page 958: Street, City, State ) VALUES ( 1,
- Page 962: VALUES ( 2, 3 ); INSERT INTO FavCat
- Page 968: Appendix C 464 3 ); INSERT INTO Fil
- Page 972: Appendix C 5, 6 ); INSERT INTO Film
- Page 976: Appendix C 468 5 ); INSERT INTO Att
- Page 980: Appendix C Oracle 470 To save some
- Page 984: Appendix C 472 LocationId, MeetingD
- Page 990: Symbols + (addition operator), 82,
- Page 994: BEGIN TRANSACTION statement, 306, 3
- Page 998: SERIALIZABLE statement, 318 SET TRA
- Page 1002: data types brackets, 25 categories,
- Page 1006: Oracle concatenation, 85-88 configu
- Page 1010: error messages debugging, 26 subque
Appendix C<br />
VALUES<br />
(<br />
5,<br />
3<br />
);<br />
INSERT INTO FavCategory<br />
(<br />
CategoryId,<br />
MemberId<br />
)<br />
VALUES<br />
(<br />
5,<br />
4<br />
);<br />
Films Table<br />
462<br />
The <strong>SQL</strong> that you use to insert data into the Films table works on all five database systems. One point to<br />
note is that the film description for the film 15th Late Afternoon contains the word Shakespeare’’s —<br />
the second apostrophe tells the database systems that the first apostrophe isn’t the end of the text. The<br />
code to populate the Films table is contained in the download file called FilmsTable_Data.txt.<br />
INSERT INTO Films<br />
(<br />
FilmId,<br />
FilmName,<br />
YearReleased,<br />
PlotSummary,<br />
AvailableOnDVD,<br />
Rating,<br />
CategoryId<br />
)<br />
VALUES<br />
(<br />
1,<br />
‘The Dirty Half Dozen’,<br />
1987,<br />
‘Six men go to war wearing unwashed uniforms. The horror!’,<br />
‘N’,<br />
2,<br />
4<br />
);<br />
INSERT INTO Films<br />
(<br />
FilmId,<br />
FilmName,<br />
YearReleased,<br />
PlotSummary,<br />
AvailableOnDVD,