L.01 Flashcards

Introduction to Databases

1
Q

What is the difference between data, information, and knowledge?

A

Data: Raw data without meaning (e.g., stored signals). May or may not be redundant or correct.

Information: Data with labels or descriptions, usually structured (e.g., database schema). Generally assumed to be not redundant nor wrong.

Knowledge: Information with context and meaning, beyond what programs typically process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Give me types of databases.

A

-Files & File Systems
-Spreadsheets
-SQL Databases
-NoSQL Databases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does CRUD stand for in databases?

A

CRUD stands for:
-Create (Insert new data)
-Read (Retrieve data)
-Update (Modify existing data)
-Delete (Remove data)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a database?

A

A database is:
A collection of related data
Represents some aspect of the real world
Logically coherent with inherent meaning
Built for a specific purpose

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an example of a university database structure?

A

A University Database may contain:
STUDENT (student info)
COURSE (course details)
SECTION (course sections)
GRADE_REPORT (student grades)
PREREQUISITE (course dependencies)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is metadata? Give an example

A

Metadata is “data about data.”
It describes what actual data should look like.
Example: Java classes define object instances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some advantages of using a DBMS?

A

-Persistent storage for program objects

-Efficient querying (indexing, optimization, caching)

-Controlling redundancy (normalization)

-Ensuring data integrity (data types, uniqueness, referential integrity)

-Transactional properties (ACID)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the ACID properties of transactions?

A

1) Atomicity – All changes are applied, or none at all.

2) Consistency – The database is always in a consistent state.

3) Isolation – Concurrency control, guarantees that concurrent transactions do not interfere.

4) Durability – Once a change is applied, it remains even through failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is querying in databases? Give example

A

A special form of “read” operation. Used to retrieve multiple entries or specific parts of data based on constraints.
Example:
*SELECT last_name FROM students WHERE course_id = ‘DIT034’.
Give me all files that end with “exe”.
*Give me the last names of all students enrolled in DIT034.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are common DBMS interaction methods?

A

-Menu-based interfaces (Web browsing)

-Forms-based interfaces

-Graphical User Interfaces (GUI)

-Natural language interfaces

-Speech input/output

-Interfaces for parametric users

-APIs (e.g., Java database interaction)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Client/Server architecture in databases?

A

-The Database Server stores and manages the database.
-Clients (programs, applications) send queries and receive results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Three-Schema Architecture?

A

External Schema – User views
Conceptual Schema – Logical structure of data
Internal Schema – Physical storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly