Databases Flashcards

1
Q

What are the disadvantages of a file-based system?

A
  • Separation of data
  • Duplication of data
  • Data dependence - difficult to change structure
  • Incompatible file formats
  • Fixed queries - difficult to do ad hoc queries
  • Low reliably, security, & integrity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the definition of a Database Management System (DBMS)?

A

A software system that allows users to define, create, and maintain a controlled-access database

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

What are the two languages a DBMS provides?

A

Data Definition Language (DDL)

Data Manipulation Language (DML)

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

What are the advantages of a database?

A
  • Consistent & structured model of data
  • Efficient filing
  • Ad hoc queries
  • Easy to update
  • Concurrency
  • Greater security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an entity?

A

Objects or things from the real world (People or places…)

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

What is an attribute?

A

A property of an entity (things that describe the entity)

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

A set of entities of the same type is represented as what?

A

A table, or relation.

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

What does each row in a table represent?

A

The entities

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

What does each column in a table represent?

A

The attributes

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

What is an atomic place in a table called?

A

A cell

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

What is a superkey?

A

A set of one or more attributes that uniquely identify an entity within a table

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

What is a candidate key?

A

Any attribute that can quality as a primary key

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

What is a primary key?

A

The attribute selected to uniquely identify the entity

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

What is a relation schema?

A

A set of attribute names and their domains

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

What is a foreign key?

A

An attribute that references an attribute, usually the PK, of another table, ensuring integrity.

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

What is meant by relational integrity?

A

A set of rules that ensure that the data is accurate

17
Q

What is the first normal form?

A

Whether the fields are atomic, or as compressed as they can be

18
Q

What is second normal form?

A

Must be 1NF & each attribute must be functionally dependent on the PK

19
Q

What is the third normal form?

A

Must be 2NF & all fields must be dependent on the PK