Database Design and Development Flashcards

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

What are End-User Requirements in databases?

A

End-User Requirements are the things that the end-users want the database to be able to do.

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

What are Functional Requirements in databases?

A

Functional Requirements are processes that a database must be able to carry out.

eg. the fields that the database must have.

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

What are databases made of?

A

Databases are made of entities and attributes.

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

Entities become tables during implementation. What are entities?

A

Entities are:
- a person
- a place
- an object
- a thing

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

Attributes become fields during implementation. What are attributes?

A

Attributes are characteristics of entities. Examples of attributes are:
- firstName
- lastName
- address etc.

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

What are Primary Keys (PK)?

A

Primary Keys are unique identifiers of entities.

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

What are Foreign Keys (FK)?

A

Foreign Keys are what links two or more tables together.

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

What is it necessary to show in databases?

A

Relationships between tables

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

What do data dictionaries do?

A

Data dictionaries define the structure of the database.

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

What do data dictionaries hold information on?

A

Data Dictionaries contain;

  • Names of entities
  • Names of attributes
  • Data types of attributes
  • Size of attributes
  • Indication of primary keys or foreign keys
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the field types and what do they hold?

A

Text - holds any character/number
Number - holds only numbers (but not telephone numbers)
Boolean - True/False
Date - stores dates
Time - stores times

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

What are the four types of input validation?

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

What is a Presence Check?

A

Presence Checks are pieces of validation which make any data in a field compulsory.

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

What is a Restricted Choice?

A

Restricted Choice limits the amount options a user can input thus cutting down the number of execution errors.

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

What is Field Length?

A

Field Length restricts the amount of characters a field can hold.

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

What is Range Check?

A

Range makes sure that the numbers inputted are between two quantities.

17
Q

What do we state when making queries at this level?

A

Field(s)
Table(s)
Sort Order
Criteria

18
Q

What does SQL stand for?

A

Structured Query Language

19
Q

In SQL, what is used to mean “all”?

A
  • (asterisk)
20
Q

What command is used to search a database for information generally?

A

SELECT field(s) FROM table(s);

eg SELECT firstName FROM pupils

21
Q

What command is used to search a database for more refined information?

A

SELECT field(s) FROM table(s)
WHERE field = description;

eg. SELECT firstName FROM pupils
WHERE firstName = “Darren”;

22
Q

What syntax is used to search a database of more than one condition?

A

AND / OR / NOT

eg. SELECT firstName FROM pupils
WHERE firstName = “Darren” OR firstName = “Ian”;

23
Q

What syntax is used to search a database of numbers between two extremes?

A

< / > / = / <= / >=

eg. SELECT firstName FROM pupils
WHERE age > 9

24
Q

What are the two ways of ordering fields in a database and what is their syntax in SQL?

A

Ascending / ASC (Orders a field from lowest to highest)
Descending / DESC (Orders a field from highest to lowest)

25
Q

What command is used to order a database?

A

SELECT field(s) FROM table
ORDER BY field (ASC / DESC)

eg. SELECT firstName FROM pupils
ORDER BY firstName ASC

26
Q

What is the maximum number of fields a database can be ordered by?

A

2

27
Q

What command is used to add information to a database?

A

INSERT INTO table
VALUES (new values in order with commas separating them)

eg. INSERT INTO pupil
VALUES (077868, Darren, O’Hare, Maths, 15)

28
Q

What command is used to add information to a database if we only want to add information to specific fields?

A

INSERT INTO table
VALUES (new value, new value, new value)

eg. INSERT INTO pupil
VALUES (077868, Darren, Maths)

29
Q

What command is used to update incorrect information of a database?

A

UPDATE table
SET field = “new value”
WHERE field = “old value”

eg. UPDATE pupil
SET firstName = “Adam”
WHERE firstName = “Darren”

30
Q

In the Testing phase of Database Design and Development, what are the two thing we can test?

A

Fitness for Purpose
Query Design and SQL versus result

31
Q

Why is it important to make an “expected result” when testing a databases’ Query Design and SQL versus result?

A

To compare the results to try and achieve the same result, if not there may be problems with the query design and/or implementation.

32
Q

What phase of the Database Design and Development would be revisited if the Testing didn’t match with the expected result?

A

The Design Phase followed by the Implementation Phase.

33
Q

What be the definition of a database which meets the end-user and functional requirements?

A

Fit for Purpose