Chapter one Flashcards

(10 cards)

1
Q

Q: What is a database?

A

A: A collection of organized data stored electronically, designed to manage and retrieve information efficiently.

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

Q: What is the role of a Database Management System (DBMS)?

A

Manages and controls access to the database.
Provides security, backup, and recovery.
Allows multi-user access.

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

Q: What are the differences between a file-based system and a database system?

A

File-Based: Data stored in separate files, prone to redundancy and inconsistency, less secure.
Database: Centralized storage, reduces redundancy, improves security and consistency.

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

Q: What are the three levels of DBMS architecture?

A

Internal Schema: Physical storage details.
Conceptual Schema: Logical structure of the database.
External Schema: User-specific views.

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

Q: What are the three types of database constraints?

A

Domain Constraints: Restrict values in a column (e.g., age must be 18–60).
Key Constraints: Ensure each row is unique (e.g., Primary Key).
Referential Integrity: Ensures foreign key values match primary key values.

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

Q: What is the difference between data and information?

A

Data: Raw, unprocessed facts (e.g., 20, John).
Information: Processed data that is meaningful (e.g., “John is 20 years old”).

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

: What is the role of a Database Administrator (DBA)?

A

A: Manages the database, controls user access, creates backups, and monitors performance.

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

Q: Name the four types of database languages.

A

DDL (Data Definition Language): Defines database structure (e.g., CREATE, DROP).
DML (Data Manipulation Language): Manipulates data (e.g., SELECT, INSERT, UPDATE).
DCL (Data Control Language): Manages permissions (e.g., GRANT, REVOKE).
TCL (Transaction Control Language): Manages transactions (e.g., COMMIT, ROLLBACK).

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

Q: What is a primary key, and why is it important?

A

A: A unique identifier for each row in a table, ensuring no two rows are identical.

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

Q: What is a foreign key, and how does it work?

A

A: A column in one table that links to the primary key of another table, maintaining relationships between tables.

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