SQL for Database Construction – General Questions

1. The SQL command to create a table is:

A. MAKE TABLE.
B. ALTER TABLE.
C. DEFINE TABLE.
D. CREATE TABLE.

Correct Answer:  D. CREATE TABLE
Advertisement

2. A ________ is a stored program that is attached to a table or a view.

A. pseudofile
B. embedded SELECT statement
C. trigger
D. None of the above is correct.

Correct Answer:  C. trigger
Advertisement

3. The DROP TABLE statement:

A. deletes the table structure only.
B. deletes the table structure along with the table data.
C. works whether or not referential integrity constraints would be violated.
D. is not an SQL statement.

Correct Answer:  B. deletes the table structure along with the table data.
Advertisement

4. SQL views can be used to hide:

A. columns and rows only.
B. complicated SQL syntax only.
C. both of the above can be hidden by an SQL view.
D. None of the above is correct.

Correct Answer:  C. both of the above can be hidden by an SQL view.
Advertisement

5. The SQL statement to create a view is:

A. CREATE VIEW.
B. MAKE VIEW.
C. SELECT VIEW.
D. INSERT VIEW.

Correct Answer:  A. CREATE VIEW.
Advertisement

Leave A Comment?