Logo hdtoledo
hdtoledo.dev
Módulos_del_Sistema
MÓDULO_TEÓRICO

Doña Pepa's Problem

Doña Pepa's Mini-Market

Doña Pepa's Store

Doña Pepa owns a neighborhood store where she sells groceries, baked goods, and grains. For years, she has kept track of everything in a simple notebook: "Juan owes me $2 for bread," "I bought 10 kilos of rice," etc.

But the store has grown. Now she has over 500 products, suppliers who change prices every week, and customers asking for quick receipts. The notebook is no longer enough. There are scribbles, lost pages, and sometimes Pepa sells bread she doesn't actually have in stock because she forgot to write it down.

This is where Relational Databases (SQL) come in!

A Relational Database is like a super-smart digital notebook. Instead of pages, we use Tables (like Excel sheets). And the magic of "Relational" means we can connect the "Customers" sheet with the "Sales" sheet and the "Products" sheet, without having to rewrite everything.

What will you learn in this course?

Throughout this course, we will move from theory to practice by helping Doña Pepa digitize her store. You will learn to:

  1. Design and Model: Identify the business entities (Products, Customers, Sales) and relate them correctly.
  2. Create Structures (DDL): Build tables in the database using SQL.
  3. Manipulate Data (DML): Insert, update, delete, and query the store's inventory.
  4. Optimize and Scale: Normalize data to avoid redundancies and create indexes for ultra-fast searches.
  5. Secure Information: Use transactions (ACID) so that money or inventory is never lost if the system fails.

What technologies will we implement?

To provide a real and complete solution for Doña Pepa, you won't just learn isolated SQL. At the end of the course, we will connect the database to a real system using:

  • MySQL / PostgreSQL: The relational database engine where all the mini-market's information will live.
  • Node.js and Express (Backend): We will create an intermediary server that receives sales requests and communicates with the database using SQL.
  • HTML and CSS (Frontend): We will build a very simple web interface (The Cash Register) so Doña Pepa can easily enter new products from her browser.

Get ready to get your hands dirty with real code and solve a problem from start to finish!