Appendix A. Data Structures

This appendix describes some structures used in several recipes through the book.

There are two objectives in describing them here (besides keeping the explanation in a single place): one is that you understand the structure of the data being used. The second, is allowing you to create your own data in the format of your choice: database, Excel file, and so on, excepting of course, when the data is used in a recipe that explain database steps, in which case the data should be in a database.

Book's data structure

Book's data structure

Books

Field

Description

Example

id_title

Identification for the book. It is a string with the format CCC-CCC (3 characters, a hyphen, and 3 more characters)

123-456

title

Title of the book

The Tommyknockers

id_author

Identification for the author of a book; it references to the author's data

A00002

price

Price for the book. It's a decimal value.

39.00

genre

Genre of the books

Fiction.

Possible values are: Fiction, Non-fiction, Business or Children

Authors

Field

Description

Example

id_author

Identification for the author

A00002

lastname

Author's last name

King

firstname

Author's first name

Stephen

nationality

Author's nationality

American

birthyear

Year of author's birth. It's a numeric value.

1947

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.254.61