Chapter 1 (Databases & Database Users)

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

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

18 Terms

1
New cards

Database

A collection of related data

Example:

  • Student records

  • Bank accounts

  • Hospital patients

2
New cards

Data:

Known facts that can be recorded and have implicit meanings

3
New cards

Mini-World

A part of the real world we are storing data about.

Example:

  • University → students, courses, grades

  • Hospital → patients, doctors, appointments

4
New cards

DBMS vs Database vs Database System

Term

Meaning

Database

The data itself

DBMS

Software that manages the data

Database System

DBMS + Database (+ applications sometimes)

5
New cards

What Does a DBMS Do?

Typical DBMS Functions

A DBMS can:

  1. Define the database
    (data types, structure, constraints)

  2. Store data

  3. Retrieve data (queries, reports)

  4. Update data (insert, delete, update)

  5. Support many users at the same time

  6. Keep data correct & consistent

A DBMS allows defining, storing, retrieving, updating, and managing data securely for multiple users.

6
New cards

Main Characteristics of the Database Approach

This is THE MOST IMPORTANT PART

Self-Describing Nature

  • DBMS stores data + description of data

  • Description = Metadata

📌 Metadata = data about data
(example: table name, column type)

7
New cards

Program–Data Independence

Programs are independent of how data is stored

Meaning:

  • You can change data structure

  • Without rewriting programs

8
New cards

Data Abstraction

  • Users don’t see storage details

  • They see a conceptual view

Think:

“I don’t care how it’s stored, I just query it.”

9
New cards

Multiple Views

  • Different users see different views

  • Each user sees only what they need

10
New cards

Data Sharing & Multi-User Transactions

  • Many users access data at the same time

  • DBMS ensures:

    • Correctness

    • Consistency

    • Recovery if failure happens

📌 Keyword: OLTP (Online Transaction Processing)

11
New cards

Example: UNIVERSITY Database

Entities:

  • STUDENT

  • COURSE

  • SECTION

  • INSTRUCTOR

  • DEPARTMENT

Relationships:

  • Students take sections

  • Instructors teach sections

  • Courses have prerequisites

  • Students major in departments

👉 Exam questions often ask:

“Identify entities and relationships”

12
New cards

Types of Database Users

Actors on the Scene

People who use or manage databases

User

Role

DBA

Controls access, security

Database Designer

Designs structure

End Users

Query & use data

Application Programmers

Write programs

13
New cards

End Users Types

  • Casual → occasional use

  • Naïve / Parametric → predefined transactions (ATM, bank teller)

  • Sophisticated → analysts, engineers

  • Stand-alone → personal databases

14
New cards

Actors Behind the Scene

  • DBMS developers

  • Tool developers

  • Operators & maintenance staff

15
New cards

Advantages of Using Databases

  1. Reduced redundancy

  2. Data sharing

  3. Security

  4. Backup & recovery

  5. Multiple user interfaces

16
New cards

Don’t use DBMS if:

  • System is small & simple

  • Single user

  • No future changes

17
New cards

DBMS may be infeasible:

  • Embedded systems

  • Very strict real-time requirements

18
New cards

If the question asks about:

  • WHY DBMS? → advantages

  • WHAT IS DBMS? → definition + functionality

  • WHO USES DBMS? → user types

  • HOW DBMS WORKS? → environment diagram