IM101 MIDTERM LESSON 4

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

1/66

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:26 AM on 10/22/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

67 Terms

1
New cards

Database design

is the process of producing a detailed data model of a database.

2
New cards

data consistency and integrity (reduces data redundancy)

A well-designed database ensures

3
New cards

Conceptual Design

Logical Design

Physical Design.

Types of Database Design

4
New cards

Conceptual Design

This phase involves creating a high-level representation of the database that outlines the entities, their attributes, and the relationships between entities. The Entity-Relationship Diagram (ERD) is the primary tool used in this phase.

5
New cards

Entities

Attributes

Relationships

Entity-Relationship Diagram (ERD)

6
New cards

Entities

Objects or things in the system

7
New cards

Attributes

Properties of entities

8
New cards

Relationships

Connections between entities

9
New cards

Customer

Order

Product

Relationships

Online Store, the ERD would have entities such as:

10
New cards

Primary Key

A unique identifier for each record in a table

11
New cards

Foreign Key

A field in one table that references the primary key in another table, used to establish a relationship between tables

12
New cards

relational schema

After the conceptual design, the ERD is transformed into a __that can be implemented in a database. In this phase, tables are defined, and relationships between tables are formalized.

13
New cards

Tables

represent entities from the ERD.

14
New cards

table

Each column in a__ represents an attribute,

15
New cards

row

each __ represents a record.

16
New cards

Relationships

between tables are defined by primary and foreign keys.

17
New cards

Customer Table

Order Table

Product Table

Order Product Table

Example Relational Schema:

For the Online Store example:

18
New cards

data type

Each attribute in a table must be assigned a

19
New cards

Constraints

ensure data integrity, such as NOT NULL (a field must always have a value), UNIQUE (no duplicate values), and FOREIGN KEY constraints for relationships.

20
New cards

Physical Design

phase involves mapping the logical schema to the physical storage in the chosen Database Management System (DBMS). This phase focuses on optimizing the design for performance and storage efficiency.

21
New cards

data types

Choosing appropriate __ based on the expected data size and frequency of updates.

22
New cards

indexes

Implementing __ to speed up query performance.

23
New cards

data types

indexes

Storage Considerations

24
New cards

Normalization

denormalization

Optimization Techniques

25
New cards

Normalization

reduces redundancy and improves data integrity.

26
New cards

denormalization

in some cases to improve query performance, especially for read-heavy operations

27
New cards

Data Consistency

Data Redundancy Minimization

Data Integrity

Flexibility

Principles of Good Database Design

28
New cards

Data Consistency

Ensures that data remains accurate and consistent across the database.

29
New cards

Redundancy

occurs when the same data is stored in multiple places, leading to wasted space and potential inconsistencies.

30
New cards

Data Redundancy Minimization

minimizes redundancy by normalizing the data.

31
New cards

Data Integrity

Enforcing constraints (e.g., primary key, foreign key) ensures the accuracy and consistency of the data.

32
New cards

Referential Integrity

Ensures that foreign keys accurately reference primary keys in related tables.

33
New cards

Flexibility

allows for easy updates and modifications as business needs evolve.

34
New cards

Relational Database Management Systems (RDBMS)

are systems that manage data using a structured format of tables (or relations) with predefined relationships between them. They are the foundation for most modern database applications.

35
New cards

Relational Database

is a collection of data organized into tables (relations) where each table consists of rows (tuples) and columns (attributes).

36
New cards

RDBMS

is a software system that allows users to create, manage, and manipulate relational databases. is built on a set of components that work together to store and retrieve data efficiently

37
New cards

MySQL

PostgreSQL

Oracle

Microsoft SQL Server

Examples of popular software in DBMS use for RDBMS platforms include:

38
New cards

Tables (Relations)

Primary Key

Foreign Key

Relationships Between Tables

Components of RDBMS

39
New cards

Indexes

created to speed up data retrieval operations in a table. ➢ They allow the RDBMS to find data quickly without scanning the entire table.

40
New cards

SQL (Structured Query Language)

is the standard language used to interact with RDBMS. It allows users to perform various operations such as creating tables, inserting data, updating records, and retrieving data.

41
New cards

Create

Insert

Select

Update

Delete

Basic SQL Operations

42
New cards

Create

statement is used to create a new database object, such as a table, index, view, or database. ➢ It defines the structure of the object and specifies the data types for each column.

43
New cards

Insert

is used to insert new rows of data into a table. ➢ It can insert data into all columns or only specific columns.

44
New cards

Select

used to query and retrieve data from a database. ➢ It can fetch data from specific columns or all columns, and it can also apply filters to select specific rows.

45
New cards

Update

statement is used to modify existing records in a table. ➢ It allows you to change values in one or more columns for specific rows.

46
New cards

Delete

statement is used to remove rows from a table. ➢ It can delete specific rows based on conditions, or all rows if no condition is specified.

47
New cards

Normalization

is a process of organizing data to minimize redundancy and dependency. It involves dividing large tables into smaller, related tables and defining relationships between them.

48
New cards

Avoids data redundancy

Ensures data integrity

Why Normalize?

49
New cards

First Normal Form (1NF)

Second Normal Form (2NF)

Third Normal Form (3NF)

Normal Forms

50
New cards

First Normal Form (1NF)

Ensures that each table column contains atomic (indivisible) values, and each entry in a column contains only one value.

51
New cards

Second Normal Form (2NF)

A table is in 2NF if it is in 1NF and all non-key attributes are fully dependent on the primary key.

52
New cards

Third Normal Form (3NF)

A table is in 3NF if it is in 2NF and all its attributes are directly dependent only on the primary key.

53
New cards

RDBMS properties

to ensure data reliability and consistency, especially in transaction processing.

54
New cards

Atomicity

Consistency

Isolation

Durability

RDBMS properties

55
New cards

Atomicity

Ensures that all operations in a transaction are completed successfully. If any operation fails, the entire transaction is rolled back.

56
New cards

Consistency

Ensures that the database moves from one valid state to another. Any transaction will bring the database from one valid state to another, maintaining data integrity.

57
New cards

Isolation

Ensures that transactions are processed independently. Multiple transactions happening at the same time should not affect each other.

58
New cards

Durability

Ensures that once a transaction is committed, it remains in the system even in the event of a system failure.

59
New cards

Data Integrity and Security

Flexibility in Querying

Reduced Redundancy

Concurrency Control

Advantages of RDBMS

60
New cards

Data Integrity and Security

RDBMS ensures that data remains consistent and secure using constraints and access control.

61
New cards

Flexibility in Querying

SQL allows complex queries to be written easily, enabling data retrieval in various ways.

62
New cards

Reduced Redundancy

Data is stored only once, thanks to normalization, reducing redundancy.

63
New cards

Concurrency Control

Multiple users can access the database simultaneously, with the system ensuring isolation and consistency.

64
New cards

Complexity in Handling Large Datasets

Cost of Setup and Maintenance

Performance Bottlenecks with Complex Queries

Disadvantages of RDBMS

65
New cards

Complexity in Handling Large Datasets

As the data grows, managing and querying very large datasets can become complex and slower.

66
New cards

Cost of Setup and Maintenance

High-end RDBMS solutions can be costly in terms of licensing, hardware, and maintenance.

67
New cards

Performance Bottlenecks with Complex Queries

While RDBMS are efficient, highly complex queries with multiple joins can slow down performance.