Module 51: Introduction to Databases

Lesson 2 of 5 · 15–25 minutes

Files, spreadsheets and databases

🏠The everyday picture

A notebook, a filing cabinet and a library. All store information. Only the library has a catalogue, a librarian, rules for borrowing, and a way to find any book in seconds.

📘What it really is

🖱️Try it

Start the Level 5 assignment: create a spreadsheet of 20 customers (name, phone, city, joined date). Then enter a phone number as text in one row, a date in the wrong format in another, and a duplicate customer. Notice that the spreadsheet accepts all of it. (Use an AI to generate realistic fake data; never use real people's details for practice.)

✅Quick check

Why do two programs writing to the same JSON file risk losing data?

Show the answer

Each reads the whole file, changes it and writes it back; one can overwrite the other's change.

What does a spreadsheet do when you type text into a column meant for dates?

Show the answer

Usually accepts it, so bad data gets in. A database can refuse it.

← PreviousWhat data is, and why it needs care
ProLearners Assist