SQL Online Quiz - 3

Tests fundamental SQL concepts including database structure, SELECT queries, JOINs, and SQL commands

8 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

SELF JOIN not allowed in

  1. Indexed view
  2. procedures
  3. triggers
  4. views
Question 2 Multiple Choice (Single Answer)

Which of the following do you need to consider when you make a table in SQL?

  1. Data types
  2. Primary keys
  3. Default values
  4. All of the above.
Question 3 Multiple Choice (Single Answer)

SQL query and modification commands make up a(n)

  1. DDL
  2. DML
  3. HTML
  4. XML
Question 4 Multiple Choice (Single Answer)

When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s

  1. LIKE only.
  2. IN only.
  3. NOT IN only.
  4. Both IN and NOT IN.
Question 5 Multiple Choice (Single Answer)

Find the SQL statement below that is equal to the following:
SELECT NAME FROM CUSTOMER WHERE STATE = 'VA';

  1. SELECT NAME IN CUSTOMER WHERE STATE IN ('VA');
  2. SELECT NAME IN CUSTOMER WHERE STATE = 'VA';
  3. SELECT NAME IN CUSTOMER WHERE STATE = 'V'
  4. SELECT NAME FROM CUSTOMER WHERE STATE IN ('VA');
Question 6 Multiple Choice (Single Answer)

On UPDATE CASCADE ensures which of the following

  1. Normalization
  2. Data Integrity
  3. Materialized Views
  4. All of the above
Question 7 Multiple Choice (Single Answer)

Which of the following statements is false?

  1. Tables contain one or more rows
  2. Rows contain one or more database of information
  3. Databases contain one or more tables
Question 8 Multiple Choice (Single Answer)

Which portion of a database system contains the actual data elements, such as the name, address, or a phone number for a particular person?

  1. Tables
  2. Columns
  3. Rows
  4. Databases