logo

CuriousTab

CuriousTab

Discussion


Home Database Introduction to SQL Comments

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


  • Options
  • A. SELECT NAME IN CUSTOMER WHERE STATE IN ('VA');
  • B. SELECT NAME IN CUSTOMER WHERE STATE = 'VA';
  • C. SELECT NAME IN CUSTOMER WHERE STATE = 'V';
  • D. SELECT NAME FROM CUSTOMER WHERE STATE IN ('VA');

  • Correct Answer
  • SELECT NAME FROM CUSTOMER WHERE STATE IN ('VA'); 


  • Introduction to SQL problems


    Search Results


    • 1. Which of the following are the five built-in functions provided by SQL?

    • Options
    • A. COUNT, SUM, AVG, MAX, MIN
    • B. SUM, AVG, MIN, MAX, MULT
    • C. SUM, AVG, MULT, DIV, MIN
    • D. SUM, AVG, MIN, MAX, NAME
    • Discuss
    • 2. The SQL -92 wildcards are ____ and ____ .

    • Options
    • A. asterisk (*); percent sign (%)
    • B. percent sign (%); underscore (_)
    • C. underscore(_); question mark (?)
    • D. question mark (?); asterisk (*)
    • Discuss
    • 3. The wildcard in a WHERE clause is useful when?

    • Options
    • A. An exact match is necessary in a SELECT statement.
    • B. An exact match is not possible in a SELECT statement.
    • C. An exact match is necessary in a CREATE statement.
    • D. An exact match is not possible in a CREATE statement.
    • Discuss
    • 4. ON UPDATE CASCADE ensures which of the following?

    • Options
    • A. Normalization
    • B. Data Integrity
    • C. Materialized Views
    • D. All of the above.
    • Discuss
    • 5. The Microsoft Access wildcards are ____ and ____ .

    • Options
    • A. asterisk (*); percent sign (%)
    • B. percent sign (%); underscore (_)
    • C. underscore(_); question mark (?)
    • D. question mark (?); asterisk (*)
    • Discuss
    • 6. Which of the following is valid SQL for an Index?

    • Options
    • A. CREATE INDEX ID;
    • B. CHANGE INDEX ID;
    • C. ADD INDEX ID;
    • D. REMOVE INDEX ID;
    • Discuss
    • 7. To sort the results of a query use:

    • Options
    • A. SORT BY.
    • B. GROUP BY.
    • C. ORDER BY.
    • D. None of the above is correct.
    • Discuss
    • 8. The benefits of a standard relational language include which of the following?

    • Options
    • A. Reduced training costs
    • B. Increased dependence on a single vendor
    • C. Applications are not needed.
    • D. All of the above.
    • Discuss
    • 9. Which of the following do you need to consider when you make a table in SQL?

    • Options
    • A. Data types
    • B. Primary keys
    • C. Default values
    • D. All of the above.
    • Discuss
    • 10. Which of the following is the correct order of keywords for SQL SELECT statements?

    • Options
    • A. SELECT, FROM, WHERE
    • B. FROM, WHERE, SELECT
    • C. WHERE, FROM,SELECT
    • D. SELECT,WHERE,FROM
    • Discuss


    Comments

    There are no comments.

Enter a new Comment