GoConqr has a new look! Let us know what you think.

Quiz

QUIZ 3

Claudia Piscociu 15 questions

Take the quiz

Questions in this quiz (15)

  1. 1Evaluate this SELECT statement:
    SELECT *
    FROM employees
    WHERE department_id = 34
    OR department_id = 45
    OR department_id = 67;

    Which operator is the equivalent of the OR conditions used in this SELECT statement?
    1. ABETWEEN AND...
    2. BLIKE
    3. CIN
    4. DAND
  2. 2You attempt to query the database with this SQL statement:
    SELECT product_id "Product Number", category_id "Category", price "Price"
    FROM products
    WHERE "Category" = 5570
    ORDER BY "Product Number";

    This statement fails when executed. Which clause contains a syntax error?
    1. AFROM products
    2. BWHERE "Category" = 5570
    3. CORDER BY "Product Number";
    4. DSELECT product_id "Product Number", category_id "Category", price "price"
  3. 3Evaluate this SELECT statement:
    SELECT employee_id, last_name, first_name, salary 'Yearly Salary'
    FROM employees
    WHERE salary IS NOT NULL
    ORDER BY last_name, 3;

    Which clause contains an error?
    1. ASELECT employee_id, last_name, first_name, salary 'Yearly Salary'
    2. BWHERE salary IS NOT NULL
    3. CFROM employees
    4. DORDER BY last_name, 3;
  4. 4Evaluate this SQL statement:
    SELECT product_id, product_name, price
    FROM products
    ORDER BY product_name, price;

    What occurs when the statement is executed?
    1. AThe results are sorted alphabetically only.
    2. BThe results are sorted numerically and then alphabetically.
    3. CThe results are sorted alphabetically and then numerically.
    4. DThe results are sorted numerically only.
  5. 5A column alias can be specified in an ORDER BY Clause. True or False?
    1. ATrue
    2. BFalse
  6. 6You need to change the default sort order of the ORDER BY clause so that the data is displayed in reverse alphabetical order. Which keyword should you include in the ORDER BY clause?
    1. ADESC
    2. BCHANGE
    3. CASC
    4. DSORT
  7. 7Which statement about the logical operators is true?
    1. AThe order of operator precedence is NOT, AND, and OR.
    2. BThe order of operator precedence is AND, NOT, and OR.
    3. CThe order of operator precedence is AND, OR, and NOT.
    4. DThe order of operator precedence is NOT, OR, and AND.
  8. 8Which logical operator returns TRUE if either condition is true?
    1. AAND
    2. BOR
    3. CBOTH
    4. DNOT
  9. 9Which clause would you include in a SELECT statement to sort the rows returned by the LAST_NAME column?
    1. AFROM
    2. BORDER BY
    3. CHAVING
    4. DWHERE
  10. 10The ORDER BY clause always comes last. True or False?
    1. ATrue
    2. BFalse

Information

Description
Quiz on QUIZ 3, created by Claudia Piscociu on 14/01/2017.
Language
English
Views
3
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?