Hi,
I want implement an outer join in Microstrategy 7.2 (Database is Oracle 8.1.7). I am simulated the problem in Microstrategy Tutorial.
In Microstrategy Tutorial Database, let us take three tables ORDER_FACT,LU_ORDER and LU_CUSTOMER.
Now my objective is to generate an SQL which will look like the following:
select a12.[CUSTOMER_ID] AS CUSTOMER_ID,
max(a13.[CUST_LAST_NAME]) AS CUST_LAST_NAME,
max(a13.[CUST_FIRST_NAME]) AS CUST_FIRST_NAME,
sum(a11.[QTY_SOLD]) AS WJXBFS1
from [ORDER_FACT] a11,
[LU_ORDER] a12,
[LU_CUSTOMER] a13
where a11.[ORDER_ID](+) = a12.[ORDER_ID] and
a12.[CUSTOMER_ID](+) = a13.[CUSTOMER_ID]
group by a12.[CUSTOMER_ID]
So it will give me all the customers irrespective of they have order against them or not.
I have tried this by creating a metric on QTY_SOLD and changing VLDB properties : Metric Join Type : Outer Join. But when I drag Customer and this newly created metric in a report, this is not giving me the intended result. It is creating the SQL as described above but WITHOUT the outer join.
How can I do this? Of course I have an attribute as Customer(already present in MS Tutorial) where join is defined between LU_CUSTOMER and LU_ORDER. Similarly I have another attribute called Order(already present in MS Tutorial) where join is defined between LU_ORDER and ORDER_FACT.
I want implement an outer join in Microstrategy 7.2 (Database is Oracle 8.1.7). I am simulated the problem in Microstrategy Tutorial.
In Microstrategy Tutorial Database, let us take three tables ORDER_FACT,LU_ORDER and LU_CUSTOMER.
Now my objective is to generate an SQL which will look like the following:
select a12.[CUSTOMER_ID] AS CUSTOMER_ID,
max(a13.[CUST_LAST_NAME]) AS CUST_LAST_NAME,
max(a13.[CUST_FIRST_NAME]) AS CUST_FIRST_NAME,
sum(a11.[QTY_SOLD]) AS WJXBFS1
from [ORDER_FACT] a11,
[LU_ORDER] a12,
[LU_CUSTOMER] a13
where a11.[ORDER_ID](+) = a12.[ORDER_ID] and
a12.[CUSTOMER_ID](+) = a13.[CUSTOMER_ID]
group by a12.[CUSTOMER_ID]
So it will give me all the customers irrespective of they have order against them or not.
I have tried this by creating a metric on QTY_SOLD and changing VLDB properties : Metric Join Type : Outer Join. But when I drag Customer and this newly created metric in a report, this is not giving me the intended result. It is creating the SQL as described above but WITHOUT the outer join.
How can I do this? Of course I have an attribute as Customer(already present in MS Tutorial) where join is defined between LU_CUSTOMER and LU_ORDER. Similarly I have another attribute called Order(already present in MS Tutorial) where join is defined between LU_ORDER and ORDER_FACT.