← Back to CoursesComputer Science: Intermediate

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Databases and Data Modeling

Manual: General · Subject: Computer Science

Learn how relational databases store information, how queries work, and why schema design matters.

Persisting structured data

Why databases exist

Databases store data reliably, support concurrent access, and make it possible to query information efficiently. Relational databases organize data into tables with rows and columns, while SQL provides a standard way to create, read, update, and delete records.

Relational database basics

Table
A collection of rows with the same columns.
Row
A single record in a table.
Primary key
A field that uniquely identifies a row.
Foreign key
A field that references a row in another table.
Index
A structure that speeds up lookups and joins.

Example schema ideas

EntityPossible columnsNotes
Usersid, name, emailPrimary key on id
Ordersid, user_id, totalForeign key user_id references Users
Productsid, name, priceCan be joined with orders
OrderItemsorder_id, product_id, quantityRepresents many-to-many relationships

What is the main purpose of a primary key?

Why are indexes useful in databases?

Query thinking

SQL queries describe what data you want, not necessarily how to get it. The database optimizer chooses an execution plan. Understanding joins, filters, grouping, and aggregation helps you write better queries and reason about performance.

Which SQL concept combines rows from related tables?

What is normalization trying to reduce?

⚠️

Data design trade-off

Highly normalized designs reduce duplication, but sometimes denormalization is used to improve query speed or simplify analytics.