Master Revision Deck 1 Flashcards
(181 cards)
[Understanding DB] What is a database?
A structured data storage designed for ease of data accessibility, manipulation, and manageability.
[Understanding DB] Why use a database instead of storing data in files?
Databases support data integrity, allow constraints, enable efficient querying, and provide better security through authentication and authorization.
[Understanding DB] What is structured data?
Data that can be organized in tables, such as relational databases, spreadsheets, or logs.
[Understanding DB] Give 3 real-world examples of structured data.
Relational database with customer records, Excel employee spreadsheet, bank transaction log.
[Understanding DB] What is unstructured data?
Data that lacks a predefined format, and cannot be organized in tables.
[Understanding DB] Give 3 real-world examples of unstructured data.
Social media posts, scanned PDF contracts, audio files from support calls.
[Understanding DB] What are ACID properties in databases?
Atomicity, Consistency, Isolation, Durability — they ensure reliable transactions.
[Understanding DB] What does Atomicity ensure?
That a transaction fully succeeds or fully aborts — no partial changes.
[Understanding DB] What does Consistency ensure?
That the data remains valid before and after a transaction.
[Understanding DB] What does Isolation ensure?
That transactions do not interfere with each other.
[Understanding DB] What does Durability ensure?
That once committed, a transaction’s changes are permanently saved.
[Understanding DB] Why are queries better than file system searches?
Because queries allow targeted retrieval, while file systems often require full scans.
[Understanding DB] Why are constraints important in databases?
They enforce data correctness, preventing invalid or absurd entries.
[Understanding DB] How do databases offer better security than files?
Through authentication and authorization mechanisms.
[Understanding DB] List four main types of databases.
Relational, NoSQL, Graph, Object-Oriented.
[Understanding DB] Which type of database uses tables and keys?
Relational databases.
[Understanding DB] Which type of database is best for unstructured or flexible data?
NoSQL databases.
[Understanding DB] Which database type focuses on relationships and connections?
Graph databases.
[Understanding DB] Which database stores data like object-oriented code?
Object-Oriented databases.
[Relational DB] What is a relational database?
A database that stores data in tables, with rows as data records and columns as attributes.
[Relational DB] How is data organized in a relational database?
Into multiple tables connected by primary and foreign keys.
[Relational DB] What is the role of primary and foreign keys?
To uniquely identify records and link related data across tables.
[Relational DB] Why must all attributes in a table depend only on the primary key?
To ensure data integrity and prevent anomalies.
[Relational DB] What does it mean to give every informational theme its own table?
Each distinct business concept is stored separately for clarity and normalization.