Beginner
60 mins
Teacher/Student led
+130 XP
What you need:
Chromebook/Laptop/PC

Building a Database

In this lesson, you'll create a simple database to store information about your favorite animals. You'll learn how to build tables, add data, and retrieve information from your database.

Teacher Class Feed

Load previous activity

    1 - Setting up SQLite

    Visit the SQLite online editor at sqliteonline.com to start creating your database. You don't need to download or install anything.

    2 - Creating a new table

    Click on 'New Table' to create a new table for your database. Name the table 'Animals'.

    3 - Adding columns

    Add the following columns to your 'Animals' table: 'ID' (integer), 'Name' (text), 'Type' (text), and 'Habitat' (text). Make the 'ID' column the primary key.

    4 - Inserting data

    Now, let's add some data to your table. Insert at least 3 rows of data about your favorite animals, including their name, type, and habitat. For example, you can add data like this:

    1, 'Elephant', 'Mammal', 'Savannah'
    2, 'Penguin', 'Bird', 'Antarctica'
    3, 'Shark', 'Fish', 'Ocean'
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2026. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more