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

Creating a single source data foundation

Create a single source data foundation called UNI_eFashion, based on the secured version of the relational connection (.cns).

Include the  ARTICLE_LOOKUP, CALENDER_YEAR_LOOKUP, and SHOP_FACTS tables (download the tables from the preceding link):

  1. Select the UNI_relational_data project and choose File | New Data Foundation
  2. Enter UNI_eFashion as the resource name and choose Next
  3. In the Select Data Foundation type dialog box, select single source radio and then Next

We need to set the primary keys for the database tables. In the ARTICLE_LOOKUP table, we set the ARTICLE_ID field as the primary key; CALENDER_YEAR_LOOKUP will have WEEK_ID as the primary key; and SHOP_FACTS can be set to SHOP_FACTS_ID by right-clicking on the fields and choosing Set as KeyPrimary

Then we need to create the joins between the lookup table and the fact table with the transactional data. We will create the following joins:

ARTICLE_LOOKUP.ARTICLE_ID | SHOP_FACTS.ARTICLE_ID CALENDAR_YEAR_LOOKUP.WEEK_ID | SHOP_FACTS.WEEK_ID

To do so, we go to the Master panel of the data foundation and connect the fields by dragging a line between them.

主站蜘蛛池模板: 闽清县| 丹江口市| 元谋县| 湘西| 基隆市| 拜城县| 旬阳县| 随州市| 体育| 宜章县| 淮南市| 东方市| 乌拉特前旗| 饶河县| 宝鸡市| 清徐县| 嘉兴市| 老河口市| 加查县| 介休市| 阳谷县| 墨脱县| 英吉沙县| 永昌县| 临漳县| 永福县| 方城县| 冷水江市| 乐昌市| 尼木县| 大理市| 贞丰县| 廉江市| 崇仁县| 藁城市| 宝坻区| 太保市| 白河县| 张家港市| 上饶县| 武清区|