Tutelage

Lessons › coding and computer science · taught by Leo

Databases explained: rows, columns, and records

Learn how databases store organized facts in rows and columns, and how to search, filter, sort, and update records.

Learn this with Leo, freeA voiced lesson with a live whiteboard, quizzes and a tutor you can call, at tutelage.app

Why databases beat messy lists

Think of data like school papers. A database is the neat cabinet, not the messy pile.

It helps you store, find, and update information without getting lost.

A database stores related facts

A database is a place to keep information in a structured way so a computer can search, sort, and change it easily.

The big idea is structure. Related facts stay together in a planned format.

That structure is what makes databases fast and reliable.

Predict the best database use

Which task fits a database best?

  1. Keeping student names and grades
  2. Writing a poem
  3. Drawing a poster
Show answer

Keeping student names and grades: Yes. Databases are great for organized facts that you need to search and update.

Tables hold rows and columns

Most databases look like tables. Rows are records, and columns are fields.

One row is one thing, like one student. One column is one detail, like grade.

rows and columns

Worked example: a student table

Let’s use a simple student database. Watch how each change is small and exact.

First, we add one new row for a new student. That is how databases store a new record.

Next, we search by name and read one column. That is a query.

Then we update one cell instead of rebuilding everything.

What should happen next?

You want to add one new customer to a database. What should you do?

  1. Add a new row
  2. Delete the table
  3. Turn the table sideways
Show answer

Add a new row: Correct. A new record is usually a new row.

Why the structure matters

Databases work well because each piece of information has a clear place. That makes searching, sorting, and updating much easier.

Why does this matter? Because computers like clear rules.

When every field has a job, the system can find answers quickly.

Find, sort, and filter records

A database can start with all records, then narrow the list.

Filtering picks the records you want. Sorting puts them in an order you want.

That is how you turn a huge table into a useful answer.

filter → sort

Find the right column

In a table of books, which column would help you find the author?

  1. Title
  2. Author
  3. Pages
Show answer

Author: Yes. The author column stores the author name.

Watch out: record vs field

A common mistake is mixing up rows and columns.

A row is the whole record. A column is one field inside it.

Choose the right idea

If you change a student's grade, are you changing a record or a field?

  1. A field
  2. A whole new database
  3. A folder name
Show answer

A field: Right. You are changing one field inside a record.

Recap: how databases work

Here is your checklist: store related facts, use rows and columns, search and filter, then update one cell.

If the data is organized, the database can do its job fast and cleanly.

store → search → update
Learn this with Leo, freeA voiced lesson with a live whiteboard, quizzes and a tutor you can call, at tutelage.app