Computing - Databases Flashcards
What is a database?
A store that is:
Persistent (held on permanent storage)
Related (all bits of information related to each other)
Organised (stored in structured predictable way)
In what 3 ways can a database be viewed at?
External
Conceptual
Physical
What is external view?
This is what the user sees and is designed to be useful for a particular job
What is conceptual view?
This shows how the data and tables are organised and linked
What is physical view?
The code that shows how the data is actually stored
Designers and users of the database don’t see this
What are the 2 ways that you can construct a database?
Flat file
Hierarchical
What is the difference between a flat file database and a hierarchical database
Flat file is a single table that is set up like a spreadsheet
Hierarchical is when items are linked like branches in a tree instead of an organised table
What is the most commonly used database language?
SQL
Structured query language
What is a DBMS?
A database management system is a system that provides the software tools to create, maintain and interrogate a database
What 7 things must a DBMS do?
Allow data sharing
Allow multiple user access
Allow multiple application to work on them
Hold only one copy of the data
Make it possible to change data without changing applications
Provide multiple views
Present different users with data in different ways
What is the ACID test?
All database transactions must be:
Atomic (change is completely performed or not at all)
Consistent (must take a database from one consistent state to another)
Isolated (should not be visible to any other user or transaction until it is completed)
Durable (when a change is made, it must not be lost due to a subsequent failure)
What is referential integrity?
Different applications must not cause conflicts meaning records are locked to other applications while one application is using it
What are relational databases?
Database with multiple tables that are linked to reduce data redundancy
What is data redundancy?
The storing of the same data in multiple locations
What are entities?
Something in the real world that some data is about