Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Dimension On fact

Author  Topic 

inbs
Aged Yak Warrior

860 Posts

Posted - 2011-06-27 : 00:54:18
i am looking for
example Create Dimension Table From Fact Table

thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2011-06-27 : 02:07:57
SELECT DISTINCT ColumnName FROM dbo.FactTable



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

inbs
Aged Yak Warrior

860 Posts

Posted - 2011-06-27 : 02:12:26
but if i have child in fact that have 2 parents, how i create id for the child

like

DESC   Operation
right aa
right bb
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2011-06-27 : 05:11:09
Just wait a minute or a decade. I will look for my crystal ball first before answering any further question.
Or..? You could give is complete story with full DDL and sample data to demonstrate what you want? Or that will be too easy?



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2011-06-27 : 05:57:30
Do you know what a dimension is?
Or maybe - what is a dimension (or maybe this dimesnion) in your system?

To answer our first question - you already have a degenerate dimension so you don't need to do anything.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -