Database Basics Flashcards
7 cards from real Web Development 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 Basics flashcards as text
Which SQL clause filters rows AFTER aggregation has been applied?
Answer: HAVING
HAVING filters grouped/aggregated results, whereas WHERE filters individual rows before grouping.
What does the term 'cardinality' refer to in a database relationship?
Answer: The number of related records between two entities
Cardinality describes how many instances of one entity relate to instances of another (one-to-one, one-to-many, many-to-many).
Which isolation level prevents dirty reads but still allows non-repeatable reads?
Answer: Read Committed
Read Committed prevents dirty reads by only reading committed data but allows non-repeatable reads if another transaction commits between reads.
What is a composite key?
Answer: A key made up of two or more columns
A composite key uses two or more columns together to uniquely identify a row in a table.
Which type of JOIN returns only rows where there is a match in BOTH tables?
Answer: INNER JOIN
INNER JOIN returns only the rows that have matching values in both joined tables.
What does DDL stand for in SQL?
Answer: Data Definition Language
DDL (Data Definition Language) includes commands like CREATE, ALTER, and DROP that define database structure.
Which normal form eliminates transitive dependencies?
Answer: 3NF
Third Normal Form (3NF) requires that non-key columns depend only on the primary key, eliminating transitive dependencies.
How this page was made: written with AI tools. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy