Quantcast
Channel: SCN : Discussion List - BI Platform
Viewing all articles
Browse latest Browse all 5403

SQL capability within Information Design Tool (IDT)?

$
0
0

I am trying to assess the best solution to put a simple sql statement (uses a LEFT JOIN within one table) in a UNX through IDT. The sql statement essentially produces a result which will be represented by a dimension within the universe.

 

I first attempted to incorporate the sql statement in a dimension within the Business Layer but the syntax wouldn't validate plus it looks like there is no syntax for LEFT JOIN.

 

My next idea is to create an alias table since the LEFT JOIN requires a join back to the original table. Let me better explain:

 

SQL statement

 

SELECT t1.field1, t2.field1 as field2

FROM table1 t1

LEFT JOIN table1 t2 ON t1.key = t2.key2

 

 

Once I create this alias table, what functionalty will allow me to utilize a LEFT JOIN to complete the SQL statement? Then somehow I would need to represent the SQL statment as a dimension.

 

Any ideas?

 

I am new to SQL development within IDT.

 

 

Thanks!

 



Viewing all articles
Browse latest Browse all 5403

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>