Common Database Objects Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering SQL Statements

What you'll be asked

  1. Which SQL statement is used to create a new table in a relational database?
  2. You need to retrieve data from a table while ensuring that only unique values are returned. Which keyword should you use?
  3. When modifying an existing table to add a new column, which SQL command is appropriate?
  4. What is the primary purpose of a View in a SQL database?
  5. You are designing a database and need to ensure that a specific column cannot contain NULL values and must contain unique entries across all rows. Which combination of constraints should you apply?

Answers and explanations come after you submit.