SQL for Database Construction – General Questions

16. What SQL structure is used to limit column values of a table?

A. The LIMIT constraint
B. The CHECK constraint
C. The VALUE constraint
D. None of the above is correct.

Correct Answer:  B. The CHECK constraint
Advertisement

17. Which is NOT one of the most common types of SQL CHECK constraints?

A. System date
B. Range checks
C. Lists of values
D. Comparing one column value to another within the same table

Correct Answer:  A. System date
Advertisement

18. What is the advantage of placing computations in SQL views?

A. To save users from having to write an expression.
B. To ensure that the results are consistent.
C. To accomplish both of the above.
D. None of the above is correct – computations cannot be placed in a view.

Correct Answer:  C. To accomplish both of the above.
Advertisement

19. Views constructed from SQL SELECT statements that conform to the SQL-92 standard may not contain:

A. GROUP BY.
B. WHERE.
C. ORDER BY.
D. FROM.

Correct Answer:  C. ORDER BY.
Advertisement

Leave A Comment?