Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

Array processing in HANA

$
0
0

Hi all,

I am using release 64 HANA SPS 6. 

 

I have a question on how to compare array elements. Here is what I have so far:

1) Used array_agg to get two columns of a table

2) I iterate over those, and compare values in Column A to Column B

                     IF  :a[:i]  =  :b[:i]  then ....

                     END IF.

However, I get an error saying array A comparison with array B is not supported.  (note that both are NVARCHAR(12) arrays)

 

3) I tried to assign the values to two scalars, so as to compare the scalars thereafter, but converting ONE value in an array to a scalar is not supported either.

 

Any pointers on how to go about comparing values in arrays ?  

 

Does anyone have a working example of array processing ? (beyond just "array_agg" and "unnest" ? )

 

Regards,

Andy Anand


Viewing all articles
Browse latest Browse all 8735

Trending Articles



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