4.10 Fundamentals of Databases Flashcards

1
Q

Define an attribute/field

A

An individual fact, detail or characteristic of an entity

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

What is meant by a data model

A

An abstract model of which things to store and what information is to be recorded

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

Define Database

A

An organised collection of related data/information

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

Define Entity

A

A thing, object or attribute about data that can be collected

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

What is a Flat-file Database

A

A database containing a single table

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

Define Primary Key

A

An attribute in a table which uniquely identifies each record in the table

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

Define Record

A

A collection of fields that refer to the same entity (usually a row in a table)

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

Define Foreign Key

A

A field in the table which contains the value of a primary key in another table (in essence linking 2 tables together).

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

Define (Data) Redundancy

A

The repetition of data within a database

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

What is a Relational Database

A

A database with multiple linked tables

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

Define a table

A

A collection of related data

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

Describe the problem with redundancy in FFD

A
  • If a data redundant field has to be changed, all of the fields which contain the same value must be modified, this makes the table more prone to error and so has less data integrity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain the 3 Entity Relationships

A

1 - one-to-one (1:1) where one instance of an entity is associated to one instance of an entity
1 - one-to-many (1:N) where one instance of an entity is associated to more than one instance of an entity
1 - many-to-many (M:N) where more than one instance of an entity is associated to more than one instance of an entity

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

What is meant by data integrity

A

The accuracy and consistency of the data stored in a database

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

How are relationships made between different entities

A
  • By the use of primary and foreign keys in each table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an Entity description

A

A description of the attributes an entity will have, the underlined attribute is the primary key

17
Q

How do you fix many to many relationships

A
  • Make a junction table that contains the composite primary key of the linked tables & make a M:1 and N:1 to the linked tables from the junction table
18
Q

Why cant you have many to many relationships

A
  • They decrease referential integrity