Databases – theory only Flashcards

1
Q

What is a database?

A

A database is a software program used to store data in a structured way.

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

What is a field?

A

Each is a single item of data and has a field name, which is used to identify it within a database. Remember to use underscores for spaces

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

What is a record?

A

Collection of fields which may contain different data types

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

What is a flat file database?

A

Flat File database: stores data in one table, which is organised by rows and columns.

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

What is a relational database?

A

Relational database: stores data in more that one linked table, stored in a file. They are designed so that the same data is not stored many times. The links are called relations.

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

What are the advantages of flat file database?

A
  • All records are stored in one place
  • Easy to understand
  • Good option for small databases
  • Requires less hardware and software components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the disadvantages of flat file database?

A
  • Harder to update
  • Harder to change data format
  • Can only hold one table not multiple
  • Data inconsistency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the advantages of relational databases?

A
  • Since there are several tables, some of which can be made to be confidential if necessary
  • Multiple users will be able to access a relational database at the same time
  • Does not requite any specific path to access data
  • Reduces data inconsistency and better for accuracy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the disadvantages of relational databases?

A
  • Some relational databases have a limit on field lengths
  • They are isolated databases
  • While using the relational database over multiple servers, its structure changes and becomes difficult to handle, especially when the quantity of the data is large
  • Harder to search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the alphanumeric data type?

A

Used to store text and numbers not used for calculations. This is called a ‘text’ field in Microsoft Access.

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

What is the numeric data type?

A

A data type that is used to store numeric values that may be used for calculations

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

What are the sub types of numeric data?

A
  • Integer: sub-type which stores whole numbers
  • Decimal: sub-type, which will allow a large number of decimal places, or a specified restricted number if this is set in the field properties when the database is created
  • Currency: sub-type, money
  • Boolean - data type that stores data as 0/-1 but can display it as Yes/No. A tick box can be used as Boolean and gender
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a primary key?

A

Most tables will have a primary key field that holds unique data and is the field used to identify that record.

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

What is a foreign key?

A

A foreign key field in one data table that stores values from a primary key field in another table.

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

What do you have to include for caluclations?

A

What you want to calculate: [x_y][7_y]
e.g. Total_Costs: [Meal_Cost]
[Guest]

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

What is a report?

A

A database report is a formatted presentation of data from a database that provides structured information for decision-making

17
Q

What is a query?

A

Used to retrieve specific information from one or more tables in a database. Queries allow you to ask questions about your data and extract the answers based on specified criteria.

18
Q

What is a file?

A

Each file is an organised collection or records stored together. It can have one or more tables within it.

19
Q

What is a calculated control?

A

Is a feature that allows you to create custom calculations within forms and reports. It enables you to display calculated values based on expressions involving fields, constants, functions, and operators.