0

データ ソース ビュー

古いデータ ウェアハウスを調べていると、ファクトレス ファクト テーブル (Fact_contact) と Dim_Incident の間の異常な 1 対 1 の関係に遭遇しました。

通常、Fact_Contact はケース/チケット/問い合わせの記録に使用されます。一部の顧客は匿名です。したがって、一意のカウントに使用される uniqueCustRef および CustomerRef の「ファクト」があります。

ファクト テーブルとディメンション テーブルの 1 対 1 の関係は適切ではありません。それは推奨される解決策ですか?現在、なぜこのように設計されたのかについてのドキュメントはありません。

ありがとうございました。

4

1 に答える 1

0

あなたは正しいかもしれません。これは正しくありません。ファクトコンタクト

インシデント ID を持つべきではありません

要件はわかりませんが、論理的に考えて次のことを提案します。

IncidentType - what is the type of incident that is logged
FirstIncidentId - the first incident corresponding to the customer/IncidentType
FirstIncidentDate - Date of the above incident
LastIncidentId - the last incident corresponding to the customer/incidenttype - when there is only one incident you will have the firstincidentid and lastincidentid the same
LastIncidentDate - the date of the above incident
IncidentCount - the number of incidents for the customer/incidenttype combination

お役に立てれば

于 2014-06-15T14:23:21.783 に答える