Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Conditional join in attribute or calculation view

$
0
0

Hi,

 

can anyone tell me if it is possible to make a conditional join in an attribute or calculation view?

What I want to simulate is this type of SQL

 

SELECT ...

 

case group

when 'a_value'

then ( select rp.omschrijving

from zst_aut_rp as rp 

where rp.rpid = basis.fm_rp )

else ( select grp.omschrijving

from zst_grp as grp

where grp.groep = basis.fm_rp )

end as description ,

 

...

 

I can make the two joins and afterwards put the resulting fields into one calculated field, but I don't think that is the most performant way.

Maybe I can put a SELECT in the definition of a calculated field?

 

Kind regards and thanks for any help.

Kris


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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