on 04-21-2017 7:43 AM
Hi All,
I am seeking your suggestion.
I need to be able to create a LEFT OUTER JOIN in the WHERE clause of the object in the screenshot below. The reason I want to do it in the object WHERE clause is because if I created an additional universe join it would result in a circular join and if I resolved the circular join via an alias then it would not give me the join structure I need. Previously, before SQL Server 2012 I would be able to add a LEFT OUTER JOIN in the WHERE clause by using the *= operator, so for example dbo.Prices.PriceDate_Dim_Key*=dbo.Date_Dim.EffPriceDate_Dim_Key , but this is no longer allowed.
Essentially, we need to be able to create either:
The question is: how can we now force UDT to create a LEFT OUTER JOIN in the WHERE clause of a universe object definition ?
It used to be possible to create an outer join in a object WHERE clause using the *= operator in the older versions of SQL server, .
Thanks and regards,
Sudam
Hi Sudam,
First things first, it's not a good idea to have where clause in the dimension objects, use Case statements instead. If you still want to do it that way, update the condition in Where clause as below.
dbo.Prices>ProceDate_Dim_Key = dbo.Date_Dim.EffPriceDate_Dim_Key OR dbo.Prices>ProceDate_Dim_Key Is Null
Let us know if this works!
Thanks,
Mahboob Mohammed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.