Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Creating Calculated Column using SQL script

$
0
0

Hi all,

i need your help to undestand how to create a new calculated column with SQL script (if it's possible to do...).

 

My actual situation is as follows:

 

1) Analytic view is the main object with the key field EQUNR (EQUI table on SAP ECC)

 

2) In SAP HANA i have another table with following fields :

   

   EQUNR (primary key)

   COUNTER (primary key)

   VALUE (integer type)

 

   For example :

 

   EQUNR     COUNTER    VALUE

            1      1                  15

            1      2                  30

            2      1                  56

            3      1                  100

 

The result i would need in analytic view is to sum all values for each EQUNR:

 

   EQUNR 1     45

   EQUNR 2     56

   EQUNR 3     100

 

How can i do this in calculated column?

 

Thanks in advance.

Ciao.

Dario.


  


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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