DBMS Oral Exam Review Flashcards

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/47

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards generated from the lecture transcript and diagrams covering DBMS concepts, relational theory, SQL/QBE, indexing, query execution, concurrency control, crash recovery, and database design.

Last updated 4:53 PM on 9/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

48 Terms

1
New cards
<p>Three Levels of Data Abstraction</p>

Three Levels of Data Abstraction

The database architecture consisting of the Physical Level (physical schema), Conceptual Level (logical schema), and View Level, which provides logical and physical data independence.

2
New cards
<p>DBMS Layered Architecture</p>

DBMS Layered Architecture

The architectural structure of a DBMS containing layers for Query Optimization and Execution, Relational Operators, Files and Access Methods, Buffer Management, and Disk Space Management.

3
New cards
<p>Basic SQL Query Syntax</p>

Basic SQL Query Syntax

The fundamental structure of an SQL query consisting of SELECT [DISTINCT] target-list, FROM relation-list, and WHERE qualification.

4
New cards
<p>SQL Division via EXCEPT / NOT EXISTS</p>

SQL Division via EXCEPT / NOT EXISTS

An SQL query technique used to express division or universal quantification by combining subqueries with NOT EXISTS and EXCEPT clauses.

5
New cards
<p>SQL GROUP BY Clause Syntax</p>

SQL GROUP BY Clause Syntax

The SQL query structure incorporating SELECT, FROM, WHERE, GROUP BY grouping-list, and HAVING group-qualification to partition tuples into groups for aggregate evaluation.

6
New cards
<p>ISAM (Index Sequential Access Method)</p>

ISAM (Index Sequential Access Method)

A static tree index structure composed of non-leaf index pages pointing to sequentially ordered leaf pages, utilizing overflow pages when leaf pages fill up.

7
New cards
<p>B+ Tree Index</p>

B+ Tree Index

A dynamic, balanced tree index structure composed of Root, Internal, and Leaf nodes that adjusts dynamically to insertions and deletions to remain balanced.

8
New cards
<p>Static Hashing</p>

Static Hashing

A index structure where key values are mapped to primary bucket pages using a hash function h(key) mod Nh(\text{key}) \bmod N, which can lead to long overflow chains when pages fill up.

9
New cards
<p>Extendible Hashing</p>

Extendible Hashing

A dynamic hashing scheme that uses a directory with a Global depth and data buckets with Local depths to avoid overflow pages by splitting buckets and doubling the directory when needed.

10
New cards
<p>Linear Hashing</p>

Linear Hashing

A dynamic hashing scheme that manages bucket growth using a pointer 'Next' to split buckets sequentially one by one without needing a centralized directory.

11
New cards
<p>Left-Deep vs. Bushy Join Trees</p>

Left-Deep vs. Bushy Join Trees

Comparison of relational operator trees where left-deep trees restrict joins to a base table and an intermediate result to allow pipelining, while bushy trees allow joins between two sub-results.

12
New cards
<p>Reading Uncommitted Data (WR Conflict)</p>

Reading Uncommitted Data (WR Conflict)

An execution anomaly (dirty read) where transaction T2T_2 reads a data object modified by transaction T1T_1 before T1T_1 has committed or aborted.

13
New cards
<p>Dependency Graph</p>

Dependency Graph

A directed graph with nodes representing active transactions and edges representing conflicting access operations, used to detect deadlocks or test for conflict serializability.

14
New cards
<p>Unrepeatable Read (RW Conflict)</p>

Unrepeatable Read (RW Conflict)

An execution anomaly where transaction T2T_2 modifies or updates an object that has been read by transaction T1T_1 while T1T_1 is still active.

15
New cards
<p>Overwriting Uncommitted Data (WW Conflict)</p>

Overwriting Uncommitted Data (WW Conflict)

An execution anomaly where transaction T2T_2 overwrites the value of an object that has already been modified by transaction T1T_1 before T1T_1 commits.

16
New cards

Database Management System (DBMS)

Software designed to assist in maintaining and utilizing a large collection of data, providing a convenient and efficient way to store and retrieve database information.

17
New cards

Data Model

A collection of high-level data description constructs that hide low-level storage details, providing tools to describe data, relationships, semantics, and consistency constraints.

18
New cards

Data Independence

The property of a DBMS allowing schemas (physical or logical) to be modified without affecting higher-level applications or abstract views.

19
New cards

Transaction

An execution of a user program in a DBMS representing the basic, atomic sequence of database actions (reads and writes) that cannot be divided further.

