Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Parent-Child Dimension Problem, NULL values in the fact table.
|
|||
|---|---|---|---|
|
#18+
Вопросы по кубам 1. Parent –Child dimension error. Esti tablica kotoraea soderjit Parent-Child Relationship. Naprimer: Create table Profile ( profile_id int not null, parent_id int null, profile_name varchar(50) ) Rows: 1,null, Root 2,1,Companies 3,2,Ford 4,2,BMW Esti drugaea tablica: MediaType – soderjit toliko media_type and media_name Rows 1, TV 2, Radio 3, Press Esti fact table. Naprimer: Create table Article ( article_id int not null, profile_id not null, media_type int not null, size int not null, ) Rows: 1,1,1,10 2,2,1,19 3,3,1,25 Delaiu Parent-Child Dimension dlea tablici Profile. Vse ok Delaiu Star Dimension na tablicu MediaType. Delaiu cube na table Articles. Measures: article_id, size. Dimension: MediaType and Profile. Kogda delaiu process CUBE daet sleduiusiu osibku : A member with key ’1’ was found in the fact table but not was found in the sets of the leaf member in the dimension Profile. To esti ne otrabativaet link na Root v tablice Profile. CTO DELATI ? 2. Problema s NULL values in the fact table. Naprimer, dlea prevedusego primera, dopustim cto fact table imeet sledusie stroki: 1, 1, null, 10 2, 2, null, 19 3, 3, 1, 25. V takom slucae u menea finalino budet toliko 1 stroka v CUBE. Napriper esli zahocu posmotreti SIZE dlea vseh profiles uviju toliko profile 3 i size=25 (hotea vse danie dlea profile 1,2 toje esti ) Kak resiti problemu s NULL values v fact table ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2004, 16:02 |
|
||
|
Parent-Child Dimension Problem, NULL values in the fact table.
|
|||
|---|---|---|---|
|
#18+
1. выставлять в измерении свойство Members With Data = Non-leaf data hidden 2. заводить в измерении служебный элемент например ID=0 Name ='Не указано' и в таблице фактов ссылаться на него ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2004, 18:03 |
|
||
|
|

start [/forum/topic.php?fid=49&gotonew=1&tid=1872187]: |
0ms |
get settings: |
8ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
63ms |
get topic data: |
11ms |
get first new msg: |
6ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
| others: | 233ms |
| total: | 394ms |

| 0 / 0 |
