Databases Flashcards

1
Q

What does Referential Integrity mean?

A

Prevents you from deleting related records

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

What is a serial file?

A

Permanent storage of data

  • Data is in the order at which it was entered
  • No order to the data is maintained
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a sequential file?

A
  • Data stored in order of a key field

- The order is maintained when new records are added

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

What is an indexed sequential file?

A

Maintain an index to allow groups of records to be accessed quickly.

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

What is a database?

A

A database is a structured, persistent collection of data

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

What are the advantages of using a database?

A
  • Makes processing more efficient
  • Reduces storage requirements
  • Avoid redundancy
  • Allows different users to only see relevant data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a DBMS?

A

Software which manages the database

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

What features does a DBMS provide?

A
  • A manipulation language to access and change the data
  • Integrity to ensure efficiency and structure is not compromised
  • Additional security
  • An interface for other programs to access and use the data
  • Programs/data independence
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the components of a database?

A
  • Tables that store data in rows and columns
  • Queries to manipulate data
  • Forms or user interface
  • Reports
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a flat file?

A

One table and all data is stored within it.

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

What are the disadvantages of a flat file?

A
  • Inefficient as it is not easy to query
  • Data is duplicated (redundancy) inefficient use of storage. Errors can occur between different records easily and integrity is compromised.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a relational database?

A

A relational database has more than one related table.

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

How do you get from a flat file to a relational database?

A

Normalisation

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

What must be true for a relational database?

A
  • Each record must be unique, primary key is unique identifier for the record.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a foreign key?

A

A field in one table that uniquely identifiers a row of another table or the same table.

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

What are the types of relationship?

A
  • One to One
  • One to Many
  • You cannot design a database with Many to Many relationships
17
Q

What is the primary key also known as and what is it used for?

A

Index used to quickly find records.

18
Q

What are secondary keys used for?

A

To quickly perform query’s on the database.