Up and Running with ALLBASE/SQL: HP 3000 and HP 9000 Computer Systems > Chapter 1 Very Basic...What Is a Relational Database? |
|
A relational database is a collection of data arranged in tables, also known as relations. Tables are subject to the following relational operations, each of which lets you retrieve data in a specific way:
In practice, these operations frequently appear together. SQL statements that use these operations are known as queries. Three queries that use the SQL SELECT statement to illustrate selection, projection, and joining are shown in Figure 1-1. When you look at data in relational terms, you can assume several things:
The following is a portion of a database table consisting of names and account balances for an employee credit union: Table 1-1 Employee Accounts
Notice that the third row contains a NULL value in the third column instead of a value for Telephone. Each column can accept data of a specific type and size. Here is the breakdown for the sample table above:
Data types are described further in chapter 2. You can put the same data into several different tables such as the following: Table 1-2 Employees Table
Table 1-3 Telephone Table
Table 1-4 Accounts Table
You decide which arrangements of data work best for you by using the processes of data analysis and database design. In data analysis, you investigate the various ways your data can be used. In database design, you create specific table structures based on your analysis. The design phase results in a set of table descriptions, sometimes known as a schema, for your database. Chapter 2 presents an introduction to data analysis and database design. |