SQLite · Beginner READ & PRACTISE

SQLite Essentials

SQLite is the most widely deployed database in the world: it lives inside Android and iPhone apps, browsers, and desktop software, with no server to install. Learn SQL hands-on with live exercises in your browser using a chama (savings group) database, then use SQLite from Python and mobile apps.

4

units

20

lessons

81

practice questions

~300

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 what makes SQLite different (serverless, one file)

Create tables and insert, query, update and delete data

Filter, sort, join and summarise with SQL

Use dates, JSON, views, triggers and full-text search

Keep data safe with constraints, transactions and backups

Use SQLite from Python and in mobile apps

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

20 in this course

Worked examples

Real code and examples you can copy and run

19 in this course

Quick checks

Test your understanding as you go

60 in this course

Fill the blank

Recall the key commands and syntax

20 in this course

Hands-on workspace

A practical task at the end of every lesson

20 in this course

Syllabus

Everything you'll encounter

1

What Is SQLite?

A complete SQL database in a single file, with no server. Where it is used and when to choose something bigger.

2

Tools: the sqlite3 Shell & DB Browser

Open and explore SQLite files with the command-line shell and the free DB Browser for SQLite.

3

Creating Tables & SQLite Types

CREATE TABLE in SQLite, its flexible type affinity, and STRICT tables for exact types.

4

Inserting & Selecting Data

INSERT rows, SELECT columns, rename with aliases, calculate values and remove duplicates.

5

Updating & Deleting Safely

Change and remove rows with UPDATE and DELETE, use RETURNING, and avoid the classic missing-WHERE disaster.

1

Filtering & Sorting

WHERE with AND/OR, IN, BETWEEN, LIKE and NULL, ORDER BY and LIMIT.

2

Joining Tables

Combine members with their contributions and loans using INNER and LEFT joins.

3

Totals, Averages & GROUP BY

Summarise with COUNT, SUM, AVG, MIN and MAX, group by member or month, and filter groups with HAVING.

4

Subqueries, CTEs & Window Functions

Step-by-step queries with WITH, comparisons with subqueries, and rankings with window functions (all supported by SQLite).

5

Dates & Text Functions

Work with dates using date(), strftime() and julianday(), and tidy text with upper, trim, replace and substr.

1

Constraints & Foreign Keys

NOT NULL, UNIQUE, CHECK and foreign keys, and why SQLite needs PRAGMA foreign_keys = ON.

2

Indexes & EXPLAIN QUERY PLAN

Speed up lookups on big tables with indexes and confirm they are used with EXPLAIN QUERY PLAN.

3

JSON in SQLite

Store and query JSON with json_extract and the -> / ->> operators, and expand arrays with json_each.

4

Views & Triggers

Save reports as views and automate rules with triggers, such as keeping a balance or an audit log up to date.

5

Transactions, Locking & WAL Mode

Group changes with BEGIN/COMMIT/ROLLBACK, understand SQLite's single-writer model, and use WAL mode for better concurrency.

1

SQLite from Python

Use Python's built-in sqlite3 module: connect, create tables, insert with parameters and query rows.

2

Full-Text Search with FTS5

Build fast, ranked search for notes, messages or products with SQLite's FTS5 extension.

3

SQLite in Mobile & Web Apps

How Android (Room), Flutter (sqflite/drift), iOS and browsers use SQLite for offline-first apps that sync later.

4

Backups, Integrity & Performance Tips

Back up a live SQLite database safely, check its integrity, and keep it fast.

5

Project: A Chama Treasurer Tool

Build a complete SQLite-backed tool for a savings group: members, contributions, loans, fines and monthly statements.

Finish the course, earn a verifiable certificate

Complete every lesson, then pass the 20-question final exam (70% to pass, unlimited retakes), 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.