Beginning SQL
Beginning SQL Beginning SQL
Appendix B 442 Figure B-78 Chapter 1 already contains all the SQL for adding tables to the example database, and Chapter 2 covers how to insert data. This appendix simply demonstrates how to create one new table, add two rows to it, and then delete the table. Don’t worry if the SQL itself doesn’t make sense; it does once you’ve read Chapters 1 through 3. Some commands, such as CREATE DATABASE, affect the database system rather than a particular database. However, nearly all of the SQL in this book is aimed at the Film Club database. To ensure that queries are executed against the Film Club database, you can either select Film Club from the dropdown menu in the middle of the toolbar or type and execute the following command: USE FILMCLUB; Type the following statement into the large textbox at the top of the Query Browser: CREATE TABLE MyTable (MyColumn int)
- Page 874: Figure B-45 Figure B-46 Setting Up
- Page 878: Figure B-48 Setting Up and Using th
- Page 882: Figure B-50 You must reconnect to t
- Page 886: You can see that DB2 automatically
- Page 890: The box in the middle of the screen
- Page 894: If you select MyTable from the list
- Page 898: Installing and Using Microsoft SQL
- Page 902: Figure B-63 What you enter here is
- Page 906: Click Next to continue. Figure B-67
- Page 910: Although it’s not strictly essent
- 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 928: Appendix B You don’t need MyTable
- Page 932: Appendix B 446 Figure B-82 To begin
- Page 936: Appendix B Using Oracle’s SQL*Plu
- Page 940: Appendix B 450 Figure B-87 Another
- Page 944: Appendix C Category Table The follo
- Page 948: Appendix C 454 ( 3, ‘Sandra’,
- Page 952: Appendix C 456 ZipCode, Email, Date
- Page 956: Appendix C DateOfJoining ) VALUES (
- Page 960: Appendix C 460 VALUES ( 1, 3 ); INS
- Page 964: Appendix C VALUES ( 5, 3 ); INSERT
- Page 968: Appendix C 464 3 ); INSERT INTO Fil
- Page 972: Appendix C 5, 6 ); INSERT INTO Film
Appendix B<br />
442<br />
Figure B-78<br />
Chapter 1 already contains all the <strong>SQL</strong> for adding tables to the example database, and Chapter 2 covers<br />
how to insert data. This appendix simply demonstrates how to create one new table, add two rows to it,<br />
and then delete the table. Don’t worry if the <strong>SQL</strong> itself doesn’t make sense; it does once you’ve read<br />
Chapters 1 through 3.<br />
Some commands, such as CREATE DATABASE, affect the database system rather than a particular<br />
database. However, nearly all of the <strong>SQL</strong> in this book is aimed at the Film Club database. To ensure that<br />
queries are executed against the Film Club database, you can either select Film Club from the dropdown<br />
menu in the middle of the toolbar or type and execute the following command:<br />
USE FILMCLUB;<br />
Type the following statement into the large textbox at the top of the Query Browser:<br />
CREATE TABLE MyTable (MyColumn int)