INTERVAL TIME SUM COLUMN

Enrico at 13h10
15
Jun
2009
INTERVAL TIME SUM COLUMN

Hello,

In my data warehouse I have a fact table that joins with calendar table on BETWEEN clause ( calendar.date between myfact.startdate and myfact.enddate ).

In calendar date I have a record for each day.
I need to sum a fact table column in my query only one time for each fact table records. Now my fact table column is sum for each records of the query.

select sum(myfact.value)
from calendar, myfact
About
This topic belongs to the forum
  • Data Warehousing and Business Intelligence based on dimensional modeling and the Kimball Lifecycle.

  • Numbers of topics : 1858
  • Numbers of messages : 8714
  • Numbers of users : 3801
  • Numbers of points : 1672
Similar topics
Hi, I have a scenario where we have dimensional information and the facts in one table rather than a traditional break up into facts and dimensions. What could be the problem i could run into with having all information in one table. Thanks.
Hello, I am new to DW. Currently, I am working on a Human Resource database. There are many tables in the source systems which stores dates e.g. dates about contract start, finish, Vacations of an employee, temporary service suspension and many more.
kawan2 smua, nih ane nemu inpoh bagus ttg bass tapi ane ga ngerti gan....tolong kalo ada yg ngerti ttg Interval, Triad, ato Chord Construction bisa bantu jelasin....tolong bgt ya gan klo ada yg paham C - C = namanya Unison = ga ada jaraknya / 0 half
Hi I'm presently modeling a data mart and I would like to use a fact table as a dimension for another fact table. Is it something doable and efficient or is there a better way to do that? if yes should i just create a surrogate key and link both
Hi All, I work for a non-profit mental health org. Many of our clients get benefits from the county. These benefits last a year and then a new one is requested. They have different categories of benefit (2X1, 3A1, 3B1). I need to count the number of
Forums from same category
See also
more_less
Informations

7 Replies For the topic :
"INTERVAL TIME SUM COLUMN"

This topic has been viewed 1656 times.

Last message :
15/06/2009 at 13h10 by "Enrico"