← All 1Z0-006 Flashcard Decks

Fundamental Database Concepts 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 Fundamental Database Concepts flashcards as text
  1. Which SQL clause filters rows AFTER a GROUP BY aggregation has been performed?

    Answer: HAVING

    HAVING filters groups produced by GROUP BY, whereas WHERE filters individual rows before grouping occurs.

  2. What does DCL (Data Control Language) consist of in SQL?

    Answer: GRANT and REVOKE statements

    DCL includes GRANT (to give privileges) and REVOKE (to remove privileges), controlling user access to database objects.

  3. Which type of JOIN returns all rows from the left table and matching rows from the right table, with NULLs for non-matching right rows?

    Answer: LEFT OUTER JOIN

    A LEFT OUTER JOIN returns all rows from the left table plus matching rows from the right table; unmatched right-table columns appear as NULL.

  4. What is data redundancy in a database, and why is it problematic?

    Answer: Storing the same data in multiple places; it leads to inconsistency and update anomalies

    Data redundancy means the same data is stored in multiple locations, causing update anomalies where changing one copy may leave other copies out of sync.

  5. In a relational database, what is a candidate key?

    Answer: Any minimal set of attributes that can uniquely identify a row

    A candidate key is any minimal superkey — a set of attributes that uniquely identifies rows, from which the primary key is chosen.

  6. What is the difference between DELETE and TRUNCATE in Oracle SQL?

    Answer: DELETE can be rolled back and fires triggers; TRUNCATE is DDL and cannot be easily rolled back

    DELETE is a DML statement that can be rolled back and fires row-level triggers, while TRUNCATE is DDL that bypasses rollback segments and is much faster.

  7. Which constraint ensures that a column value in one table matches a value in a specified column of another table?

    Answer: FOREIGN KEY constraint

    A FOREIGN KEY constraint enforces referential integrity by requiring that column values match existing values in the referenced parent table's column.