Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Data Warehousing / October 2005

Tip: Looking for answers? Try searching our database.

Analysis services question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ron - 10 Oct 2005 22:28 GMT
We have a db with the following schema:

TableA
TableAB (serves as a many-to-many relationship between A and B)
TableB
TableBC (serves as a many-to-many relationship between B and C)
Table C

The foreign->primary keys are properly set between the tables:
TableA primary key is a foreign key in TableAB
TableB primary key is a foreign key in TableAB
TableB primary key is a foreign key in TableBC
TableC primary key is a foreign key in TableBC

What we want:
To be able to do is show how many C records are related to each A record.

Here is the equivalent sql statement:
select TableA.AKey,count(*)
from TableA,TableAB,TableBC,TableC
where TableA.AKey = TableAB.AKey and
   TableAB.BKey = TableBC.BKey and
   TableBC.CKey = TableC.CKey
group by TableA.AKey

Issuess with SSAS:

We could not create a dimention with a hierarchy of the form A-B-C as it is
not a snowflake schema (not a one-to-many relationship).

We were able to create a many-to-many relation between A as a dimention and
B as a measure table using TableAB as an intermediate measure table but we
could not create a relation between A and C.

What possibilities do we have using SSAS to achieve the equivalent of the
sql statement mentioned above
Dave Wickert [MSFT] - 10 Oct 2005 23:32 GMT
AS2K does not support structures like this. However you can in AS2K5. This
is one of our core new features.
Signature

Dave Wickert [MSFT]
dwickert@online.microsoft.com
Program Manager
BI Systems Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

> We have a db with the following schema:
>
[quoted text clipped - 34 lines]
> What possibilities do we have using SSAS to achieve the equivalent of the
> sql statement mentioned above
Ron - 11 Oct 2005 00:21 GMT
Dave,

I am trying this on 2005.

Ron

> AS2K does not support structures like this. However you can in AS2K5. This
> is one of our core new features.
[quoted text clipped - 36 lines]
> > What possibilities do we have using SSAS to achieve the equivalent of the
> > sql statement mentioned above
Darren Gosbell - 11 Oct 2005 01:59 GMT
Couldn't you create a view that joins the AB and BC tables giving you
vwAC and then use that to join A to C in a standard many-to-many
reationship?

Signature

Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

> Dave,
>
[quoted text clipped - 33 lines]
> > >
> > > Issuess with SSAS:
Ron - 26 Oct 2005 17:40 GMT
Thank you. Your solution gave the desired effect.

> Couldn't you create a view that joins the AB and BC tables giving you
> vwAC and then use that to join A to C in a standard many-to-many
[quoted text clipped - 37 lines]
> > > >
> > > > Issuess with SSAS:
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.