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

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.
主站蜘蛛池模板: 鹤山市| 五指山市| 潜江市| 泰兴市| 郧西县| 敦化市| 托克托县| 阿克| 襄城县| 辽宁省| 剑阁县| 曲麻莱县| 双牌县| 平乡县| 莆田市| 同心县| 通辽市| 南华县| 三明市| 微山县| 平乐县| 吴忠市| 舟曲县| 新巴尔虎右旗| 凤庆县| 平遥县| 盐山县| 闸北区| 京山县| 黄大仙区| 沭阳县| 甘南县| 凤阳县| 长宁区| 乌兰察布市| 泗水县| 昌图县| 龙岩市| 朔州市| 小金县| 枝江市|