Skip to content
Exit presentation

Data Handling II: Databases & Structured Data

The big picture

Eight ideas, one line each. Every count below came from a real run.

Data Handling II — eight ideas, in order
IdeaRememberExample
One record, one rowA row is four values kept together, found by two positions.rows[2][3] → 1450
The naming valueA key is a column whose values each name one record.Ananya is shared; admission is not
Naming the columnsA header name becomes a position; minus one means absent.indexOf('marks') → −1
Asking one conditionA query walks every row and keeps the matches.due 1450: 4 of 12
Two conditionsA row must meet both conditions — fewer rows or the same.9-A and due ≥ 1000: 4 of 12
The answer, in orderSame passes, moving whole rows. Two tied rows are never swapped with each other.smallest due in the four rows: A-107
Counting the groupsCount the answer, not the table. Groups listed first show a 0.9-A 4, 9-B 4, 10-C 0
What a database addsA database program can give the same answer as the walk, on much bigger tables.12 rows now, thousands later

One point holds for all eight. Every number above came from a real run, never from memory.

Next term the questions turn to a program's guesses. Your next track is How AI Learns II: Neural Networks Intuition.

Jump to lesson

This track

  1. 0 Start here
  2. 1 One record, one row
  3. 2 The naming value
  4. 3 Naming the columns
  5. 4 Asking the register one question
  6. 5 Two conditions, both true
  7. 6 The answer, in order
  8. 7 Counting the groups in the answer
  9. 8 What a database adds
  10. 9 The big picture
  11. 10 Track quiz

Other tracks