๐Ÿ—„๏ธ Introduction to Databases

Learn Concepts, Tables, Records & Fields, and DBMS โ€” step by step.

What is it?

A database is an organized place to keep data

Data is facts, like names, prices, or dates. A database stores data in an organized way so we can find, add, change, and delete it quickly.

Simple idea: think of a school filing cabinet. Without labels, finding one paper is slow. With folders and labels, it takes seconds. A database is a digital filing cabinet.

Key words

Tap a card to flip it

Why important

Why do we need databases?

โœ” Fast: find one item among millions in a moment.
โœ” Organized: no messy or repeated data.
โœ” Shared: many people use the same data at once.
โœ” Safe: data can be protected and backed up.

Real life

Where are databases used? Tap one:

๐Ÿ‘† Choose one.

The future

Looking ahead

Every app produces more data each year. AI needs good, clean data to learn. People who understand databases can work in data analysis, web development, and AI. Many cloud services now offer databases that you can start in minutes.

What is it?

A table stores one kind of thing

A table is like a spreadsheet page. It has columns (going down) and rows (going across). One table keeps one topic, for example Students, Books, or Products.

Why important: tables keep data neat. Different topics go in different tables, so nothing gets mixed up.

๐Ÿงช Try it: choose a table and add a record

Real life

An online shop has a Customers table, a Products table, and an Orders table. Each one is separate, but they can be linked.

The future

Tables are the base of SQL, the most popular database language. Learning tables first makes SQL much easier.

What is it?

Records and Fields

A field is one column. It is one type of information, like Name or Age.
A record is one row. It is all the information about one thing, like one student.
A cell is one value where a row and a column meet.

Every record should have a unique ID (called a primary key). Two students may have the same name, but never the same ID.

๐Ÿ” Explorer: choose a mode, then tap the table

Pick a mode first.

Why important

Good fields make data clear. If you put "Sari 16 10A" in one field, you cannot sort by age. Small fields = powerful searching.

Real life

Your school ID card is one record. It has fields: name, ID number, class, and photo.

The future

AI models learn from records and fields. Clean fields mean better predictions.

๐ŸŽฏ Quick check

In a "Students" table, what is "Name"?

What is it?

DBMS = the manager of the database

A DBMS (Database Management System) is software that creates and controls databases. You do not touch the data files directly. You ask the DBMS, and it does the work.

Simple idea: the database is a library. The DBMS is the librarian who finds, adds, and removes books for you.

Examples: MySQL, PostgreSQL, SQLite, Microsoft Access, MongoDB.

Why important

The DBMS gives you four basic actions, called CRUD: Create, Read, Update, Delete. It also handles security, backup, and many users at the same time.

๐Ÿง‘โ€๐Ÿ’ป Mini DBMS: Library

Try all four actions. See the SQL command the DBMS would use.

-- SQL will appear here
Real life

When you log in to a social app, a DBMS checks your username. When you post a photo, it saves a new record.

The future

Modern DBMS run in the cloud and connect with AI. Developers can ask questions in plain language and the system makes the query.

๐Ÿ† Final quiz