- 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.
推薦閱讀
- Testing with JUnit
- Python for Secret Agents:Volume II
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- NativeScript for Angular Mobile Development
- Java軟件開發(fā)基礎(chǔ)
- Learning Apache Mahout Classification
- Linux命令行與shell腳本編程大全(第4版)
- 計算機(jī)應(yīng)用基礎(chǔ)實踐教程
- 西門子S7-200 SMART PLC編程從入門到實踐
- Internet of Things with ESP8266
- Learning VMware vSphere
- Android應(yīng)用程序設(shè)計
- Unity 3D UI Essentials
- C++ Data Structures and Algorithm Design Principles
- Learning jqPlot