- 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.
推薦閱讀
- C++面向對象程序設計(第三版)
- Python入門很簡單
- C語言程序設計(第2版)
- Learning ASP.NET Core 2.0
- Python編程從0到1(視頻教學版)
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- 組態軟件技術與應用
- Solr Cookbook(Third Edition)
- Java EE企業級應用開發教程(Spring+Spring MVC+MyBatis)
- Oracle數據庫編程經典300例
- Hadoop 2.X HDFS源碼剖析
- Natural Language Processing with Python Quick Start Guide
- Node.js從入門到精通
- Mastering Unreal Engine 4.X
- 零基礎學Java(第5版)