Skip to main content

Optimizing Queries with Operators, Branching, and Functions

  • Chapter
Beginning MySQL Database Design and Optimization
  • 1669 Accesses

Abstract

In this chapter, we’re going to explore the central premise of this book: It is almost always the best course of action to make the database perform as much work as possible, thus minimizing the amount of filtering and manipulating data that you do in your programming code. Another way of saying this is that by replacing program logic with SQL logic, it is possible to gain significant opti­mization benefits. A strong working knowledge of operators, branching, and functions in MySQL, with this optimization goal in mind, is a key part of your database skills.

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 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.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.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Jon Stephens and Chad Russell

About this chapter

Cite this chapter

Stephens, J., Russell, C. (2004). Optimizing Queries with Operators, Branching, and Functions. In: Beginning MySQL Database Design and Optimization. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0729-0_4

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0729-0_4

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-332-5

  • Online ISBN: 978-1-4302-0729-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics