Database Design & Development Flashcards
What are the advantages of using a database? (4)
- saves paper
- saves space
- amendments can be made easily
- the records can be sorted and searched easily
What are the rules of GDPR?
- Accurate
- Held securely
- Held for declared purposes only
- Not held for longer than necessary
What is a:
- field
- record
- file/table
- one item of data in a record eg. Name
- data on a single person or thing
- a set of data on a particular topic
What are the four types of validation and how are they written in a database?
Field length = top row
Field range = >0 AND <10
Restricted choice = “_________” OR “________”
Presence check = yes/no
What is a relational database?
What is the advantage of using it?
Why is a relationship table used?
Stores data in several linked tables
Less duplication of data
To link tables together
How do you write the following queries?
- SELECT
- DELETE
- UPDATE
- INSERT
- SELECT (record) FROM (table)
WHERE (record) = (value) - DELETE FROM (table)
WHERE (record) = (value) - UPDATE (table) SET (record) = (change)
WHERE (record) = (original) - INSERT INTO (table) (record order)
VALUES (new values)
What testing should be done on a database? (3)
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
What is the evaluation for a database?
Fit for purpose - does it do what it is supposed to do and gives the right outputs
Accuracy of output l
What are the two types of search and sort?
Simple and complex
Complex uses an AND
When you are asked for the data structure what two things do you need to state?
Array of (data type, eg. Integer)