Free Programming Books
Free download ebooks on computer and programming | |||
Free Ebook "The Definitive Guide to MySQL 5, Third Edition" Sample Chapter
The Definitive Guide to MySQL 5
Download chapter
Free Download Chapter 8: Database Design MySQL 5 is slated to be the most significant release in the product's history. The Definitive Guide to MySQL 5, Third Edition, is the newest revision of Michael Kofler's popular book. This is the first book to offer in-depth instruction about the new features of the world's most popular open source database server. Updated to reflect changes in MySQL version 5, this book will expose you to MySQL's impressive array of new features: views, stored procedures, triggers, and spatial data types. Whether you're a novice or intermediate user, you will benefit from extensive coverage of core MySQL features like user administration, basic and advanced querying, and security. You will also be introduced to several standard and third-party tools, like MySQL Administrator, Query Browser, and the popular PHPMyAdmin tool. Tips and Tricks on Database Design
Rules for Good Database Design
These rules have the same import as the normalization rules presented in the next section, but these here are often easier to follow. Tips for Naming
Tips on the Design ProcessIt is no easy matter to distribute a collection of data efficiently and intelligently among several tables. Novices in the area of database design should take the following suggestions to heart:
Normalization RulesWhy is it that authors of books think about nothing (well, almost nothing) but books? The author begs the indulgence of his readers in that the example in this section deals with books. The goal of the section is to create a small database in which data about books can be stored: book title, publisher, author(s), publication date, and so on. These data can of course, be stored without a database, in a simple list in text format, for example, as appears in the Bibliography at the end of this book:
This is a nice and convenient list, containing all necessary information. Why bother with all the effort to transform this text (which perhaps exists as a document composed with some wordprocessing program) into a database? Needless to say, the reasons are legion. Our list can be easily searched, but it is impossible to organize it in a different way, for example, to create a list of all books by author x or to create a new list ordered not by author, but by title. The resulting database mylibrary will be improved step by step in the course of this chapter. The finished database is available for download at the Apress website. In addition, the mylibrary database is the basis for countless examples in this book. | |||