Database Design And Development Flashcards

1
Q

What are end user requirements?

A

What the people who it’s designed for want

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

What are functional requirements in a database?

A

Things it’s expected to do with the information it has

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

How do you find functional requirements from end user requirements?

A

Rephrase the statements as what SQL queries you’d need

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

What is an entity?

A

A table

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

What is an attribute?

A

A field

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

What is a primary key?

A

Unique field in a table

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

What is a foreign key?

A

Is the primary key of another table, it links tables together

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

What is entity occurrence?

A

The data in the fields

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

What is a compound key?

A

If no fields contain a unique value, a combination of columns can be used a primary key

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

What is a data dictionary?

A

Designed for entities, laid out as a table containing the definition of each attribute

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

What are the different cardinalities?

A

One to one = 1 school is managed by 1 headteacher, 1 headteacher manages 1 school

One to many = 1 school employs many teachers, each teacher is employed by 1 school

Many to many = each student has many subjects, each subject is taken by many students

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

What is an entity relationship diagram?

A

Shows the cardinality between different entities

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

Helpful tips for entity relationship diagrams?

A

It’s always one to many

If one entity contains a foreign key that one is on the “many” side of the relationship

Underlined = primary key
*(Next to the attribute) = Foreign key

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

What is an entity occurrence diagram?

A

The attributes in the tables are listed and the ones that it’s linked to are joined with a line

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

What are wildcards?

A

They’re used to replace one or more characters, it uses the LIKE operator in the WHERE clause. Used for incomplete information.

How many characters they replace:
* = 0, 1 or many
? = 1

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

What is the SELECT query?

A

SELECT = Fields to show
FROM = What tables/queries it’s from
WHERE = conditions and equijoins
GROUP BY = columns with the same info is grouped together
ORDER BY = sort by a feild ascending or descending

17
Q

What is an UPDATE query?

A

UPDATE
SET = what you’re changing
WHERE = the condition

18
Q

What is a DELETE query?

A

DELETE
FROM = what tables/queries it’s from
WHERE = conditions

19
Q

What is an INSERT query?

A

INSERT INTO = all of the fields in the table
VALUES = all values being entered in the same order as the coressponding feilds

20
Q

What makes something fit for purpose?

A

It meets the end user requirements and the functional requirements