Databases

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

1/51

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:51 AM on 6/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

52 Terms

1
New cards

Database (General Definition)

A collection of data that follows a set system structure to store data in a logical manner.

2
New cards

Common Fields using Databases

Social media, banking, retail, and medicine.

3
New cards

Table (Relation)

A structure of data for storing groups of similar relevant data, representing an Entity.

4
New cards

Entity

A thing that can have data stored about it (e.g., Cars, Aeroplanes).

5
New cards

Columns / Fields / Attributes

The specific characteristics or attributes to track within an entity (similar to attributes of a class).

6
New cards

Rows / Tuples

A single entry representing a specific record of an entity (similar to objects belonging to a class).

7
New cards

Primary Key

A column that serves as the unique identifier used to retrieve an entire record associated with it.

8
New cards

Foreign Key

A column in a table that originates from another table to create an association, serving as the Primary Key in its own table.

9
New cards

Composite Key

A unique identifier created by combining two or more columns, often used in bridging/linking tables.

10
New cards

Database Relationship

A logical association describing how two separate entities relate to each other to reduce redundancy, data duplication, and anomalies.

11
New cards

Referential Integrity Rule

A rule stating that any foreign key brought into a table must already exist as a Primary Key in its original table to protect data consistency.

12
New cards

Modality

Defines whether a relationship between tables is mandatory or optional in an Entity-Relationship Diagram (ERD).

13
New cards

Optional Modality

A relationship status where a record can be associated with other records from different tables, but does not have to be.

14
New cards

Mandatory Modality

A relationship status where a record must be associated with at least one other record from a different table.

15
New cards

Cardinality

Defines which relationship type fits into the database design structure (e.g., One-to-One, One-to-Many, Many-to-Many).

16
New cards

One-To-One Relationship

A relation where one record in Table 1 is associated with a maximum of one record in Table 2, sharing a linked key.

17
New cards

One-To-Many Relationship

A relation where one record in Table 1 is associated with any number of records in Table 2, managed by placing Table 1's Primary Key as a Foreign Key in Table 2.

18
New cards

Many-To-Many Relationship

A relation where multiple records in Table 1 link to multiple records in Table 2, requiring a new linking table (e.g., STUDENT_SUBJECT) with a composite key.

19
New cards

Database Schema

An architectural schematic showing how data is organized and how different entities relate to provide a view of the database.

20
New cards

Conceptual Schema

The highest abstraction view showing only what data to include and how they relate, excluding data types, keys, cardinality, and modality.

21
New cards

Logical Schema

The middle abstraction view defining structure, entities, data types, constraints, keys, and cardinality/modality, without considering DBMS-specific requirements.

22
New cards

Physical Schema

The lowest abstraction view containing storage specifics, access methods, indexing, views, and configurations tailored to a selected DBMS.

23
New cards

Entity-Relationship Diagram (ERD)

A visual representation of entities and their relationships, connecting them via lines representing modality and cardinality.

24
New cards

ERD Symbol: Double Line (||)

Represents "one and only one" (mandatory, single association).

25
New cards

ERD Symbol: Circle and Line (o|)

Represents "zero or one" (optional, single association).

26
New cards

ERD Symbol: Line and Crow's Foot (|<)

Represents "one or many" (mandatory, multiple association).

27
New cards

ERD Symbol: Circle and Crow's Foot (o<)

Represents "zero or many" (optional, multiple association).

28
New cards

CHARACTER(n) Data Type

A fixed-length string of size n

29
New cards

VARCHAR(n) Data Type

A variable-length string with a maximum limit of n

30
New cards

INTEGER Data Type

Stores whole numbers ranging from -2,147,483,648 to 2,147,483,647.

31
New cards

DECIMAL Data Type

Stores precise decimal numbers, used for exact financial or scientific calculations.

32
New cards

FLOAT Data Type

Stores approximate decimal numbers precise up to 23 digits

33
New cards

REAL Data Type

Equivalent to FLOAT(24), sharing the same memory efficiency and accuracy profile.

34
New cards

DATE Data Type

Stores date information in the format YYYY-MM-DD for straightforward sorting and filtering.

35
New cards

BOOLEAN Data Type

Stores binary values representing either True or False.

36
New cards

TEXT Data Type

A variable-length field for very long strings

37
New cards

Data Normalisation

The process of organizing database data according to specific rules to reduce redundancy, improve integrity, and prevent anomalies.

38
New cards

Normalisation Mnemonic

"The key [1NF], the whole key [2NF], and nothing but the key [3NF]."

39
New cards

Non-key Attribute

An attribute that is not part of the primary key or a composite key

40
New cards

Functional Dependency

A relationship where the value of one set of attributes (the dependent) is determined by another set (the determinant).

41
New cards

Full Functional Dependency

A state where dependent non-key attributes are fully determined by the entire primary key.

42
New cards

Partial Functional Dependency

An issue in composite-key tables where a non-key column relies on only one part of the composite key rather than the entire key.

43
New cards

Transitive Functional Dependency

An issue where a non-key attribute depends on another non-key attribute instead of depending directly on the primary key.

44
New cards

First Normal Form (1NF) Requirements

The database must contain atomic data (every cell cannot be reduced further) and must have a defined primary key.

45
New cards

Second Normal Form (2NF) Requirements

The database must be in 1NF and have zero partial functional dependencies (automatically met if there is no composite key).

46
New cards

Third Normal Form (3NF) Requirements

The database must be in 2NF and have zero transitive functional dependencies (all non-key attributes must rely solely on the primary key).

47
New cards

Benefit of Relational DB: Data Integrity

Constraints and referential integrity rules prevent data mismatches and keep relationships accurate.

48
New cards

Benefit of Relational DB: Reduced Redundancy

Normalization splits data into distinct tables, saving storage space and avoiding conflicting duplicate values.

49
New cards

Benefit of Relational DB: Security

Allows database administrators to grant detailed read/write permissions for specific tables and views.

50
New cards

Limitation of Relational DB: Scalability

Primarily relies on vertical scaling (adding hardware resources to a single server), making horizontal distribution across servers complex.

51
New cards

Limitation of Relational DB: Complexity

Requires careful initial design and normalization to prevent slow performance and design issues.

52
New cards

Limitation of Relational DB: Unstructured Data

Poorly suited for storing unstructured media formats, such as audio files, raw emails, or social media feeds.