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

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.
主站蜘蛛池模板: 淳化县| 崇州市| 务川| 逊克县| 巴南区| 甘洛县| 宁明县| 威远县| 民权县| 卢湾区| 屯门区| 张家港市| 临安市| 康马县| 菏泽市| 本溪市| 聂拉木县| 吉水县| 威远县| 平山县| 焦作市| 大厂| 漳平市| 夏河县| 都匀市| 鄂伦春自治旗| 吉林省| 洞头县| 江陵县| 湘乡市| 海口市| 花垣县| 板桥市| 花垣县| 萍乡市| 呼伦贝尔市| 临朐县| 象山县| 汽车| 格尔木市| 宁夏|