19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

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.

11.1 AN INTRODUCTION TO DATABASES<br />

The management of databases is the number one use of computers today. Airlines use databases<br />

to h<strong>and</strong>le nearly 1.5 billion passenger reservations per year. The 6500 hospitals in the United<br />

States use databases to document the care of over 30 million patients per year. Banks in the<br />

United States use databases to monitor the use of 350 million credit cards. Although databases<br />

vary considerably in size <strong>and</strong> complexity, most of them adhere to the fundamental principles<br />

of design discussed in this chapter. That is, they are composed of a collection of interrelated<br />

tables.<br />

A table is a rectangular array of data. Table 11.1 provides information about large cities.<br />

Each column of the table, called a field, contains the same type of information. (The third<br />

column gives the 1995 population in millions <strong>and</strong> the fourth column gives the projected 2015<br />

population in millions.) The names of the fields are city, country, pop1995, <strong>and</strong> pop2015.<br />

Each row, called a record, contains the same type of information as every other row. Also,<br />

the pieces of information in each row are related; they all apply to a specific city. Table 11.2,<br />

Countries, has three fields <strong>and</strong> nine records.<br />

TABLE 11.1<br />

Cities<br />

city country pop1995 pop2015<br />

Beijing China 12.4 19.4<br />

Bombay India 15.1 27.4<br />

Calcutta India 11.7 17.6<br />

Los Angeles USA 12.4 14.3<br />

Mexico City Mexico 15.6 18.8<br />

New York USA 16.3 17.6<br />

Sao Paulo Brazil 16.4 20.8<br />

Shanghai China 15.1 23.4<br />

Tianjin China 10.7 17.0<br />

Tokyo Japan 26.8 28.7<br />

323

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

Saved successfully!

Ooh no, something went wrong!