Databases Flashcards

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

1/18

flashcard set

Earn XP

Description and Tags

Flashcards about Relational Model & Introduction to SQL.

Last updated 9:45 AM on 5/10/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards

Relation

Two-dimensional table.

2
New cards

Tuples

The rows of a relation.

3
New cards

Attributes

The column headers of a relation.

4
New cards

Keys

Identifiers for a row of data

5
New cards

Schema for the relation

The name of a relation (table) and its set of attributes (column headers)

6
New cards

Database schema

The set of schemas for all relations (tables) in a design

7
New cards

Data Dictionary (Metadata)

Describes schema details and other database objects

8
New cards

Entity Integrity

Ensures each row has a unique identity, allowing foreign keys to reference primary keys correctly.

9
New cards

Referential Integrity

Prevents invalid foreign key values and ensures consistency between related tables.

10
New cards

Domain Integrity

Ensures data accuracy by restricting entries to a valid format.

11
New cards

Header-Details pattern

Avoids repeated order-level data by separating it from item-level data.

12
New cards

Data Definition Language (DDL)

Defines and modifies database structures.

13
New cards

Data Manipulation Language (DML)

Used to retrieve, insert, update, and delete data.

14
New cards

Transaction Control Language (TCL)

Manages transaction consistency within the database.

15
New cards

Data Control Language (DCL)

Controls user access to the database, including granting and revoking permissions.

16
New cards

What makes a relation valid?

A relation (table) is valid if it adheres to certain rules, namely, it must have a unique name, each attribute (column) must have a unique name within the relation, and each tuple (row) must be unique.

17
New cards

What are the rules for keys?

Keys must uniquely identify each tuple in the relation. A primary key cannot contain NULL values, ensuring entity integrity.

18
New cards

What is enforced by referential integrity?

Referential integrity ensures that relationships between tables remain consistent. Foreign key values must either match a primary key value in the related table or be NULL (if allowed), preventing orphaned records.

19
New cards

What is ensured by domain integrity?

Domain integrity ensures that each attribute contains only valid values from its defined domain, maintaining data accuracy and consistency.