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 B<br />

If you’re ready and happy with the options chosen, pull up a comfy seat, grab a magazine, click the<br />

Install button, and wait while DB2 installs. If everything goes fine, you should see the screen depicted in<br />

Figure B-44:<br />

Figure B-44<br />

Click Finish, and installation is now complete and the IBM First Steps screen appears with helpful tutorials<br />

and sample databases. The next section introduces the Command Center tool and creates the Film<br />

Club database.<br />

Using the Command Center Tool<br />

416<br />

To create this book’s example database and run the examples, you need to use the Command Center<br />

tool. Having installed DB2, you can access the Command Center by clicking Start ➪ Programs ➪ IBM<br />

DB2 ➪ Command Line Tools, as shown in Figure B-45:<br />

Once the program is loaded, you should see the screen depicted in Figure B-46:<br />

There are 4 tabs near the middle of the screen, and by default the program loads up with the Script tab<br />

selected. The Script tab allows more than one <strong>SQL</strong> statement to be executed at once. Each statement<br />

must be separated by a semicolon at the end of the statement. You can load files of <strong>SQL</strong> statements into<br />

the Script textbox, edit them, and then execute them by either clicking the Execute icon in the toolbar<br />

(the icon on the far left that looks like two cogs next to each other) or choosing Execute from the Script<br />

menu.

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

Saved successfully!

Ooh no, something went wrong!