Databases Design and Development Flashcards

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

End User Requirements

A

The requirements are what the users expect to be able to do using the database.

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

Functional Requirements

A

Processes that the database system has to be able to do.

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

What does ER stand for in ER diagrams

A

Entity Relationship

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

What are ER diagrams used for ?

A

Used to represent the relationship between tables.

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

One-to-Many Cardinality

A

When one table can be present in many other tables.

You also need a verb to describe the relationship.

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

3 types of validations in a database

A
  1. Length Check
  2. Range Check
  3. Restricted Choice
  4. Presence Check
  5. Lookup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Presence Check

A

When a field cannot be left empty, the primary key must have a presence check

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

Length Check

A

Set number of characters that can be entered.

Eg; phoneNumber = 11

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

Restricted Choice

A

Can only choose a limited selection of options

Eg Countries In The UK

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

Range Check

A

Numbers only
When the number needs to be within a range
Eg HotelRating = 1 - 5

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

What is Referential Intergrity ?

A

Whenever a Foreign Key is used, it must reference a valid and existing Primary Key in the first table.

Can be used to cascade changes made to the database.

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

GDPR ensures the data held must be:

A
Must be accurate
Held Securely
Not kept longer than necessary
Processed lawfully
Used for declared purpose only
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Search a record in SQL

A

SELECT
FROM
WHERE

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

Sorting a record in SQL

A

SELECT
FROM
WHERE
ORDER BY (DESC or ASC)

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

Why are two tables created ?

A

To avoid data duplication and anomalies

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

How are two tables linked

A

By the Foreign Key

17
Q

Deleting a record in SQL

A

DELETE FROM

WHERE

18
Q

Editing a record in SQL

A

UPDATE
SET
WHERE

19
Q

Advantages of using a database

A

Search efficiently
Sort efficiently
Requires less storage

20
Q

Adding a new record in SQL

A

INSERT INTO

VALUES

21
Q

3 types of fields

A
  1. Numeric
  2. Text
  3. Boolean
  4. Date
  5. Time
22
Q

What is the difference between a flat file and relational database ?

A

Flat File: One table

Relational Database; Multiple tables linked together.

23
Q

What is a Foreign Key ?

A

When the primary key is used in another table

24
Q

What is the advantage of linking tables ?

A

Helps to reduce input errors and data inconsistency

25
Q

Disadvantages of using databases

A

Viruses

Hackers