20
New cards

Integrity Constraint (IC)

A condition specified on a database schema that restricts the valid data instances that can be stored in the database.

21
New cards

Primary Key

A candidate key selected by the database designer as the principal means of uniquely identifying tuples within a relation.

22
New cards

Foreign Key

A set of fields in one relation used to refer to a tuple in another relation by matching its primary key.

23
New cards

Referential Integrity

A constraint ensuring that every value of a foreign key matches an existing primary key value in the referenced relation.

24
New cards

Relational Algebra

A formal query language with operational building blocks that take one or more relations as input and produce a relation as output.

25
New cards

Selection (σ\sigma)

A basic relational algebra operation that selects a subset of rows from a relation that satisfy a given condition.

26
New cards

Projection (π\pi)

A basic relational algebra operation that selects specified columns from a relation and eliminates duplicate rows.

27
New cards

Natural Join

An equijoin over all common attributes of two relations where duplicate common attribute columns are removed.

28
New cards

Relational Calculus

A declarative formal query language based on mathematical logic, available as Tuple Relational Calculus (TRC) or Domain Relational Calculus (DRC).

29
New cards

Unsafe Query

A syntactically valid calculus query that produces an infinite number of answer tuples.

30
New cards

Relational Completeness

The capability of a query language to express any query that can be expressed in relational algebra or relational calculus.

31
New cards

Nested Query

A query that contains another subquery embedded within its WHERE or HAVING clauses.

32
New cards

Trigger

A database procedure executed automatically when specified modification events occur, composed of an Event, Condition, and Action.

33
New cards

Search Key

A set of attributes used to look up and locate records within a data file.

34
New cards

Clustered Index

An index where the physical order of stored data records matches or closely matches the order of data entries in the index.

35
New cards

Access Method

A technique used by a DBMS to retrieve data records from storage based on a query condition, such as file scans, tree indexes, or hash indexes.

36
New cards

External Merge Sort Cost

The I/O performance metric for sorting NN pages using BB buffer pages, evaluated as 2N×(1+⌉logB−1(N/B)⌉)2N \times (1 + \rceil \text{log}_{B-1}(N / B) \rceil) I/O operations.

37
New cards

Conflict Serializable Schedule

A schedule that is conflict equivalent to some serial schedule, characterized by an acyclic dependency graph.

38
New cards

Strict 2PL Protocol

A locking protocol where transactions obtain Shared locks for reads and Exclusive locks for writes, holding all locks until the transaction commits.

39
New cards

Optimistic Concurrency Control

A lock-free concurrency control method (Kung-Robinson) where transactions execute across three phases: READ, VALIDATE, and WRITE.

40
New cards

ACID Properties

The four defining properties of database transactions: Atomicity, Consistency, Isolation, and Durability.

41
New cards

Write-Ahead Logging (WAL) Protocol

A protocol ensuring durability and atomicity by requiring update log records to be written to disk before corresponding data pages, and all log records to be written before transaction commit.

42
New cards

Functional Dependency (FD)

A constraint X→YX \rightarrow Y stating that if two tuples in a relation agree on attribute set XX, they must also agree on attribute set YY.

43
New cards

Armstrong's Axioms

A sound and complete set of inference rules for FDs: Reflexivity (if Y \ref X, then X→YX \rightarrow Y), Augmentation (if X→YX \rightarrow Y, then XZ→YZXZ \rightarrow YZ), and Transitivity (if X→YX \rightarrow Y and Y→ZY \rightarrow Z, then X→ZX \rightarrow Z).

44
New cards

Boyce-Codd Normal Form (BCNF)

A strict normal form where for every non-trivial functional dependency X→AX \rightarrow A, the determinant XX must be a superkey.

45
New cards

Third Normal Form (3NF)

A normal form where for every functional dependency X→AX \rightarrow A, either the dependency is trivial, XX is a superkey, or AA is a prime attribute.

46
New cards

Lossless-Join Decomposition

A relation decomposition into sub-relations XX and YY ensuring that joining their projections produces the exact original relation without extra spurious tuples: πX(R)⋈πY(R)=R\text{π}_X(R) \bowtie \text{π}_Y(R) = R.

47
New cards

Dependency Preserving Decomposition

A decomposition of a relation schema where all functional dependencies in the original set F+F^+ can be enforced using only the functional dependencies of the decomposed relations.

48
New cards

Minimal Cover

A simplified, equivalent set of functional dependencies where each FD has a single RHS attribute and contains no redundant FDs or extra attributes on the LHS.