Database Flashcards
(36 cards)
Database
A structured collection of information that is stored inside a computer system and can easily be accessed, managed, and updated
Data concurrency
Instructions happening at the same time
Data integrity
Maintains accuracy and consistency of data
Database transaction
a series of changes in a database as a single operation
Referential integrity
Keeps table links accurate by preventing invalid data
1NF
All values are atomic, no repeating groups, no multiple columns for the same data
2NF
Already in 1NF, all non-key attributes are fully dependent on the entire primary key
3NF
It is in 2NF, all non-key attributes depend on another non-key attribute
Normalisation
The process of reorganising data to reduce redundancy
Data definition language (DDL)
Used to deifne and a mange the structure of database and objects
Database management system (DBMS)
A software that allows users to create, manage, and interact with databases
ACID properties A
Atomacity - either all is executed or none
ACID properties C
consistency - ensures errors do not create unintended consequences
ACID properties I
Isolation - ensures data transactions don’t interfere/ affect others
ACID properties D
Durability - ensures changes in the data will be saved
Database vs information system
Informations systems are made up of hardware, software, databases… they organise and analyse data. A database is a structured collection of information that is stored inside a computer system and can easily be accessed, managed, and updated
Advantages of centrally stored database
Consistent view of the system, centrally updated
Relational database management system (RDBMS)
A database management system for databases that are represented / related with logical relations
Schema
The logical structure of the data in the entire database
Database abstraction levels (3)
Conceptual, logical, physical
Physical level
How data is physically stored on hardware. Handles file storage, access paths, efficiency
Logical level
The structure of the entire database. Defines tables, relationships, data types, constraints
Conceptual level
What users or applications see. Defines user views, hides complexity, controls access
Difference between a transaction and operation
An operation is simple and done in one instruction while a transaction is more complex and may consist of multiple operations