Structures And Links (Databases) Flashcards

1
Q

What is a primary key?

A

A field in a table used to uniquely identify each record

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

What is a compound key?

A

Two fields combined in order to uniquely identify each record as in some tables one field is not enough to uniquely identify each record

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

Why are both primary and foreign keys necessary in a relational database?

A

To allow a relationship to be created between the two tables

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

Give two advantages of linking tables

A

Data replication is avoided

Smaller, easier to manage tables can be created

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

A one to one relationship is useful in a database when…

A

Information not accessed regularly is to be stored. Two smaller tables can be created and therefore accessed faster.

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

Two items needed to create a one to many relationship?

A

Primary and foreign key

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

Explain the difference between a flat file and original database

A

A flat file database only has one table. A relational database contains more than one table which are linked via primary and foreign keys.

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

The advantages of using relational databases are

A

Data is only stored once
Complex queries carried out
Better security
Cater for future requirements

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

What is the purpose of a foreign key?

A

Allows a field to be linked to a unique key in another table

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

State the differences between one-to-one, one-to-many and many-to-many relationships

A

One-to-one; Each row is related to one row in the other table
One-to-many; Each row is related to many rows in the other table
Many-to-many; One or more rows are related to one or more rows in the other table

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

The purpose and uses of a table?

A

Subject based lists that contain data arranged in records

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

The purpose and uses of a form?

A

Used to create a user interface for a database

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

The purposes and uses of a report?

A

Used to present the information in the database for;

Displaying or distributing a summary of data
Providing a snapshot of data
Provide details about individual records
Create labels

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

What is meant by a relationship in a database?

A

When two relational databases are linked because one table has a foreign key which references a primary key of another table

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

What is a calculated field?

A

One which is created using a formula from one or more existing fields

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

What is a record?

A

All the data stored about one person or object

17
Q

What is a field?

A

One single piece of information

18
Q

What is an entity?

A

Something that information will be recorded about
Examples include: Customer, airline passenger.
Objects such as a product, a flight
Something abstract such as a borrowing, booking.

19
Q

What is an entity set?

A

A collection of entities of the same type and is represented as a table in a DB system.

20
Q

What is a flat file database?

A

A database containing only one table

21
Q

What is a relational database?

A

A database containing two or more tables

22
Q

In order to create a many to many relationship, it is necessary to create what?

A

An intermediate table

23
Q

A calculation within a database query will be

A

A predefined calculation

24
Q

What makes entry of data into a database more efficient and more accurate?

A

Creating a form

25
Q

What is a database query?

A

A method within a database for searching and/or sorting of a database within multiple tables

26
Q

What is a flat file database?

A

A database containing only one table

27
Q

What is a relational database?

A

A database containing two or more tables

28
Q

In order to create a many to many relationship, it is necessary to create what?

A

An intermediate table

29
Q

A calculation within a database query will be

A

A predefined calculation

30
Q

What makes entry of data into a database more efficient and more accurate?

A

Creating a form

31
Q

What is a database query?

A

A method within a database for searching and/or sorting of a database within multiple tables