Database Management System - SE III

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/84

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering core DBMS concepts from ER models to SQL and DBMS architecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

85 Terms

1
New cards

Schema

The overall design of a database, describing its structure, organization, and constraints (tables, columns, data types, relationships).

2
New cards

Database

A logically coherent collection of data and its meaning, managed and accessed by a DBMS.

3
New cards

Entity

An object in the real world that exists distinctly and is represented in a database.

4
New cards

Entity Set

A collection of entities of the same type that share the same properties.

5
New cards

Instance

The actual content (data) of a database at a particular point in time.

6
New cards

Physical Data Independence

The ability to change the physical storage of data without changing the logical schema.

7
New cards

Data Dictionary

Metadata about data, including definitions, schemas, and constraints; often stored as system catalogues.

8
New cards

Database Administrator (DBA)

A person who has central control over the DBMS, including configuration, security, and performance tuning.

9
New cards

Data Abstraction

Hiding the complexity of data from users by presenting different levels: physical, logical, and view.

10
New cards

Physical Level

The lowest level of data abstraction describing how data are actually stored on disk.

11
New cards

Logical Level

The level describing what data are stored in the database and how they are related.

12
New cards

View Level

The highest level providing user-defined views of the database, often a subset of data.

13
New cards

Data Independence

The ability to change the database schema at one level without affecting other levels or programs.

14
New cards

DDL (Data Definition Language)

SQL commands that define or modify the database schema (e.g., CREATE, ALTER, DROP, RENAME, TRUNCATE).

15
New cards

DML (Data Manipulation Language)

SQL commands that retrieve and modify data (e.g., SELECT, INSERT, UPDATE, DELETE).

16
New cards

DCL (Data Control Language)

SQL commands that control access to data (e.g., GRANT, REVOKE).

17
New cards

TCL (Transaction Control Language)

SQL commands that manage transactions (e.g., COMMIT, ROLLBACK).

18
New cards

Query Language

Subset of a DML used for retrieving data; often used interchangeably with DML in context.

19
New cards

ER Model

Entity-Relationship model used for database design, showing entities, attributes, and relationships.

20
New cards

Entity

A real-world object of interest to the database, represented in the ER model.

21
New cards

Attribute

Property of an entity; can be simple or composite, and can be single-valued or multi-valued.

22
New cards

Simple Attribute

An attribute that is not divided into smaller components.

23
New cards

Composite Attribute

An attribute that can be decomposed into smaller sub-attributes.

24
New cards

Single-Valued Attribute

An attribute that holds exactly one value for an entity.

25
New cards

Multivalued Attribute

An attribute that can hold multiple values for a single entity.

26
New cards

Relationship

An association among two or more entities in the ER model.

27
New cards

Relationship Set

A set of relationships corresponding to a relationship type among entity sets.

28
New cards

Role

Labels describing how entities participate in a relationship (optional in ER diagrams).

29
New cards

Cardinality

The count of entities in one side related to another: one-to-one, one-to-many, many-to-one, many-to-many.

30
New cards

One-to-One

Each entity in one set relates to at most one in the other set.

31
New cards

One-to-Many

One entity in one set relates to many in the other set.

32
New cards

Many-to-One

Many entities in one set relate to a single entity in the other set.

33
New cards

Many-to-Many

Multiple entities in both sets relate to each other.

34
New cards

Ternary Relationship

A relationship involving three or more entity sets.

35
New cards

Notation (ER Diagram) Diamond

The diamond shape is used in ER diagrams to denote a relationship.

36
New cards

Extended ER (EER) Model

An ER model that includes advanced constructs like specialization, generalization, and aggregation.

37
New cards

Specialization

Top-down partitioning of an entity set into subtypes with distinct attributes/relationships.

38
New cards

Generalization

Bottom-up combination of similar entity sets into a higher-level supertype.

39
New cards

Aggregation

Treating a relationship as a higher-level entity to model relationships between relationships.

40
New cards

ISA (Super Class-Sub Class)

A relationship indicating that a subclass inherits from a superclass (is-a relationship).

41
New cards

Superclass

The higher-level entity type in a generalization/specialization hierarchy.

42
New cards

Subclass

A specialized, lower-level entity type within a generalization hierarchy.

43
New cards

Subclass Discriminator

