Books data structure
The Books
database is a simple structure that holds details on a sample list of books and their authors. The recipes that use the Books
database are based on you being part of a fictitious book store. In the following diagram, you can see the relationship between the authors' and books' tables, where a single author can have many books:
Books
The Books
table stores the following details for each book:
Field |
Description |
Example |
---|---|---|
|
Identification for the book. It is a string with the format |
|
|
Title of the book. |
|
|
Identification for the author of a book; it references to the authors' data. |
|
|
Price for the book. It's a decimal value. |
|
|
Genre of the books. |
Possible values are: |
Authors
The Authors
table stores the following details for each author:
Field |
Description |
Example |
---|---|---|
|
Identification for the author |
|
|
Author's last name |
|
|
Author's first name |
|
|
Author's nationality |
|
|
Year of author's birth. It's a numeric value. |
|