30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

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.

Chapter 19 Database, SQL and ADO .<strong>NET</strong> 891<br />

authorID firstName lastName<br />

6 Ted Lin<br />

7 Praveen Sadhu<br />

8 David McPhie<br />

9 Cheryl Yaeger<br />

10 Marina Zlatkina<br />

11 Ben Wiedermann<br />

12 Jonathan Liperi<br />

Fig. 19.4 Data from the Authors table of Books (part 2 of 2).<br />

The Publishers table (Fig. 19.5) consists of two fields, representing each publisher’s<br />

unique ID and name. Figure 19.6 contains the data from the Publishers table<br />

of the Books database.<br />

The AuthorISBN table (Fig. 19.7) consists of two fields, which maintain ISBN numbers<br />

for each book and their corresponding authors’ ID numbers. This table helps associate<br />

the names of the authors with the titles of their books. Figure 19.8 contains the data from<br />

the AuthorISBN table of the Books database. ISBN is an abbreviation for “International<br />

Standard Book Number”—a numbering scheme by which publishers worldwide give every<br />

book a unique identification number. [Note: To save space, we have split the contents of<br />

this figure in<strong>to</strong> two columns, each containing the authorID and isbn fields.]<br />

Field Description<br />

publisherID The publisher’s ID number in the database. This au<strong>to</strong>-incremented<br />

Integer field is the table’s primary-key field.<br />

publisherName The name of the publisher (a String).<br />

Fig. 19.5 Publishers table from Books.<br />

publisherID publisherName<br />

1 Prentice Hall<br />

2 Prentice Hall PTG<br />

Fig. 19.6 Data from the Publishers table of Books.

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

Saved successfully!

Ooh no, something went wrong!