Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

case

$
0
0

Hi,

Please help for the flowing question, Thanks

I need to find out the final balance = credit -(t1+t2+t3). However, 
t1- only exits  when st1=2 and st2=1 or (st1=1 and st2=1 and st3=1) 
t2- only exits when  st1=2 or (st1=1 and  st3=1)
t3- only exits when  st1=2 or (st1=1 and  st3=1)
In the example below, t1 is not exist, so the final balance = credit -(t2+t3) =5000-(1000+1500)


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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