SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Dimension On fact
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

inbs
Aged Yak Warrior

834 Posts

Posted - 06/27/2011 :  00:54:18  Show Profile  Reply with Quote
i am looking for
example Create Dimension Table From Fact Table

thanks

SwePeso
Patron Saint of Lost Yaks

Sweden
30176 Posts

Posted - 06/27/2011 :  02:07:57  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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

834 Posts

Posted - 06/27/2011 :  02:12:26  Show Profile  Reply with Quote
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

Sweden
30176 Posts

Posted - 06/27/2011 :  05:11:09  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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
Flowing Fount of Yak Knowledge

United Kingdom
3383 Posts

Posted - 06/27/2011 :  05:57:30  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
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.

Edited by - nigelrivett on 06/27/2011 05:59:14
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000