Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: SAP HANA Scripted Calculation View (Very Slow)

$
0
0

Hi Shreepad,

 

Thanks for your reply.

 

In simple words the logic is as follows:

 

If "PRODUCT A" and "PRODUCT B" are in the same INVOICE then they have one association. I want to calculate all such associations. For the following table:

 

Invoice Number     Product Name

I001                         P001

I001                         P002

I001                         P003

 

I002                         P001

I002                         P003

 

I003                         P001

I003                         P002


I should get association like:


Product A     Product B     Association

P001               P002                 2

P001               P003                 2

P002               P003                 1

 

Can you tell me how to use SQL Script for this or any other efficient solution.

 

Best regards.

 

Fahad


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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