MySQL · Beginner READ & PRACTISE

MySQL Fundamentals

Learn to design tables and write SQL to store, retrieve, and relate data — the backbone of every dynamic website.

1

units

11

lessons

22

practice questions

~165

minutes

Start learning today

Create a free account, then unlock this and every other Pro course with Learnix Pro for KES 999/month.

Create free account I already have an account

Outcomes

What you'll be able to do

Understand tables, rows and columns

Write CREATE TABLE statements with sensible data types

Insert, select, update and delete data with SQL

Filter and sort results with WHERE and ORDER BY

Join related tables together

Summarize data with aggregate functions and GROUP BY

How it works

Read it, see it, practise it

Each lesson explains one topic clearly, shows worked examples, checks your understanding with quick questions and ends with a practical task you complete yourself.

Clear explanations

Step-by-step lessons in plain language

35 in this course

Worked examples

Real code and examples you can copy and run

43 in this course

Quick checks

Test your understanding as you go

11 in this course

Fill the blank

Recall the key commands and syntax

11 in this course

Hands-on workspace

A practical task at the end of every lesson

11 in this course

Syllabus

Everything you'll encounter

1

Databases, Tables, and SQL

A database is just a very organized set of spreadsheets, and SQL is the language you use to ask it questions and give it instructions.

2

Creating Tables & Choosing Data Types

Before a table can hold any data, CREATE TABLE has to define its columns up front — including what TYPE of value each column is allowed to hold.

3

Inserting & Querying Data

INSERT is how you add new rows to a table, and SELECT is how you read them back — with WHERE to narrow down which rows you want, and ORDER BY to put them in a sensible order.

4

Updating & Deleting Data

UPDATE changes existing rows and DELETE removes them entirely — both are permanent the instant they run, and both are genuinely dangerous without a WHERE clause.

5

Relating Tables with JOIN

Real-world data almost never fits in one giant table — JOIN is how you pull matching rows from two separate, related tables back together into a single result.

6

Aggregate Functions & GROUP BY

COUNT, SUM, AVG and friends squash many rows down into a single summary number — GROUP BY simply runs that same summary separately for each distinct category instead of for the whole table at once.

7

Indexes and Why They Matter

An index lets MySQL find rows without scanning the entire table one row at a time — the same trick as a book's index letting you jump straight to a page instead of reading it cover to cover.

8

JOIN Types in Depth: INNER, LEFT, and RIGHT

The earlier JOIN lesson showed matching rows from two tables — but what happens to rows that DON'T have a match on the other side depends entirely on which type of JOIN you choose.

9

Transactions: COMMIT and ROLLBACK

A transaction groups several SQL statements into one all-or-nothing unit — either every single one of them succeeds together, or none of them take effect at all, which matters enormously the moment money or related records are involved.

10

Views: Saving a Query as a Virtual Table

A VIEW lets you save a complicated SELECT under a simple name and query it as though it were an ordinary table — the query itself only has to be written once, correctly, and then reused everywhere.

11

Database Normalization Basics: 1NF, 2NF, 3NF

Normalization is a set of practical guidelines for splitting data into well-organized tables so nothing gets duplicated and nothing gets stuck in an inconsistent state — 1NF, 2NF and 3NF are just three checkpoints along that path, each building on the one before.

Finish the course, earn a verifiable certificate

Complete every lesson to receive a Learnix certificate with a unique number anyone can verify online.

Helping with:

🍪 We use essential cookies to keep you signed in, protect your account and remember your settings. We don't use advertising or tracking cookies. Read our Privacy Policy.