Database ( 2 ) Flashcards

1
Q

what is a relational database?

A

A collection of tables in which relationships are modelled by shared attributes

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

How is data held in a relational database?

A

Data is held in relations ( tables ), and the relations are linked through common attributes

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

What each column in a relation represent?

A

One Attribute

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

What does each row in a relation represent?

A

One record

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

How is the entity represented in a relational table algebra?

A

Entity name is shown outside brackets, everything else is within brackets

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

How are attributes represented in relational table algebra?

A

Attributes are listed inside the brackets

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

How is the primary key represented in relational table algebra?

A

Underlined

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

Why is an index created?

A
  • An index of primary keys is automatically created by the database software, giving the position of each record according to its primary key
  • Needed to allow a particular record to be located very quickly.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why are secondary keys created & indexed?

A

To allow even quicker searches, where only a primary key exists, searches would have to be done individually, which would be slower

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

What is normalisation?

A

A processed used to come with the best possible design for a relational database

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

What are the requirements of a database design?

A
  • No data is unnecessarily duplicated
  • Data is consistent throughout the database ( consistency comes with not holding any duplicated data ), this is to prevent anomalies when data is inserted/deleted
  • Structure of each table is flexible enough to allow you to enter as many or as few times as required
  • Structure should enable a user to make all manners of queries relating data from different tables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly