- Real Time Analytics with SAP HANA
- Vinay Singh
- 142字
- 2021-07-09 21:20:52
Unions versus JOINS
Unions are used to combine the result set of two or more SELECT
statements. It's always tempting to JOIN two analytic views when measures from more than one table are required. This should, however, be avoided for performance reasons. It is more beneficial to use a Union in a calculation view. Technically, a Union is not a JOIN type.
Points to remember:
- Union is not supported in the attribute or analytical view but can only be used in calculation views.
- Union with constant values are supported within graphical calculation views and the Union operator can accept 1..N input sources.
- Script-based calculation views can only accept two input sources at a given time.
- Do not JOIN analytical views (to be discussed later), as you might have performance issues. Instead, use Union with constant values when working with multiple fact tables.
推薦閱讀
- Extending Jenkins
- Java多線程編程實戰指南:設計模式篇(第2版)
- Mastering Adobe Captivate 2017(Fourth Edition)
- Ext JS Data-driven Application Design
- Hands-On C++ Game Animation Programming
- 匯編語言程序設計(第3版)
- 數據結構(C語言)
- C語言實驗指導及習題解析
- 琢石成器:Windows環境下32位匯編語言程序設計
- JavaScript 程序設計案例教程
- C語言開發基礎教程(Dev-C++)(第2版)
- Node Cookbook(Second Edition)
- Extreme C
- OpenCV with Python By Example
- Hands-On Neural Network Programming with C#