dbTalk Databases Forums  

cumulative sum with threshold

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss cumulative sum with threshold in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: cumulative sum with threshold - 11-07-2011 , 02:25 AM






On 2011-11-07 01:48, Tonkuma wrote:
Quote:
Replace three scalar-subselects by a subquery "f".
As it turned out we decided to move the logic for this to the
application layer, but it is always interesting to see your solutions.

I cant help feeling that it would be nice to either:

a) use a cte in using part of a merge statement
b) extend row/range in window clause with a result restriction

It would make it easy to handle "napsack" problems. Anyhow thanks for
your solutions, much appreciated


/Lennart

[...]

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.