Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8807

Re: Upsert data in one Table based on data in another Table?

$
0
0

Hi,

 

Sorry I am not aware of the SAP BW InfoCube compression concept.

 

But my use case is -

 

Considering the same tables as in the start of this discussion,

Table U has multiple records.

 

What I need to be done is - If the value in U.COL exists in table T (T.COL) then update the U.VAL in T.VAL. If the value U.COL does not exist in T.COL then Insert the U.COL and U.VAL in T.COL and T.VAL.

 

As for your question - Table U does not have a primary key as such.. But in my situation U.COL will not have duplicate records. So a record in T will match (if present) only for one record in U.

 

 

Hope this makes sense.

 

 

 

Thanks,

Varun Vemala


Viewing all articles
Browse latest Browse all 8807

Trending Articles



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