Kimball Data: Modeling Data as Both Fact and Dimension with ViewDatawarehouse Design: Combined Date Time...

Which branches of mathematics can be done just in terms of morphisms and composition?

Incompressible fluid definition

Why does the DC-9-80 have this cusp in its fuselage?

Criticizing long fiction. How is it different from short?

Activating a Alphanet Faucet Wallet Remotely (without tezos-client)

What is Crew Dragon approaching in this picture?

What is the meaning of "pick up" in this sentence?

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

Auto Insert date into Notepad

raspberry pi change directory (cd) command not working with USB drive

For Loop and Sum

Metadata API deployments are failing in Spring '19

What happens if a wizard reaches level 20 but has no 3rd-level spells that they can use with the Signature Spells feature?

How can I improve my fireworks photography?

c++ How can I make an algorithm for finding variations of a set without repetition (i.e. n elements, choose k)?

Finding the number of integers that are a square and a cube at the same time

On what did Lego base the appearance of the new Hogwarts minifigs?

How do we edit a novel that's written by several people?

Does this pattern of summing polygonal numbers to get a square repeat indefinitely?

Meth dealer reference in Family Guy

How to push a box with physics engine by another object?

Getting a matrix of complex values from associations giving the real and imaginary parts of each element?

Linux File Manager: Restore previous open session (folders and tab)

What do these brackets mean?



Kimball Data: Modeling Data as Both Fact and Dimension with View


Datawarehouse Design: Combined Date Time dimension vs. Separate Day and Time dimensions and timezonesData modeling membership and profileshow many fact tables do I need given I want to build an OLAP for Quotation Line Item and Purchase Order Line Item report?Time dimension or timestamp in fact table?Non numeric attributes in fact table (to track data source)?Data Warehouse Design and Double DippingWhen to Converge Dimensions in a Data Warehouse When There Are Few Common AttributesData Warehouse vs Data Mart vs database (separating logic from hardware)Is the modeling technique changing with column-oriented databases?Data Warehouse: Can a Transaction Table also be a Dimension?













0















In Data warehousing, Kimball discusses modeling an insurance policy premium as Both Dimension and Fact.
I have the following table,



create table dbo.DimAutoInsurance
(
DimAutoInsuranceId int primary key identity(1,1),
CustomerName varchar(100),
CustomerAddress varchar(255),
PolicyCoverageAmount numeric (15,2),
PolicyBeginDate datetime,
PolicyExpirationDate datetime
)


For the Fact table, should I reconduct ETL another table for fact? Copying the data again, would seem redundant.
Or should I create a view? What is best database design strategy?



create view dbo.FactAutoInsurance
as
select
DimAutoInsuranceId,
PolicyCoverageAmount numeric (10,2),
from dbo.DimAutoInsurance


https://www.kimballgroup.com/2007/12/design-tip-97-modeling-data-as-both-a-fact-and-dimension-attribute/



Kimball:
A more ambiguous example is the limit on a coverage within an automobile insurance policy. The limit is a numerical data item, say $300,000 for collision liability. Furthermore, many queries would group or constrain on this limit data item. This sounds like a slam dunk for the limit being an attribute of the coverage dimension.



One could pose some important queries summing or averaging all the limits on many policies and coverages. This sounds like a slam dunk for the limit being a numeric fact in a fact table.
Rather than agonizing over the dimension versus fact choice, simply model it BOTH ways! Include the limit in the coverage dimension so that it participates in the usual way as a target for constraints and the content for row headers, but also put the limit in the fact table so it can participate in the usual way within complex computations."










