Database Design and Development Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a database?

A

A database is a structured collection of similar information that can be accessed easily

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

What is a flat file database?

A

A flat file database is a database that contains a single table

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

What is an end user requirement of a database?

A

An end user requirement of a database system is the task that the user would want to be able to carry out

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

What is a functional requirement of a database?

A

The functional requirements of a database are the processes that the system has to perform
and the details of the data that the database will store

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

What is the GDPR?

A

GDPR (General Data Protection Regulation) is legislation which sets out rules for the protection of personal data

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

What does GDPR allow individuals the right to?

A

Individuals have the right to:

-Be informed about how their personal data will be used

-See any data held about them
have any inaccurate data held about them updated

-Have information about them deleted once there is no longer a reason for holding it

-Object to being included in direct marketing campaigns

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

what must businesses do according to GDPR?

A

Businesses must:

-Store all data securely
report any data breach within 72 hours

-Ensure that any data held about an individual is accurate

-Provide access to data held about an individual when requested by the individual

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

What is an entity?

A

An entity is an object about which a database will store information

An entity can be a person, an object or something abstract

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

What is an attribute?

A

An attribute is an item of information that relates to particular entity

Example:
-forename
-make
-DOB

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

What is a primary key?

A

A primary key is a field which uniquely identifies a record in a database

In database design, primary keys are underlined

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

What is a foreign key?

A

A foreign key is a primary key from one table which is used in a second table to link the tables together

In database design, foreign keys are shown with an asterisk

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

What is attribute size?

A

The size of an attribute is a measure of how much space the field will take up when stored in main memory or backing storage

The size of a Text attribute is the number of characters which will be stored. If the attribute size is too small, it may result in data being lost

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

What is presence check?

A

A presence check ensures that data is entered in a field

Use a presence check to ensure important information is entered e.g. name, postcode, DOB

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

What is restricted choice?

A

Restricted choice limits data entry to a set of acceptable values

Use a restricted choice check to limit data entry

e.g. Restrict car colour choices to: red, white, silver, black, blue and grey
Restrict clothing size options to: S, M, L, XL and XXL
Restrict currency choices to: GBP, USD, CAN, EUR and AUD

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

What is field length validation?

A

Field length validation limits the number of characters that can be stored in a field

Example:
Fields from a film table might use field length validation as follows:
Film name (25)
Certificate (3)
Genre (15)
Director forename (12)
Director surname (15)

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

What is range validation?

A

Range check ensures that data falls between two values

Examples
The Ratings field of a FILM table might only allow values in the range 0 to 100
The Temperature field of a WEATHER table might only allow values in the range -20 to 50

17
Q

What is an entity relationship diagram?

A

An entity relationship diagram (ERD) is a graphical representation of entities in a database, and their relationship to each other

18
Q

SQL Query Formula

A

SELECT field
FROM table
WHERE criteria
ORDER BY field ASC or DESC;

19
Q
A