area_end found for "osa1" without corresponding start. Fix this to get rid of this warning.
area_end found for "osa2" without corresponding start. Fix this to get rid of this warning.
area_end found for "osa3" without corresponding start. Fix this to get rid of this warning.
area_end found for "osa4" without corresponding start. Fix this to get rid of this warning.
area_end found for "osa5" without corresponding start. Fix this to get rid of this warning.

English version of the materials are work in progress!

Expect bugs, typos, and other issues. The English version is expected to be completed during spring 2026.

Exercise: Creating a Database with SQL

In Exercise 3.1 we defined a relational database schema for a student database. In this exercise, we will build the actual student database based on the relational database schema from the previous exercise.

In this course, SQLite software is used for creating and processing relational databases. SQLite is a database management system suitable for creating and managing small relational databases. In SQLite, databases are defined and managed with SQL query language.

This exercise is a continuation of Exercise 3.1. Do Exercise 3.1 first before starting this exercise.

Before starting the exercise, familiarize yourself with the following chapters:

  • Chapter 4.1, which discusses the basic idea and essential concepts of SQL language.

  • Chapter 4.3, which presents CREATE TABLE syntax intended for defining database structure.

  • Chapter 4.2, which presents syntax of SQL's Data Control Language (DCL). In this exercise, it is enough to initially glance through the chapter. You will get to practice SQL language much more extensively in Exercise 4.2.

Huomautus

Jos huomaat virheitä tai sinulla on kysyttävää tehtävistä, ota yhteyttä kurssin opettajiin

Assignment

Let's continue with the student database worked on in Exercise 3.1. We will form an SQLite database based on the structure of the student database prepared in the previous exercise.

Follow the steps in the sections below and complete the answers in the submission boxes below based on them. You will find a check button at the end of each section with which you can test the correctness of your answer.

Defining Table Structure

# openTables

Lopuksi

Kun olet valmis, voit jatkaa eteenpäin muihin harjoitustehtäviin.

Voit antaa lyhyen itsearvion onnistumisestasi ja yleisesti palautteen harjoituksesta alla.

# palaute

These are the current permissions for this document; please modify if needed. You can always modify these permissions from the manage page.