Viewing 15 posts - 1 through 15 (of 20 total)
Done
September 27, 2016 at 4:28 pm
For the record, I resolved the issue and the answer can be found here: http://dba.stackexchange.com/questions/127213/cube-with-2-measure-groups-with-different-relationships-to-dimensions-returns
February 4, 2016 at 9:57 am
Yes, I get the batch dimension members if I remove Units.
The cube is MD, not tabular.
January 26, 2016 at 2:24 am
Thanks for the extra solutions. Got me reading about relational division: https://www.simple-talk.com/sql/learn-sql-server/high-performance-relational-division-in-sql-server
March 1, 2015 at 7:49 am
Both solutions worked, thanks very much. For some reason Luis's is much faster on my large data set (millions of rows).
February 26, 2015 at 12:20 pm
You are correct about the dimension logic - to be "inline", cells must have all coordinate values except 1 the same as the given cell. In other words, there is...
November 21, 2013 at 6:48 am
No, I was testing using my example data. mickey's query has a relatively simple plan with mostly index seeks. Running both mickey's and dwain's resulted in 19% for the former...
November 19, 2013 at 11:08 am
dwain.c - nope, I have nothing against dynamic SQL!
I have to award the prize to mickeyT's solution - it is the fastest of all the contributions.
Thanks everyone ... I was...
November 18, 2013 at 8:20 am
mickeyT - your solution returns too many rows unfortunately.
dwain.c - your solution returns the right rows for 3 dimensions (X,Y,Z) and the query plan is by far the best, but...
November 15, 2013 at 2:43 am
I now have the result I need. I combined your approach with someone else's help on StackOverflow and came up with this:
declare @CellID int = 1
;with SelectedCell as
(
select CellID, AxisCode,...
November 14, 2013 at 1:07 pm
Wow! That is pretty close. However, what I needed was this result set:
+----------+---------+
| AxisCode | CellID |
+----------+---------+
| X | 1 |
| X | 2 |
| Y | 1 |
| Y...
November 14, 2013 at 12:37 pm
For a solution see here: http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/d5f87abc-e303-484a-b40f-5639dfbe2efa/[/url]
January 17, 2013 at 4:54 am
Hi Grant,
One question about the book:
You refer a couple of times to indexed views that "only refresh once per day". My understanding was that indexed views are updated instantly when...
November 11, 2011 at 6:35 am
In case anyone needs to know how to resolve this (I did), this is the answer:
BUG: You may receive an "Access is denied" error message when a query calls an...
September 13, 2006 at 8:16 am
Thanks, I worked that out eventually!
This article is good for understanding indexed views, plus it has a section on "Using Indexed Views On Non Enterprise Editions of SQL Server":
March 14, 2006 at 7:20 am
Viewing 15 posts - 1 through 15 (of 20 total)