Home
1.
Is there an overall standard for naming conventions for database objects such as tables and columns?

Although not necessary, a naming convention for database objects and data should be established within each organization and should be used consistently. Consistency in naming conventions make data more easily identifiable and data easier to manage in general.

2.
What are the six main categories of SQL commands?

  • Data Definition Language (DDL)
  • Data Manipulation Language (DML)
  • Data Query Language (DQL)
  • Data Control Language (DCL)
  • Data administration commands (DAC)
  • Transactional control commands (TCC)

3.
What are the four transactional control commands?

COMMIT
ROLLBACK
SAVEPOINT
SET TRANSACTIONS

4.
What is the main difference between client/server and web technologies as they relate to database access?

The connection to the database is the main difference. Using the client to connect means you log on to the server directly to access the database. When using the Web, you log on to the Internet to reach the database.

5.
If a field is defined as NULL, does something have to be entered into that field?

No. If a column is defined as NULL, nothing has to be in the column. If a column is defined as NOT NULL, something does have to be entered.

6.
True or false: An individual’s Social Security number, entered in the format '111111111', can be any of the following data types: constant length character, varying length character, or numeric.

True, as long as the precision is the correct length.

7.
True or false: The scale of a numeric value is the total length allowed for values.

False. The precision is the total length, where the scale represents the number of places reserved to the right of a decimal point.

8.
Do all implementations use the same data types?

No. Most implementations differ in their use of data types. The data types prescribed by ANSI are adhered to but might differ among implementations according to storage precautions taken by each vendor.

9.
What are the precision and scale of the following?
DECIMAL(4,2)
DECIMAL(10,2)
DECIMAL(14,1)

DECIMAL(4,2)—Precision = 4, scale = 2
DECIMAL(10,2)—Precision = 10, scale = 2
DECIMAL(14,1)—Precision = 14, scale = 1

10.
What is data?

Data is a collection of information stored in a database as one of several different data types