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

Re: Calculation View - comparing two tables and taking only whats different

$
0
0

In that case, don't compute the difference :-)

 

To be honest, I only now understand that you want to filter out the records where no change happened and keep only those where there is a difference... *slow-thinking-today*...

 

I see the following approaches here:

  1. You do a scripted calc. view and use "the power of SQL" to select all the records in TAB-1 that are not in TAB-2. The seldom used EXCEPT operator would be a good choice here.
    or
  2. Instead of the difference, you calculate an indicator (changed? Yes/No) on which you filter

 

In fact I would probably do the whole thing in a plain SQL view anyhow - much less overhead from a design perspective and very expressive for this requirement.

So, my recommendation would be to do version 1.

 

- Lars


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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