MySQL Crash Course Cover

MySQL Crash Course

A Hands-on Introduction to Database Development
by Rick Silva
March 2023, 352 pp.
ISBN-13: 
9781718503007
Lay-flat binding

Look Inside!

MySQL Crash Course back coverMySQL Crash Course pages 10-11MySQL Crash Course pages 100-101MySQL Crash Course pages 224-225MySQL Crash Course pages 264-265

Download Chapter 5: JOINING DATABASE TABLES

MySQL Crash Course is a fast-paced, no-nonsense introduction to relational database development. It’s filled with practical examples and expert advice that will have you up and running quickly.

You’ll learn the basics of SQL, how to create a database, craft SQL queries to extract data, and work with events, procedures, and functions. You’ll see how to add constraints to tables to enforce rules about permitted data and use indexes to accelerate data retrieval. You’ll even explore how to call MySQL from PHP, Python, and Java.

Three final projects will show you how to build a weather database from scratch, use triggers to prevent errors in an election database, and use views to protect sensitive data in a salary database.

You’ll also learn how to:

  • Query database tables for specific information, order the results, comment SQL code, and deal with null values
  • Define table columns to hold strings, integers, and dates, and determine what data types to use
  • Join multiple database tables as well as use temporary tables, common table expressions, derived tables, and subqueries
  • Add, change, and remove data from tables, create views based on specific queries, write reusable stored routines, and automate and schedule events

The perfect quick-start resource for database developers, MySQL Crash Course will arm you with the tools you need to build and manage fast, powerful, and secure MySQL-based data storage systems.

Author Bio 

Rick Silva is a software developer with decades of database experience. Silva has worked at Harvard Business School, Zipcar, and various financial services companies. A Boston native and a Boston College alum, he now lives in the Raleigh, NC area with his wife Patti and his dog Dixie. When heʼs not joining database tables, heʼs playing banjo at a local bluegrass jam.

Table of contents 

Acknowledgments
Introduction
PART I: GETTING STARTED
Chapter 1: Installing MySQL and Tools
Chapter 2: Creating Databases and Tables
PART II: SELECTING DATA FROM A MYSQL DATABASE
Chapter 3: Introduction to SQL
Chapter 4: MySQL Data Types
Chapter 5: Joining Database Tables
Chapter 6: Performing Complex Joins with Multiple Tables
Chapter 7: Comparing Values
Chapter 8: Calling Built-in MySQL Functions
Chapter 9: Inserting, Updating, and Deleting Data
PART III: DATABASE OBJECTS
Chapter 10: Creating Views
Chapter 11: Creating Functions and Procedures
Chapter 12: Creating Triggers
Chapter 13: Creating Events
PART IV: ADVANCED TOPICS
Chapter 14: Tips and Tricks
Chapter 15: Calling MySQL from Programming Languages
PART V: PROJECTS
Chapter 16: Building a Weather Database
Chapter 17: Tracking Changes to Voter Data with Triggers
Chapter 18: Protecting Salary Data with Views
Afterword
Index

View the Copyright page
View the detailed Table of Contents
View the Index

Reviews 

“A fantastic resource for anyone who wants to learn about MySQL . . . and an excellent refresher for more seasoned developers.”
—Scott Stroz, MySQL Developer Advocate

“Understand not just the 'what,' but the 'why' behind MySQL development."
—Steven Sian, Web and Mobile Application Developer

"If you’re looking to learn MySQL (and specifically 8.0) quickly and efficiently, Rick Silva’s [MySQL Crash Course] is the perfect resource. With its practical approach, clear examples, and step-by-step guidance, as [a] developer, this book will help you master MySQL!"
—Frédéric Descamps, MySQL Architect at Oracle and technical reviewer of MySQL Crash Course

Extra Stuff 

Visit the author's GitHub repo to download the scripts used to create the example MySQL databases and tables from the book, and the code and answers to the exercises.