logo

CuriousTab

CuriousTab

Discussion


Home Database Introduction to SQL Comments

  • Question
  • 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.

  • Correct Answer
  • All of the above. 


  • Introduction to SQL problems


    Search Results


    • 1. 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
    • 2. 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
    • 3. 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
    • 4. 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');
    • Discuss
    • 5. 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
    • 6. 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
    • 7. The SQL keyword(s) ________ is used with wildcards.

    • Options
    • A. LIKE only
    • B. IN only
    • C. NOT IN only
    • D. IN and NOT IN
    • Discuss
    • 8. To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier specified must be included.

    • Options
    • A. ONLY
    • B. UNIQUE
    • C. DISTINCT
    • D. SINGLE
    • Discuss
    • 9. The HAVING clause does which of the following?

    • Options
    • 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.
    • Discuss
    • 10. SQL is:

    • Options
    • A. a programming language.
    • B. an operating system.
    • C. a data sublanguage.
    • D. a DBMS.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment