Database Design & Development Flashcards

1
Q

What are the advantages of using a database? (4)

A
  • saves paper
  • saves space
  • amendments can be made easily
  • the records can be sorted and searched easily
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the rules of GDPR?

A
  • Accurate
  • Held securely
  • Held for declared purposes only
  • Not held for longer than necessary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a:

  • field
  • record
  • file/table
A
  • one item of data in a record eg. Name
  • data on a single person or thing
  • a set of data on a particular topic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the four types of validation and how are they written in a database?

A

Field length = top row

Field range = >0 AND <10

Restricted choice = “_________” OR “________”

Presence check = yes/no

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

What is a relational database?

What is the advantage of using it?

Why is a relationship table used?

A

Stores data in several linked tables

Less duplication of data

To link tables together

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

How do you write the following queries?

  • SELECT
  • DELETE
  • UPDATE
  • INSERT
A
  1. SELECT (record) FROM (table)
    WHERE (record) = (value)
  2. DELETE FROM (table)
    WHERE (record) = (value)
  3. UPDATE (table) SET (record) = (change)
    WHERE (record) = (original)
  4. INSERT INTO (table) (record order)
    VALUES (new values)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What testing should be done on a database? (3)

A

Check that the validations work properly

Queries should be tested and run to make sure the produce the correct results

Get a user to preform specific tasks to make sure the program is error free

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

What is the evaluation for a database?

A

Fit for purpose - does it do what it is supposed to do and gives the right outputs

Accuracy of output l

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

What are the two types of search and sort?

A

Simple and complex

Complex uses an AND

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

When you are asked for the data structure what two things do you need to state?

A

Array of (data type, eg. Integer)

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