Chapter 1 Flashcards

1
Q

What is a Database?

A

A very large, integrated collection of data

Models real-world scenarios including entities and relationships.

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

What is a DBMS?

A

A software package designed to store and manage databases.

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

What are the main differences between files and DBMS?

A
  • Applications must stage large datasets
  • Special code for different queries
  • Must protect data from inconsistency due to multiple concurrent users
  • Crash recovery
  • Security and access control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why use a DBMS?

A
  • Data independence and efficient access
  • Data integrity and security
  • Uniform data administration
  • Concurrent access
  • Recovery from crashes
  • Reduced application development time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why study databases?

A

Shift from computation to information, increasing datasets in diversity and volume.

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

What is a data model?

A

A collection of concepts for describing data.

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

What is a schema?

A

A description of a particular collection of data, using the given data model.

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

What is the relational model of data?

A

The most widely used model today, based on the concept of relations (tables with rows and columns).

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

What defines a conceptual schema?

A

The logical structure of the data.

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

What is the physical schema?

A

Describes the files and indices used.

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

What is logical data independence?

A

Protection from changes in the logical structure of data.

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

What is physical data independence?

A

Protection from changes in the physical structure of data.

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

What are the basic operations of relational algebra?

A
  • Selection (σ)
  • Projection (π)
  • Cross-product (×)
  • Set-difference (−)
  • Union (∪)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to select all 18 years old students in SQL?

A

SELECT * FROM Students S WHERE S.age=18

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

What command is used to create a table in SQL?

A

CREATE TABLE

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

What is concurrency control in DBMS?

A

Ensures that interleaving actions of different user programs do not lead to inconsistency.

17
Q

Who are the primary stakeholders in a DBMS?

A
  • End users and DBMS vendors
  • DB application programmers
  • Database administrator (DBA)
18
Q

What are the responsibilities of a Database Administrator (DBA)?

A
  • Designs logical/physical schemas
  • Handles security and authorization
  • Ensures data availability and crash recovery
  • Database tuning as needs evolve
19
Q

What is query optimization?

A

The process of improving the efficiency of a query execution.

20
Q

What are the benefits of using a DBMS?

A
  • Recovery from system crashes
  • Concurrent access
  • Quick application development
  • Data integrity and security
21
Q

True or False: A DBMS typically has a layered architecture.

A

True