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

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.
主站蜘蛛池模板: 澎湖县| 茶陵县| 陵川县| 四川省| 日照市| 报价| 濉溪县| 雷波县| 巧家县| 乌什县| 邯郸县| 庆安县| 当涂县| 胶州市| 清流县| 石城县| 平江县| 揭阳市| 郎溪县| 永年县| 越西县| 彭州市| 西充县| 新邵县| 尼木县| 柳州市| 温州市| 上杭县| 孙吴县| 客服| 长治市| 仪陇县| 和林格尔县| 休宁县| 临猗县| 通山县| 新宾| 图片| 桂林市| 金山区| 兴安县|