logo

CuriousTab

CuriousTab

SQL for Database Construction problems


  • 1. SQL views can be used to hide:

  • Options
  • 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.
  • Discuss
  • 2. A ________ is a stored program that is attached to a table or a view.

  • Options
  • A. pseudofile
  • B. embedded SELECT statement
  • C. trigger
  • D. None of the above is correct.
  • Discuss
  • 3. When using the SQL INSERT statement:

  • Options
  • A. rows can be modified according to criteria only.
  • B. rows cannot be copied in mass from one table to another only.
  • C. rows can be inserted into a table only one at a time only.
  • D. rows can either be inserted into a table one at a time or in groups.
  • Discuss
  • 4. The SQL ALTER statement can be used to:

  • Options
  • A. change the table structure.
  • B. change the table data.
  • C. add rows to the table.
  • D. delete rows from the table.
  • Discuss
  • 5. Which is NOT one of the most common types of SQL CHECK constraints?

  • Options
  • A. System date
  • B. Range checks
  • C. Lists of values
  • D. Comparing one column value to another within the same table
  • Discuss
  • 6. What is an advantage of placing computations in SQL views?

  • Options
  • 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.
  • Discuss
  • 7. The SQL command to create a table is:

  • Options
  • A. MAKE TABLE.
  • B. ALTER TABLE.
  • C. DEFINE TABLE.
  • D. CREATE TABLE.
  • Discuss
  • 8. A reason for using an SQL view to hide columns is:

  • Options
  • A. to simplify a result only.
  • B. to prevent the display of sensitive data only.
  • C. to accomplish both of the above.
  • D. None of the above are reasons for using an SQL view.
  • Discuss
  • 9. What SQL structure is used to limit column values of a table?

  • Options
  • A. The LIMIT constraint
  • B. The CHECK constraint
  • C. The VALUE constraint
  • D. None of the above is correct.
  • Discuss
  • 10. A view that contains a computed column can be easily updated.

  • Options
  • A. True
  • B. False
  • Discuss

First 2 3 4