Chapter 1: An introduction to relational databases and SQL

advertisement
Chapter 1: An introduction to relational databases and SQL
COMPLETION
1. The three main hardware components of a client/server system are the clients, the server, and the
__________________________________.
2. To retrieve or update the data in a database, the client sends a/an _____________________ to the
database.
3. A relational database consists of one or more __________________.
4. A/An _______________________ uniquely identifies each row in a table.
5. The intersection of a row and a column is commonly called a/an ____________________.
6. To relate one table to another, a/an _______________________ in one table is used to point to the
primary key in another table.
7. The most common type of relationship between two tables is a/an _______________________
relationship.
8. When a column in a table is defined, it is given a data ________________ that determines what kind
of data it can store.
9. The extension to the SQL language that Oracle Database offers is called _______________________.
10. SQL statements that define the tables in a database are referred to as _____________________
statements.
11. Insert, Update, and Delete statements can be referred to as _________________ queries.
12. A view is a SELECT statement that is stored with the __________________.
MULTIPLE CHOICE
1. The processing that’s done by the DBMS is typically referred to as
a. front-end processing
b. back-end processing
c. the file server
d. the user interface
2. The interface between an application program and the DBMS is usually provided by the
a. back end
b. front end
c. data access API
d. programmer
3. If you define a column with a default value, that value is used whenever a row
a.
b.
c.
d.
is added to the table
in the table is updated
that doesn’t include a value for that column is added to the table
with a zero value for that column is added to the table
4. Which of the following types of SQL statements isn’t a DML statement?
a. Insert
b. Update
c. Select
d. Create Table
5. Which of the following types of statements isn’t an action query?
a. Select
b. Insert
c. Update
d. Delete
6. Which of the following recommendations won’t improve the readability of your SQL statements?
a.
b.
c.
d.
Break long clauses into multiple lines.
Use comments to describe what each statement does.
Start each clause on a new line.
Indent continued lines.
7. Which of the following isn’t true about a stored procedure?
a. A stored procedure is compiled each time that it is executed.
b. A stored procedure is stored in the database.
c. A stored procedure can include both SQL and PL/SQL statements.
8. A database driver is software that lets the
a.
b.
c.
d.
data access model communicate with the application program
data access model communicate with the database
application program communicate with the data access model
application program communicate with the database
Download