23 lines678 B

Lesson 1: Tables, rows and SELECT

In this lesson you'll work through tables, rows and SELECT step by step, with short exercises after each idea.

Read the full lesson: https://glibcode.net/courses/sql-essentials/lessons/1

Files

  • select.sql: SELECT columns and expressions from one table

Tip: Write the FROM and JOIN lines first, then SELECT: it matches how the database reads the query.

Run it

sqlite3 shop.db < ../../setup/schema.sql
sqlite3 shop.db < ../../setup/seed.sql
sqlite3 shop.db < select.sql

Exercises

See exercises.md. Ask in the forum once you've tried.