โ† Computer Science Fundamentals learning path
Computer Science Fundamentals ยท Module 7 of 10

Databases

Databases store and query data reliably.

๐Ÿ“– Key ideas

  1. Relational databases store tables with rows and columns, queried with SQL.
  2. Primary keys identify rows; foreign keys link tables.
  3. Indexes make lookups faster at some cost to writes.
  4. Transactions follow ACID: atomic, consistent, isolated, durable.
  5. NoSQL databases (document, key-value, graph) trade some features for flexibility or scale.
๐Ÿ’ก Real-life example: Like a school office register: one table of students, one of classes, linked by class number.
Primary keyUnique id of a row
Foreign keyColumn that links to another table
IndexStructure that speeds up lookups
TransactionGroup of operations that succeed or fail together