Chapter 1. The example database "exampledb"
Prev | The KNODA user's tutorial | Next

## Chapter 1. The example database "exampledb"

The following chapters describe the example database that will be the basis for all hk_classes tutorials and manuals.

The database is a literature database; it should store the author's names and the titles of their literary works. The data I have actually used in this example database are the names of three famous 18th century German authors and some of their plays.

database name: exampledb

The database contains two tables

- authors

- literature

which are in a one-to-many relationship, which means that a author could have written one or more texts.

## The "authors" table

Table 1.1. structure of the "authors" table

Fieldname | Type | Description
--- | --- | ---
author_id | auto increment | unique identification number for each author
name | text 255 | the name of the author
birthyear | text 6 | year of his birth
deathyear | text 6 | year of his death

Table 1.2. the data in the "authors" table

author_id | name | birthyear | deathyear
--- | --- | --- | ---
1 | Goethe, Johann Wolfgang von | 1749 | 1832
2 | Schiller, Friedrich von | 1759 | 1805
3 | Lessing, Gotthold Ephraim | 1729 | 1781

Prev | Up | Next
The KNODA user's tutorial | Home | The "literature" table