Courses / Start here / SQL and Database Foundations

Free courseSelf-paced

SQL and Database Foundations

Build a constrained relational library database in SQLite with tested queries, safe transactions and a verified backup and restore.

  • Who it's for. Beginners to SQL who can already break a problem into steps and use a terminal.
  • Before you start. Programming Problem Solving or equivalent: break a problem into steps, trace a short program, run a terminal command and edit a text file.
  • 24 to 41 hours of study with practice
  • 8 modules, 48 lessons
  • 5 guided projects and a final project

What you'll learn

  • Declare required, unique, check and foreign-key rules in SQLite and prove with invalid inserts that they are enforced.
  • Write SELECT queries with correct filtering, NULL handling, ordering, paging and bound parameters.
  • Join tables, including absent matches and many-to-many routes, and detect row multiplication before aggregating.
  • Produce grouped reports whose totals reconcile to the source.
  • Package a database with scripts, backups, integrity checks and restart evidence.

Skills you'll gain

  • Relational data
  • Constraints
  • integrity
  • Queries
  • filtering
  • Relationships
  • joins
  • Aggregation
  • Schema design
  • Transactions
  • Persistence
  • integration

Tools you'll use

  • SQL
  • SQLite
  • Python sqlite3 module

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 3 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 2

    Model and constrain data

    Define tables, keys and relationships, then enforce rules with constraints.

    You build: Library data model and a constrained schema with negative tests.

  2. 02

    Modules 3 to 5

    Query and report

    Filter and order rows, join related tables and build aggregate reports.

    You build: Tested catalogue and relationship queries.

  3. 03

    Modules 6 to 8

    Design, transact and deliver

    Normalise the schema, use transactions, and package the database with backups and integration.

    You build: Reconciled reports and design record, then transactional checkout and return.

Full curriculum

8 modules and 48 lessons, 24 to 41 hours of study

01Relational data6 lessons, 3 to 4 hours

Lessons

  • Tables and records
  • Schema and types
  • Keys and identity
  • Relationships
  • SQLite workspace
  • Data requirements

After this module you can

  • Distinguish a row from a column and define the data grain.
  • Choose types consistent with stored meaning.
  • Translate a bounded library workflow into data requirements.
02Constraints and integrity6 lessons, 3 to 4 hours

Lessons

  • Required values
  • Primary keys
  • Foreign keys
  • Unique constraints
  • Check constraints
  • Invalid inserts

After this module you can

  • Choose nullable versus required fields deliberately.
  • Define unique record identity.
  • Observe rejection without claiming all domain validation is complete.
03Queries and filtering6 lessons, 3 to 4 hours

Lessons

  • Select columns
  • Where conditions
  • Null comparisons
  • Ordering and limits
  • Parameter binding
  • Query validation

After this module you can

  • Retrieve required fields without unnecessary data.
  • Filter rows under explicit comparison rules.
  • Compare results against synthetic cases with known meaning.
04Relationships and joins6 lessons, 3 to 4 hours

Lessons

  • Inner joins
  • Left joins
  • Join predicates
  • Many-to-many queries
  • Duplicate row effects
  • Library query feature

After this module you can

  • Retrieve matching related records.
  • Preserve rows without a matching related record.
  • Implement a relationship query with meaningful absent-match cases.
05Aggregation6 lessons, 3 to 4 hours

Lessons

  • Count and sum
  • Grouping
  • Having
  • Distinct values
  • Aggregate null behavior
  • Reporting feature

After this module you can

  • Define what each aggregate measures.
  • Aggregate at the required grain.
  • Build a report whose totals reconcile to its input.
06Schema design6 lessons, 3 to 4 hours

Lessons

  • Functional dependencies
  • Normalization
  • Denormalization trade-offs
  • Schema changes
  • Indexes and lookup
  • Design review

After this module you can

  • Identify facts that belong together.
  • Separate facts to reduce update inconsistencies.
  • Explain the library schema and its constraint choices.
07Transactions6 lessons, 3 to 4 hours

Lessons

  • Atomic operations
  • Commit and rollback
  • Concurrent access
  • Isolation boundaries
  • Failure and state
  • Transactional feature

After this module you can

  • Group dependent changes under one commit boundary.
  • Observe success and deliberate cancellation.
  • Demonstrate a bounded operation with meaningful rollback evidence.
08Persistence and integration6 lessons, 3 to 4 hours

Lessons

  • Connection lifecycle
  • Application data boundary
  • Backup and restore lab
  • Integrity checks
  • Restart behavior
  • Final database project

After this module you can

  • Open and close database resources deliberately.
  • Separate SQL access from application rules.
  • Submit schema, queries, tests and an actual workflow demonstration.

What you'll build

5 guided projects along the way, then a final project.

  • Library data model and requirements

    after module 1
  • Constrained schema with negative tests

    after module 2
  • Tested catalogue and relationship queries

    after module 4
  • Reconciled reports and design record

    after module 6
  • Transactional checkout and return

    after module 7

Final project

Choose one: a community library lending database, a tool-lending library database or a sports club equipment booking database.

What you submit

Setup script, seed data, query suite with fixtures and expected results, data-access module, tests, backup and verify scripts, design record and README.

How it's reviewed

Rubric: schema and constraints 30%, queries and reports 25%, transactions and integrity 20%, persistence and packaging 15%, communication 10%, plus a trainer-reviewed live demonstration from empty database to restored copy.

Where you'll use it

  • Write a monthly report query and prove its totals reconcile with the raw rows.
  • Add constraints to a table so invalid records are rejected by the database rather than by hand.

Roles that use these skills

  • Database developer (junior)
  • Data analyst
  • Backend developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

Do I need to know SQL?

No prior SQL is assumed.

Which database is used?

SQLite, with Python's sqlite3 module in a few lessons.

What does the final demonstration show?

The workflow from an empty database to a restored copy that passes integrity checks.

Be first in when SQL and Database Foundations opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
FreeOpens soon
Notify me