share|improve this question



























    0















    In Data warehousing, Kimball discusses modeling an insurance policy premium as Both Dimension and Fact.
    I have the following table,



    create table dbo.DimAutoInsurance
    (
    DimAutoInsuranceId int primary key identity(1,1),
    CustomerName varchar(100),
    CustomerAddress varchar(255),
    PolicyCoverageAmount numeric (15,2),
    PolicyBeginDate datetime,
    PolicyExpirationDate datetime
    )


    For the Fact table, should I reconduct ETL another table for fact? Copying the data again, would seem redundant.
    Or should I create a view? What is best database design strategy?



    create view dbo.FactAutoInsurance
    as
    select
    DimAutoInsuranceId,
    PolicyCoverageAmount numeric (10,2),
    from dbo.DimAutoInsurance


    https://www.kimballgroup.com/2007/12/design-tip-97-modeling-data-as-both-a-fact-and-dimension-attribute/



    Kimball:
    A more ambiguous example is the limit on a coverage within an automobile insurance policy. The limit is a numerical data item, say $300,000 for collision liability. Furthermore, many queries would group or constrain on this limit data item. This sounds like a slam dunk for the limit being an attribute of the coverage dimension.



    One could pose some important queries summing or averaging all the limits on many policies and coverages. This sounds like a slam dunk for the limit being a numeric fact in a fact table.
    Rather than agonizing over the dimension versus fact choice, simply model it BOTH ways! Include the limit in the coverage dimension so that it participates in the usual way as a target for constraints and the content for row headers, but also put the limit in the fact table so it can participate in the usual way within complex computations."










    share|improve this question

























      0












      0








      0








      In Data warehousing, Kimball discusses modeling an insurance policy premium as Both Dimension and Fact.
      I have the following table,



      create table dbo.DimAutoInsurance
      (
      DimAutoInsuranceId int primary key identity(1,1),
      CustomerName varchar(100),
      CustomerAddress varchar(255),
      PolicyCoverageAmount numeric (15,2),
      PolicyBeginDate datetime,
      PolicyExpirationDate datetime
      )


      For the Fact table, should I reconduct ETL another table for fact? Copying the data again, would seem redundant.
      Or should I create a view? What is best database design strategy?



      create view dbo.FactAutoInsurance
      as
      select
      DimAutoInsuranceId,
      PolicyCoverageAmount numeric (10,2),
      from dbo.DimAutoInsurance


      https://www.kimballgroup.com/2007/12/design-tip-97-modeling-data-as-both-a-fact-and-dimension-attribute/



      Kimball:
      A more ambiguous example is the limit on a coverage within an automobile insurance policy. The limit is a numerical data item, say $300,000 for collision liability. Furthermore, many queries would group or constrain on this limit data item. This sounds like a slam dunk for the limit being an attribute of the coverage dimension.



      One could pose some important queries summing or averaging all the limits on many policies and coverages. This sounds like a slam dunk for the limit being a numeric fact in a fact table.
      Rather than agonizing over the dimension versus fact choice, simply model it BOTH ways! Include the limit in the coverage dimension so that it participates in the usual way as a target for constraints and the content for row headers, but also put the limit in the fact table so it can participate in the usual way within complex computations."










      share|improve this question














      In Data warehousing, Kimball discusses modeling an insurance policy premium as Both Dimension and Fact.
      I have the following table,



      create table dbo.DimAutoInsurance
      (
      DimAutoInsuranceId int primary key identity(1,1),
      CustomerName varchar(100),
      CustomerAddress varchar(255),
      PolicyCoverageAmount numeric (15,2),
      PolicyBeginDate datetime,
      PolicyExpirationDate datetime
      )


      For the Fact table, should I reconduct ETL another table for fact? Copying the data again, would seem redundant.
      Or should I create a view? What is best database design strategy?



      create view dbo.FactAutoInsurance
      as
      select
      DimAutoInsuranceId,
      PolicyCoverageAmount numeric (10,2),
      from dbo.DimAutoInsurance


      https://www.kimballgroup.com/2007/12/design-tip-97-modeling-data-as-both-a-fact-and-dimension-attribute/



      Kimball:
      A more ambiguous example is the limit on a coverage within an automobile insurance policy. The limit is a numerical data item, say $300,000 for collision liability. Furthermore, many queries would group or constrain on this limit data item. This sounds like a slam dunk for the limit being an attribute of the coverage dimension.



      One could pose some important queries summing or averaging all the limits on many policies and coverages. This sounds like a slam dunk for the limit being a numeric fact in a fact table.
      Rather than agonizing over the dimension versus fact choice, simply model it BOTH ways! Include the limit in the coverage dimension so that it participates in the usual way as a target for constraints and the content for row headers, but also put the limit in the fact table so it can participate in the usual way within complex computations."







      sql-server database-design data-warehouse sql-server-2017






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 16 mins ago









      Joe Smith 8435Joe Smith 8435

      665




      665






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f231203%2fkimball-data-modeling-data-as-both-fact-and-dimension-with-view%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f231203%2fkimball-data-modeling-data-as-both-fact-and-dimension-with-view%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Armoriale delle famiglie italiane (Car) Indice Armi | Bibliografia | Menu di navigazioneBlasone...

          Why does this relation fail symmetry and transitivity properties?Properties of Relations. Reflexive,...

          why typing a variable (or expression) prints the value to stdout?Calling a function of a module by using its...