โ† All 1Z0-006 Flashcard Decks

Basic SQL Statements Flashcards

7 cards from real 1Z0-006 practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Basic SQL Statements flashcards as text
  1. In Oracle SQL, which pseudo-table is used when you want to SELECT an expression or function without referencing a real table?

    Answer: DUAL

    DUAL is a special one-row, one-column dummy table in Oracle used to evaluate expressions that don't require a real table.

  2. What does the BETWEEN operator include in its range?

    Answer: Both the lower and upper bounds

    BETWEEN x AND y is inclusive; it matches values greater than or equal to x AND less than or equal to y.

  3. Which of the following correctly inserts a row with specific column values?

    Answer: INSERT INTO EMPLOYEES VALUES (101, 'Ana');

    The correct Oracle syntax is INSERT INTO table_name [(columns)] VALUES (values).

  4. What is a column alias in SQL?

    Answer: A temporary label given to a column in the query result

    A column alias (using AS or a space) gives a temporary name to the column in the output without changing the underlying table.

  5. Which SQL function converts a string to uppercase?

    Answer: UPPER

    UPPER(string) returns the string with all characters converted to uppercase letters.

  6. What does SELECT * FROM employees WHERE salary IS NULL return?

    Answer: Rows where salary has no value stored

    IS NULL tests for the absence of a value; it returns rows where the salary column has no stored value.

  7. Which clause is required in every valid SELECT statement in Oracle?

    Answer: FROM

    Every SELECT statement requires a FROM clause to specify the data source (though DUAL can be used for expression-only queries).