← All 1Z0-006 Flashcard Decks

Database Objects and Constraints 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 Database Objects and Constraints flashcards as text
  1. What is a view in Oracle Database?

    Answer: A named query stored in the database that behaves as a virtual table

    A view is a stored SELECT query that acts as a virtual table; it does not store data itself but derives results from underlying tables each time it is queried.

  2. Which pseudo-column retrieves the NEXT value from an Oracle sequence and increments the counter?

    Answer: sequence_name.NEXTVAL

    The NEXTVAL pseudo-column retrieves the next available value from a sequence and advances the sequence counter each time it is accessed.

  3. What does the CURRVAL pseudo-column of an Oracle sequence return?

    Answer: The most recently generated value from the sequence in the current session

    CURRVAL returns the most recently generated sequence value within the current session; NEXTVAL must be called at least once before CURRVAL can be referenced.

  4. Which clause in a CREATE VIEW statement ensures that INSERT and UPDATE operations through the view only affect rows the view can still select?

    Answer: WITH CHECK OPTION

    WITH CHECK OPTION ensures that any row inserted or updated through the view must satisfy the view's WHERE condition, preventing data from being modified outside the view's scope.

  5. Which CREATE VIEW clause prevents any INSERT, UPDATE, or DELETE operations through the view?

    Answer: WITH READ ONLY

    The WITH READ ONLY clause creates a view that blocks all DML operations, making the view strictly a read-only window into the underlying data.

  6. Which CREATE SEQUENCE option defines the lowest value a descending sequence can reach?

    Answer: MINVALUE

    The MINVALUE option sets the floor for a sequence; a descending sequence stops (or cycles) once it reaches this minimum value.

  7. Which of the following is a key advantage of using views in Oracle Database?

    Answer: Views can simplify complex queries and restrict user access to specific columns or rows

    Views simplify complex queries by encapsulating them as reusable named objects and can limit user exposure to only specific columns or rows of underlying tables, improving both usability and security.