Home / CSE / Database System 2 - CS :: Introduction to SQL

CSE :: Database System 2 - CS

  1. The SQL keyword(s) ________ is used with wildcards.

  2. A.

     LIKE only

    B.

     IN only

    C.

     NOT IN only

    D.

     IN and NOT IN

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following is the correct order of keywords for SQL SELECT statements?

  4. A.

     SELECT, FROM, WHERE

    B.

     FROM, WHERE, SELECT

    C.

     WHERE, FROM,SELECT

    D.

     SELECT,WHERE,FROM

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. A subquery in an SQL SELECT statement is enclosed in:

  6. A.

     braces -- {...}.

    B.

     CAPITAL LETTERS.

    C.

     parenthesis -- (...) .

    D.

     brackets -- [...].

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The result of a SQL SELECT statement is a(n) ________ .

  8. A.

     report

    B.

     form

    C.

     file

    D.

     table

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  10. A.

     COUNT, SUM, AVG, MAX, MIN

    B.

     SUM, AVG, MIN, MAX, MULT

    C.

     SUM, AVG, MULT, DIV, MIN

    D.

     SUM, AVG, MIN, MAX, NAME

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. In an SQL SELECT statement querying a single table, according to the SQL-92 standard the asterisk (*) means that:

  12. A.

     all columns of the table are to be returned.

    B.

     all records meeting the full criteria are to be returned.

    C.

     all records with even partial criteria met are to be returned.

    D.

     None of the above is correct.

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The HAVING clause does which of the following?

  14. A.

     Acts like a WHERE clause but is used for groups rather than rows.

    B.

     Acts like a WHERE clause but is used for rows rather than columns.

    C.

     Acts like a WHERE clause but is used for columns rather than groups.

    D.

     Acts EXACTLY like a WHERE clause.

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The SQL -92 wildcards are ____ and ____ .

  16. A.

     asterisk (*); percent sign (%)

    B.

     percent sign (%); underscore (_)

    C.

     underscore(_); question mark (?)

    D.

     question mark (?); asterisk (*)

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier specified must be included.

  18. A.

     ONLY

    B.

     UNIQUE

    C.

     DISTINCT

    D.

     SINGLE

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The benefits of a standard relational language include which of the following?

  20. A.

     Reduced training costs

    B.

     Increased dependence on a single vendor

    C.

     Applications are not needed

    D.

     All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum