Chapter 3 (Ariana) Flashcards

1
Q

What does a table in a database consist of?

A

A table consists of rows and columns, referred to as records and fields respectively.

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

What is a record in a database table?

A

A record is represented as a row in a table and consists of data items related to an object or person.

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

What is a field in a database table?

A

A field is part of a record that stores a single data item, represented by a column in a table.

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

What is the key field in a database table?

A

The key field (or primary key) is the field used to uniquely identify one record.

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

What is the purpose of queries in a database?

A

A query is a way of searching and extracting data from a database to find the answer to a question.

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

What are the three tools available in a database software package?

A

Queries, forms, and reports are three tools available in a database software package.

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

What is a flat file in the context of databases?

A

A flat file is a two-dimensional table where data is organized into files, rows, and columns.

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

What is the significance of CustomerID in the customer table?

A

CustomerID is the key field that uniquely identifies each customer in the table.

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

What is the key field in the customer table?

A

The key field is CustomerID; each customer has a unique ID.

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

What are the three tools available in a database software package?

A

Queries, forms, and reports.

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

What is a query in a database?

A

A query is a way of searching and extracting data from a database to find the answer to a question.

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

What does a query do?

A

The query/search checks each record and produces a list of data that satisfies the query criteria.

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

What is the purpose of forms in a database?

A

Forms are used to collect data from people, enter new records, modify existing records, or view records already stored in a table.

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

How does data entry through forms work?

A

When data is entered into a form, it is automatically added into the specified table and stored as part of the database.

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

What is an advantage of using forms for data entry?

A

Forms make it easier to enter data as one form may include fields from different tables.

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

How does the database software handle data entry through forms?

A

The database software ensures that the data is stored in the correct table.

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

What can a database designer control when using forms?

A

The designer can control the type and format of the data, ensuring consistency and accuracy.

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

Can forms be customized?

A

Yes, forms can be customized to include a logo and color.

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

What is the purpose of the form mentioned?

A

The form allows customers to enter events they would like to book, adding details to both customer and booking tables in the database.

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

What can a report do in relation to database tables?

A

A report presents tables and results from queries in a user-friendly way, with customizable layouts for visual appeal.

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

How can data be organized in a report?

A

Data can be grouped by similar data or sorted in ascending or descending order.

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

What is a macro in the context of databases?

A

A macro is a small program that performs repetitive database tasks automatically, adding functionality to forms and reports.

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

What tasks can macros perform?

A

Macros can add a new record, delete an old record, and automate other repetitive tasks.

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

What information is included in the customer record?

A

CustomerNumber, Surname, First Name, Date of Birth, Gender, Telephone Number, and Email.

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

What details are included in the booking record?

A

BookingNumber, BookingDate, ActivityDate, Location, and Activity.

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

What types of activities are mentioned in the bookings?

A

Archery, Karting, Quad Biking, Horse Riding.

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

What is the significance of the booking dates?

A

Booking dates indicate when the bookings were made for various activities.

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

What is a macro in a database?

A

A macro is a small program written to perform a repetitive database task automatically.

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

What functionality do macros add to forms and reports?

A

Macros allow adding a new record, deleting an old record, or updating an existing record.

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

How does a macro simplify tasks in a database?

A

Instead of entering multiple instructions each time, the user only needs to perform a single operation, such as clicking a button.

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

What is a database relationship?

A

A relationship links together two tables in a database using a common field.

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

What is a foreign key?

A

A foreign key is the key field from one table stored in another table as a non-key field.

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

What are the types of relationships in a database?

A

The degree of relationship can be one-to-one, one-to-many, or many-to-many.

34
Q

What does ‘enforce referential integrity’ do?

A

It ensures that data entered is consistent in both tables and deletes linked records when a customer record is deleted.

35
Q

Why are spreadsheets useful for importing data?

A

Spreadsheets allow easy manipulation and analysis of numerical data.

36
Q

What advantage does a database package have over spreadsheets?

A

A database package can store several linked tables, making data consolidation and organization easier.

37
Q

What is the first task mentioned for using a spreadsheet?

A

Import a spreadsheet saved in your documents into a database package.

38
Q

What should you identify in the form and report?

A

Identify the features used in both the form and the report.

39
Q

What is the purpose of researching macros on the internet?

A

To find different ways a macro could be used in a database.

40
Q

What does referential integrity prevent?

A

It prevents the addition of a new record to the activity table that cannot be linked to a record in the customer table.

41
Q

What is a data type in a database?

A

A data type defines the type of data associated with a field within the record structure.

42
Q

What is a data type in a database?

A

A data type defines the type of data associated with a field in a database.

43
Q

What is the use of the Text data type?

A

Text is used for text and data that is a mixture of text and numbers, such as a postcode.

44
Q

What is the difference between Short text and Long text?

A

Short text is used for a small number of characters, while Long text is used for a large number of characters, such as a product description.

45
Q

What does the Number data type represent?

A

Numbers that do not require calculations.

46
Q

What is the Date/Time data type used for?

A

It is used for dates and times, for example, a date from a pop-up calendar.

47
Q

What does the Currency data type represent?

A

Monetary data such as item price, including two decimal places.

48
Q

What is Autonumber in a database?

A

A key field where the computer generates sequential numbers automatically for each new record created.

49
Q

What values can the Yes/No data type hold?

A

It contains one of two possible values such as Yes/No or True/False.

50
Q

What is an OLE object?

A

An OLE object is for object linking and embedding, such as a word-processed document or a spreadsheet.

51
Q

What does the Hyperlink data type represent?

A

It is a link to a web address (URL) or an email address.

52
Q

What is the purpose of the Attachment data type?

A

Files are attached to a record, for example, a digital image.

53
Q

What does the Calculated data type do?

A

It provides the result of a calculation produced from another field in the record.

54
Q

What is the Lookup wizard used for?

A

To create a list of values from which a value can be selected and entered into the field.

55
Q

What is data validation?

A

Data validation checks data at the input stage to ensure it is reasonable, sensible, and within acceptable limits.

56
Q

What happens when data does not conform to validation rules?

A

Data that does not conform is rejected, and an error message is displayed explaining the rejection.

57
Q

What is a presence check?

A

A presence check ensures that data is present; the area cannot be left blank.

58
Q

What is a presence check?

A

A presence check ensures that data is present; the area cannot be left blank.

This type of check is mainly used when completing an online form.

59
Q

What must be entered for the ‘Town’ field in a database?

A

‘Town’ must have a description entered for each customer.

The presence check for ‘Town’ has ‘Required’ set to ‘yes’ and the validation rule states ‘Is not Null’.

60
Q

What does a length check ensure?

A

A length check ensures that data entered is the correct number of characters.

For example, every CustomerNumber must contain six characters.

61
Q

What is a type check?

A

A type check is used to ensure that the data entered is of the correct type.

Data types include numeric, text, and date.

62
Q

What does a format check ensure?

A

A format check ensures that data entered matches a predetermined pattern.

For example, a postcode would have a pattern such as BTXX XXX.

63
Q

What is a type check?

A

A type check is used to ensure that the data entered is of the correct type.

64
Q

What are some examples of data types?

A

Examples of data types include numeric, text, and date.

65
Q

What is a format check?

A

A format check ensures that data entered matches a predetermined pattern.

For example, a postcode would have a pattern such as BTXX XXX.

66
Q

What does a range check do?

A

A range check ensures that data entered is within a lower limit and upper limit.

67
Q

What is an example of a range check?

A

In a group activity booking, the number of people must be between 2 and 15.

The maximum size of a group is 15 people.

68
Q

What are comparison operators?

A

Comparison operators allow comparing a value against other data in a database.

69
Q

What does the comparison operator ‘<’ indicate?

A

It indicates that the data entered must be less than a specified value.

70
Q

What are logical operators?

A

Logical operators are used to analyze two values and return either a true or a false result.

71
Q

What are Boolean operators?

A

Boolean operators are used when there are only two possible results (true/false or yes/no).

72
Q

What are logical operators used for?

A

Logical operators are used to analyse two values and return either a true or a false result.

73
Q

What are Boolean operators?

A

Boolean operators are operators that have only two possible results (true/false or yes/no).

74
Q

What are examples of Boolean operators?

A

Examples of Boolean operators include AND, OR, and BETWEEN.

75
Q

What is a database file or table?

A

A database file or table is a number of records.

76
Q

What is the key field in a database?

A

The key field is the field that uniquely identifies a record.

77
Q

What is a query in a database?

A

A query is a way of searching and extracting required data from the database.

78
Q

What is the purpose of forms in a database?

A

Forms allow data to be collected and entered into a database.

79
Q

What do reports do in a database?

A

Reports allow tables and results from queries to be presented in a user-friendly manner.

80
Q

What are macros in a database?

A

Macros allow users to perform a single operation by clicking on a button that represents a set of instructions.

81
Q

What is data validation?

A

Data validation checks that data is reasonable, sensible, and within acceptable limits.

82
Q

What is the activity date condition in the example?

A

The activity date must be between the two values shown if the result is to be true.

Example: Between +06.04/2015 and 405.04/2016.