📘 CodingMarble Learn

Developing Information Systems with Spreadsheets and Databases

A small information system can be built with a spreadsheet or with database software. A spreadsheet is quick: input cells hold facts and formula cells calculate results automatically. But when facts such as a customer's name repeat in every row, mistakes and wasted space grow. A database stores each fact once in a table and links tables with keys. Whichever tool is used, development follows steps: find the need, design, build, test and use.

🎬 Step-by-step story

  1. A small shop keeps orders on paper slips. Slips get lost, written twice or added up wrongly. It needs an information system.
  2. Spreadsheet system: type quantity and price in input cells. The total is a formula cell, so it changes by itself.
  3. A spreadsheet repeats facts. Asha's name and phone are typed again for every order, and each copy can have a typing mistake.
  4. Database system: customer details are stored once in one table. Each order keeps only the customer ID, a key that links to it.
  5. Build in steps: need, design, build, test, use. A bug found in Test sends you back to Build.
  6. Free play: add orders and count how many copies of customer details each system stores.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why not keep everything on paper slips?

Slips get lost, are written twice and are added up by hand with mistakes. A system saves, adds and searches for you.

What makes a spreadsheet update by itself?

A formula cell uses other cells. When an input cell changes, the formula runs again. Watch the Qty and Total change.

Why is repeating the customer's name a problem?

Each copy can be typed differently, and a change needs many edits. The more copies, the more chances of mistakes.

What is the key for?

The key (customer ID) is the thread that links an order to the one place where the customer details are stored.

Why do we go back to Build after testing?

Testing finds bugs. Fixing a bug means changing what was built, so the work loops back.

When should I choose a database?

When data is large, facts repeat, or many people share it. For a small one-person job a spreadsheet is enough.

Developing a system with a spreadsheet

A spreadsheet is a grid of cells. Each cell holds a number, a word or a formula.

Design a spreadsheet system like this:

Good for: small jobs, quick calculations, one or two users.

Weak at: the same fact typed again and again, many users editing at once, and large amounts of data.

Developing a system with database software

A database stores data in tables. A table has rows (records) and columns (fields).

Customer details live in the Customers table once. The Orders table holds only the Customer ID. When a phone number changes, you change it in one row, and every report is right. This avoids data redundancy (repeated data) and mismatched copies.

Steps to develop either system

  1. Need: ask users what they must record and what reports they want.
  2. Design: list the data, decide columns or tables, draw how tables link, plan formulas.
  3. Build: create the sheet or tables, formulas and forms.
  4. Test: enter normal, extreme and wrong values, compare results with a hand calculation, fix bugs.
  5. Use and improve: train users, take backups, and change the system as needs change.

Choosing: start with a spreadsheet for a small, single-user job. Move to a database when data grows, facts repeat, or many people need to share it safely.

Try it: tuition fee tracker

On paper, draw a fee tracker for five students. First as one sheet with columns Name, Phone, Month, Amount. Count how many times the phone numbers are written. Then draw it as two tables (Students with ID; Payments with Student ID). Count again. Compare with the free-play step in the 3D.

Key formulas and definitions

Worked examples

1. Cell B2 holds 4 and C2 holds 25. D2 has the formula =B2*C2. What does D2 show? What happens if B2 becomes 6?

D2 shows 4 × 25 = 100. If B2 becomes 6, D2 updates to 150 by itself.

2. A sheet has 30 orders from the same customer, with the name and phone in every row. How many copies of the phone number are stored? How many would a database store?

The sheet stores 30 copies. A database stores 1 copy in the Customers table; the 30 orders store only the customer ID.

3. In an Orders table, which field is the foreign key: OrderID, CustomerID, Item?

CustomerID. It holds the primary key of the Customers table and links each order to its customer.

4. Which tool is better for (a) a quick total of this week's bills, (b) a shop with 5000 customers and 3 staff all entering orders?

(a) A spreadsheet is quick and enough. (b) A database, because data repeats, is large and is shared by several people.

Common mistakes

Practice quiz

1. Which cell type changes by itself when you change an input?
2. Which problem does a database solve better than a spreadsheet?
3. A primary key is:
4. What links an order to its customer in a database?
5. What comes just after 'build' when developing a system?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the difference between a spreadsheet and a database?

A spreadsheet is a grid for quick calculations. A database stores data in linked tables, keeps each fact once and handles larger, shared data.

What are the steps to develop an information system?

Find the need, design, build, test, then use and improve it.

What are a primary key and a foreign key?

A primary key is a field that is unique in each row. A foreign key is a field in another table that holds that value to link the rows.

Where this is taught

Japan高校(専門学科)1〜3年Using Software

Learn first

Learn next

Related lessons

All Computer Science lessons