
Creating your MySQL Database: Practical Design Tips and Techniques
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
- Design your data with future growth in mind
- Practical examples from initial ideas to final designs
- The quickest way to learn how to design good data structures for MySQL
Book DescriptionFor most of us, setting up the database for an application is often an afterthought. While you don't need to be a professional database designer to create a working application, knowing a few insider tips and techniques can make both the process easier and the end result much more effective. This book doesn't set out to make you an expert in data analysis, but it does provide a quick and easy way to raise your game in this essential part of getting your application right.What you will learn - Asking users the right questions to collect relevant data for the system you are building
- Detecting bad structures
- Sound data-naming techniques, for both table and column names
- Modeling data with future growth in mind
- Implementing security policies with data privileges and views
- Tuning the structure for performanceProducing system documentation (data dictionary, relational schema)
- Testing the model with appropriate SQL queries
Who this book is forAnyone working with applications that use a MySQL database backend will benefit greatly from the advice and techniques in this book. Although a working knowledge of both SQL and MySQL is assumed, the book is suitable for both beginners and intermediate users alike. Whether you read it through and absorb the advice or work through it on a live project, the efficiency and maintainability of your databases will certainly improve as a result.
All prices
More details
Other editions
Additional editions

Content
- Intro
- Creating your MySQL Database: Practical Design Tips and Techniques
- Table of Contents
- Creating your MySQL Database: Practical Design Tips and Techniques
- Credits
- About the Author
- About the Reviewer
- 0. Preface
- What This Book Covers
- What You Need for This Book
- Conventions
- Reader Feedback
- Customer Support
- Downloading the Example Code for the Book
- Errata
- Questions
- 1. Introducing MySQL Design
- MySQL's Popularity and Impact
- The Need for MySQL Design
- What do I do Next?
- Data Design Steps
- Data as a Resource
- But this is my Data!
- Data Modeling
- Overview of the Relational Model
- Rule #1
- Rule #2
- Simplified Design Technique
- Case Study
- Our Car Dealer
- The System's Goals
- The Tale of the Too Wide Table
- Summary
- 2. Data Collecting
- System Boundaries Identification
- Modular Development
- Model Flexibility
- Document Gathering
- General Reading
- Forms
- Existing Computerized Systems
- Interviews
- Finding the Right Users
- Perceptions
- Asking the Right Questions
- Existing Information Systems
- Chronological Events
- Sources and Destinations
- Urgency
- Avoid Focusing on Reports and Screens
- Data Collected for our Case Study
- From the General Manager
- From the Salesperson
- From the Store Assistant
- Other Notes
- Summary
- 3. Data Naming
- Data Cleaning
- Subdividing Data Elements
- Data Elements Containing Formatting Characters
- Data that are Results
- Data as a Column's or Table's Name
- Planning for Changes
- Pitfalls of the Free Fields Technique
- Naming Recommendations
- Designer's Creativity
- Abbreviations
- Clarity versus Length: an Art
- Suffixing
- The Plural Form
- Naming Consistency
- MySQL's Possibilities versus Portability
- Table Name into a Column Name
- Summary
- 4. Data Grouping
- Initial List of Tables
- Rules for Table Layout
- Primary Keys and Table Names
- Data Redundancy and Dependency
- Composite Keys
- Improving the Structure
- Scalability over Time
- Empty Columns
- Avoiding ENUM and SET
- Multilingual Planning
- Validating the Structure
- Summary
- 5. Data Structure Tuning
- Data Access Policies
- Responsibility
- Security and Privileges
- Views
- Storage Engines
- Foreign Key Constraints
- Performance
- Indexes
- Helping the Query Optimizer: Analyze Table
- Accessing Replication Slave Servers
- Speed and Data Types
- Table Size Reduction
- In-Column Data Encoding
- Case Study's Final Structure
- Vehicle
- Person
- Sale
- Other tables
- Summary
- 6. Supplemental Case Study
- Results from the Document Gathering Phase
- Preliminary List of Data Elements
- Tables and Sample Values
- Code Tables
- Themed Tables
- Composite-Key Tables
- Airline System Data Schema
- Sample Queries
- Inserting Sample Values
- Boarding Pass
- Passenger List
- All Persons on a Flight
- Summary
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.