Skip to main content
Book cover

Dynamic SQL pp 209–232Cite as

Apress

Dynamic PIVOT and UNPIVOT

  • Chapter
  • First Online:
  • 1345 Accesses

Abstract

A critical component that was briefly discussed was the query plan cache. Whenever a query is executed for the first time, an execution plan is generated by the query optimizer. This process is expensive and therefore it is beneficial to minimize the work that is performed by it. Execution plans are placed into the query plan cache when optimization is complete, where they will remain until sufficient changes occur in execution, available memory, or the underlying data to push that plan out of cache.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Ed Pollack

About this chapter

Cite this chapter

Pollack, E. (2016). Dynamic PIVOT and UNPIVOT. In: Dynamic SQL. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1811-2_9

Download citation

Publish with us

Policies and ethics