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

how to rank two columns using contains in Select statemen

$
0
0

Hi All,

 

We have a requirement to fetch data as shown below.

 

SELECT TOP 10 * FROM "_SYS_BIC"."<package>/<view>" WHERE CONTAINS (( NAME1, PSPID, POST1, KUNNR, NAME2 ), 'text' ) ORDER BY "PSPID".

 

Here every time the query is fetching the data first relevant to NAME1. But my requirement is I want the search to first look for records in POST1 then followed by NAME1.

 

Can any one let me know how to rank for this selection. I have created a view on KNA1,PROJ & PRPS.

 

 

Thanks

 



Viewing all articles
Browse latest Browse all 5653

Trending Articles



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