Skip to main content

Iterative Calculations with Multidimensional Data

  • Chapter
  • First Online:
Practical Oracle SQL
  • 1396 Accesses

Abstract

You won’t find a multitude of real-life examples using the model clause, apart from doing recursion and iteration as I showed in Chapter 4. Recursive subquery factoring came in version 11, but with the model clause, you could do recursion from version 10. However, the real power of the model clause is the way you can address data in multiple dimensions in an array-like fashion, building formulas similar to the way spreadsheets work. The model clause is not the obvious choice for implementation of everything, but this chapter shows you an example that fits perfectly and uses both multiple dimensions as well as iteration. This example may not be the most useful in itself, but it demonstrates very well the kind of situations where you could consider using the model clause.

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 EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Kim Berg Hansen

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Berg Hansen, K. (2020). Iterative Calculations with Multidimensional Data. In: Practical Oracle SQL. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5617-6_6

Download citation

Publish with us

Policies and ethics