Databases ( 1 ) Flashcards

1
Q

What is an entity?

A

A category of object, person, event or thing of interest to an organisation about which data is to be recorded

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

What is a flat file data base?

A

• Consists of a single file

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

What is the simplest data base?

A

Flat file, which consists of information about a single entity

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

What is an attribute?

A

An attribute is a characteristic, each entity in a database has attributes

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

What is an identifier?

A

Each entity has an identifier which uniquely identifies a particular record ( usually known as a primary key - unique )

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

What is the unique identifier known as in a database?

A

Primary Key

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

What is a composite primary key?

A
  • A second primary key used to use two or more attributes in conjunction to uniquely identify a record
  • A primary key which consists of more than one attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens to the primary key?

A

it is automatically indexed, this is to allow any specific record to be found very quickly.

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

What is a secondary key?

A

A secondary index created on another field in order to allow faster searches

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

What are the various entity relationships?

A
  • One to One
  • One to Many
  • Many to Many
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an entity relationship diagram?

A

graphical way of representing relationships between entities in a database.

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

What is the structure of a database?

A
  • Each entity is represented by a table
  • Tables are referred to as relations
  • A database contains one or more relations
  • A relation has rows, each row containing one record
  • Columns in the relation each contain one field belonging to the records
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a foreign key?

A

An attribute that creates a join between two tables, it is the attribute that is common to both tables, and the primary key in one table is the foreign key in the table to which it is linked.

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

What is referential integrity?

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