20.07.2013 Views

Beginning SQL

Beginning SQL

Beginning SQL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The box in the middle of the screen shows a list of possible database objects, such as tables, queries,<br />

forms, reports, and so on. Currently the Tables tab is selected and the list of tables in the database is<br />

shown, which at the moment contains no tables. You can create a new table by ensuring that the Tables<br />

tab is selected and then clicking the New icon in the Tables tab. Because this book is all about <strong>SQL</strong>, this<br />

appendix shows you how to use <strong>SQL</strong> to create a table. To enter <strong>SQL</strong> queries and code, you must click on<br />

the Queries tab and then double-click the Create Query in Design View option, which causes the screen<br />

shown in Figure B-55 to be displayed:<br />

Figure B-55<br />

Setting Up and Using the Five Database Systems<br />

Click Close to clear the dialog box. Now the view currently displayed is the MS Access Query Design<br />

view. To enter <strong>SQL</strong> code, you need to switch to the <strong>SQL</strong> Editor view. From the Design view, this can be<br />

achieved by either clicking the <strong>SQL</strong> icon on the far left of the toolbar or selecting the <strong>SQL</strong> View option<br />

from the View menu. Once you’ve switched to <strong>SQL</strong> view, a textbox is displayed (see Figure B-56) where<br />

you can enter <strong>SQL</strong> code:<br />

425

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

Saved successfully!

Ooh no, something went wrong!