How to combine loops and set-based statements for difficult problems.
There are problems that are difficult to express entirely set-based with set-based code and we have to resort to loops. Say that we need to make such a computation for every customer. Does this mean that we must also loop over the customers? No, in this short presentation I will discuss how we can combine set-based and loops for best performance.