Databases Flashcards

1
Q

What is a flat file?

A

Consists of information about a single netity

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

What is an entity?

A

A category of object, person, event or thing about which data needs to be recorded.

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

What is an identifier?

A

Something which uniquely identifies a particular record.

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

What is the identifier in a relational database?

A

Primary key.

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

What is a composite primary key?

A

Two or more attributes needed to uniquely define a record.

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

What is each entity represented by?

A

A table

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

What are relations?

A

Tables in a database

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

What does a database contain?

A

One or more relations

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

What does each row contain?

A

Records.

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

What do the columns in each relation contain?

A

Fields belonging to the records

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

What is a foreign key?

A
  • An attribute that creates a join between two tables

* It is the primary key in the first table

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

What does referential integrity mean?

A

No foreign key in one table can reference a non existent record in a related table.

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