Databases Flashcards

1
Q

What is a database?

A

A structured persistent store of data which can be easily accessed, managed and updated. Stored on the secondary storage devices of a computer system

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

Flat File Databases

A

Contains only a single table - require little expertise to maintain and set up - suitable for storing small amounts of data

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

Disadvantages of Flat File Databases

A
  • Duplicates of data
  • Takes up unnecessary space
  • Slow to query
  • Becomes difficult to maintain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Table

A

Entity

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

Records

A

Rows / Tuples

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

Fields

A

Columns / Attributes

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

Relational Databases

A

Contain more than one entity - each entity has attributes

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

How can entity descriptions be written?

A

Customer (custID, title, firstname, surname, email)

Product (productID, title, subject, price)

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

Primary Key

A

A field in a record that is unique and does not relate to another table

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

Foreign Key

A

A field which links to another table

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

Types of Relationships

A

1 to 1
1 to Many
Many to Many

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

How can we graphically represent the relationships between entities?

A

Entity Relationship Diagram (ER diagram)

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

Methods of inputting data into a database

A

1) Paper forms
2) Online forms
3) Barcodes
4) Optical Character Recognition (automatically reads shapes of text e.g. Post Office, Speed Cameras)
5) Optical Mark Recognition (e.g. lottery tickets, multiple choice tests)

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

Exchanging data

A

The process of transferring the collected data

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

Two method of exchanging data

A

Electronic Data Interchange (EDI) or JSON queries
- Does not require human interaction
- Enables data transfer from one computer to another

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

What is a Database Management System (DBMS)?

A

System software for creating and managing databases.
Allows primary, foreign and secondary keys - allows a database to be searched quickly