Skip to main content

Essential SQL

  • Chapter
Book cover Pro MySQL
  • 1594 Accesses

Summary

We’ve certainly covered a lot of ground in this chapter, with plenty of code examples to demonstrate the techniques. After discussing some SQL code style issues, we presented a review of join types, highlighting some important areas, such as using outer joins effectively.

Next, you learned how to read the in-depth information provided by EXPLAIN about your SELECT statements. We went over how to interpret the EXPLAIN results and determine if MySQL is constructing a properly efficient query execution plan. We stressed that most of the time, it does. In case MySQL didn’t pick the plan you prefer to use, we showed you some techniques using hints, which you can use to suggest that MySQL find a more effective join order or index access strategy.

Finally, we worked through the advanced subquery and derived table offerings available in MySQL 4.1.

In the next chapter, we build on this base knowledge, turning our attention to two more SQL topics. First, we’ll look at how MySQL optimizes query execution and how you can increase query speed. Then we’ll look at scenarios often encountered in application development and administration, and some advanced query techniques you can use to solve these common, but often complex, problems.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Michael Kruckenberg and Jay Pipes

About this chapter

Cite this chapter

(2005). Essential SQL. In: Pro MySQL. Apress. https://doi.org/10.1007/978-1-4302-0048-2_7

Download citation

Publish with us

Policies and ethics