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

Re: how to rank two columns using contains in Select statemen

$
0
0

Hi Raj,

 

I took a time to test and...

- CONTAINS is only supported for Attribute View

- All views can work without aggregation (depend of your parameters)

 

The code below works (I added even a TOP 4 inside, just to check):

SELECT TOP 10 "BUKRS", "BRANCH", "NAME"

from

(

SELECT top 4 1 as source,"BUKRS", "BRANCH", "NAME"

FROM "_SYS_BIC"."tmf.erp/AT_BRANCH"

where contains((bukrs),'*2*')

union all

SELECT top 4 2 as source,"BUKRS", "BRANCH", "NAME"

FROM "_SYS_BIC"."tmf.erp/AT_BRANCH"

where contains((name),'*2*')

)

order by source,bukrs;

 

@Ramesh, I'm interested in see your results.

 

Regards, Fernando Da Rós


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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