Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

SAP HANA scripted view with Union and Variable

$
0
0

Hi All,

 

I am having an issue with a scripted calculation view i am trying to build for a customer. What is happening is i am trying to select top 5 not equal to x unioned to 1 record that is equal to x, both using the same underlying data source. When i attach a variable, the variable only sorts on half of the union.

 

Does anyone know how i can get both parts of the union sorted using the variable, or is there a different way to handle this type of request?

 

Thank you very much,

Jason Scanlon

 

see attached for the code and results


Viewing all articles
Browse latest Browse all 4343

Trending Articles