官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 山阳县| 赤壁市| 定日县| 杨浦区| 新沂市| 九龙城区| 瑞安市| 石棉县| 德化县| 萨嘎县| 临城县| 驻马店市| 义乌市| 张家港市| 天津市| 余干县| 毕节市| 张家界市| 泽州县| 子洲县| 紫阳县| 舒城县| 新宾| 伊吾县| 罗甸县| 宁德市| 金山区| 邵东县| 大田县| 嘉义市| 无棣县| 本溪市| 闻喜县| 淮阳县| 舒城县| 灌南县| 静海县| 礼泉县| 南川市| 尉氏县| 肥西县|