Database and Data Modelling Flashcards

1
Q

What is a file-based system?

A

Data stored in separate files that can be accessed

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

What is one disadvantage of file-based systems?

A

No control over file organization or structure

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

Why is data redundancy a problem in file-based systems?

A

Data must be changed manually in every file where it appears

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

Why is a file-based system not suitable for multi-user environments?

A

It becomes chaotic and lacks coordination

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

How secure is a file-based system?

A

Security is not sophisticated; users can access everything

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

What is a database?

A

A collection of non-redundant interrelated data

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

What is a DBMS?

A

Software that defines

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

Where is data stored in a DBMS?

A

In relational databases (tables in secondary storage)

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

What does a data dictionary contain?

A

List of all files

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

What is data modeling in a DBMS?

A

Analyzing data objects and identifying relationships among them

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

What is a logical schema?

A

An overall view of the database including entities

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

What is data integrity in a DBMS?

A

Ensures data block is copied

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

How does a DBMS ensure data security?

A

By using passwords

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

What is record locking?

A

Preventing other users from editing a record currently being modified

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

What is deadlock in a DBMS?

A

When two users hold locks needed by the other

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

How can deadlocks be resolved?

A

DBMS detects and aborts one of the users’ tasks

17
Q

What is a developer interface in a DBMS?

A

Interface to create/manipulate a database using SQL

18
Q

What does a query processor do?

19
Q

What is an entity in a relational database?

A

An object or event that can be identified distinctly

20
Q

What is a table in a database?

A

A group of related entities stored in rows and columns

21
Q

What is a tuple?

A

A row or record in a database table

22
Q

What is an attribute?

A

A field or column in a database table

23
Q

What is a primary key?

A

An attribute(s) that uniquely identifies a tuple

24
Q

What is a candidate key?

A

An attribute that could serve as a primary key

25
What is a foreign key?
An attribute(s) that relates one table to another
26
What is referential integrity?
Ensures consistency between related tables
27
What is a secondary key?
Candidate key not chosen as primary key
28
What is indexing?
Creating a secondary key for faster search
29
What is 1st Normal Form (1NF)?
No repeating groups
30
What is 2nd Normal Form (2NF)?
In 1NF and all non-key attributes fully depend on the whole primary key
31
What is 3rd Normal Form (3NF)?
In 2NF and no transitive dependencies (attributes only depend on primary key)
32
How are many-to-many relationships normalized?
Split into two one-to-many relationships with a link table