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

Re: Slow case statement evaluation comparing values from two tables

$
0
0

Spot on!

COALESCE would be the way to do it. The only thing you have to take care of is to check whether tie values are resolved in your interest.

 

However, using CASE, COALESCE, IFNULL... in the projection list will always add a lot of execution time as these expressions need to be evaluated on the whole set of returned records.

 

- Lars


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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