Amigo code

Learn to code › SQL

Learn SQL for beginners.

SQL is how you ask a database questions: who, how many, which. Almost every app that stores information uses it.

What you can make with SQL

Your first SQL program

SELECT 'Hello, world!' AS greeting;

SELECT asks the database for something. Here it answers with one row that has the words and the column name greeting.

SQL lessons, step by step

  1. 1Tables

    Rows and columns that hold data.

  2. 2SELECT

    Ask for the data you want.

  3. 3WHERE

    Pick only some rows.

  4. 4ORDER BY

    Sort the answers.

  5. 5INSERT and UPDATE

    Add and change rows.

  6. 6JOIN

    Connect two tables.

  7. 7A tiny database

    Make one for your favourite things.

Start the lessons with AmigoTick off each step, ask for a quiz, or have Amigo build an example.

Free books and guides

Other languages