An attribute used to indicate membership of an instance in a particular subclass.

44
New cards

Participation Constraint

Whether instances of a superclass must participate in a subclass (mandatory vs optional).

45
New cards

Total Participation

Every instance of the superclass must be a member of some subclass.

46
New cards

Partial Participation

Some instances of the superclass may not belong to any subclass.

47
New cards

Disjoint Constraint

Subclasses cannot overlap in membership for a superclass (Disjoint vs Overlap).

48
New cards

Overlap Constraint

An instance can belong to more than one subclass of a superclass.

49
New cards

Relational Model

Data model that represents data as relations (tables) of tuples and attributes.

50
New cards

Relation/Table

A table in a relational database consisting of rows (tuples) and columns (attributes).

51
New cards

Tuple/Row

A single row in a relation representing one record.

52
New cards

Column/Attribute

A field in a relation representing a data property.

53
New cards

Primary Key

A chosen candidate key that uniquely identifies each row in a table.

54
New cards

Candidate Key

A minimal set of attributes that uniquely identify each tuple in a relation.

55
New cards

Super Key

Any set of attributes that uniquely identifies a tuple; may contain extra attributes.

56
New cards

Foreign Key

An attribute (or set) in one table that references the primary key of another table.

57
New cards

Referential Integrity

Consistency of references between tables; foreign keys must reference existing rows.

58
New cards

Normalization

Process of organizing data to reduce redundancy and improve data integrity; includes 1NF, 2NF, 3NF, BCNF.

59
New cards

1NF (First Normal Form)

Atomic attribute values; no repeating groups.

60
New cards

2NF (Second Normal Form)

1NF plus no partial dependency of non-key attributes on part of a candidate key.

61
New cards

3NF (Third Normal Form)

No transitive dependencies; non-key attributes depend only on keys.

62
New cards

BCNF (Boyce-Codd Normal Form)

A stricter version of 3NF with every determinant being a candidate key.

63
New cards

Weak Entity

An entity that cannot be identified uniquely by its own attributes alone and depends on a strong entity.

64
New cards

Strong Entity

An entity that has a primary key and can be identified independently.

65
New cards

Mapping ER to Relational

Converting ER diagrams into relational tables: each entity set and relationship set maps to a table; foreign keys implement relationships.

66
New cards

Composite Attribute Flattening

Breaking a composite attribute into its component attributes in a table.

67
New cards

Multivalued Attribute Table

Representing a multi-valued attribute with a separate table linking the entity to its values.

68
New cards

DML Commands (Examples)

SELECT, INSERT, UPDATE, DELETE; used to retrieve and modify data.

69
New cards

DDL Commands (Examples)

CREATE, ALTER, DROP, RENAME, TRUNCATE; used to define/modify schema.

70
New cards

DCL Commands (Examples)

GRANT, REVOKE; used to manage access privileges.

71
New cards

TCL Commands (Examples)

COMMIT, ROLLBACK; used to control transaction boundaries.

72
New cards

SET OPS (Set Operators)

UNION, INTERSECT, MINUS; combine results from two queries.

73
New cards

Group By

Clause to group rows sharing a value to apply aggregate functions.

74
New cards

Having

Filter conditions on groups formed by Group By.

75
New cards

Aggregate Functions

Functions that compute a single value from a set of rows (AVG, COUNT, MAX, MIN, SUM, STDDEV, VARIANCE).

76
New cards

String Functions

Operations on strings: LOWER, UPPER, INITCAP, CONCAT, SUBSTR, LENGTH, INSTR, LPAD, RPAD, TRIM, REPLACE.

77
New cards

Distinct

Clause to remove duplicates from query results.

78
New cards

Join

Operation to combine rows from two or more tables based on a related column.

79
New cards

Index

Data structure to speed up retrieval of rows by a search key.

80
New cards

Metadata

Data about data; stored in the data dictionary or system catalogs.

81
New cards

Data Files

Physical storage files where the database data reside.

82
New cards

Storage Manager

DBMS component responsible for managing data on storage devices.

83
New cards

Query Processor

Component that translates a user query into an efficient sequence of operations.

84
New cards

Data Manager

DBMS component that enforces constraints, security, concurrency, and integrity.

85
New cards

Notational Symbols in ER

Diamond denotes relationships; rectangles denote entity sets; ovals denote attributes.