Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Conditional split in SSIS

Author  Topic 

Anand.A
Posting Yak Master

109 Posts

Posted - 2011-10-18 : 02:09:53
SELECT SUM(A.BALANCE_AMOUNT)
FROM ACCOUNT A, CUSTOMER C, ACCT_CUST BG
WHERE A.ACCOUNTTYPE = 'Liab'
AND A.ACCOUNTCATEGORY IN ('Demand','Time')
AND A.ACCOUNYSUBCATEGORY IN ('Fixed','Save','Current')
AND A.ACCOUNT_SK = BG.ACCOUNT_SK
AND BG.PRIMARY_CUSTOMER_SK = C.CUSTOMER_SK
AND C.CLASS = 'B'

hi

i want to write conditional split for this sql query


(ACCOUNT_TYPE == "Liab") && (ACCOUNTCATEGORY == "Demand" || ACCOUNTCATEGORY == "Time") && (ACCOUNTSUBCATEGORY == "'Fixed" || ACCOUNT_SUBCATEGORY == "Save" || ACCOUNTSUBCATEGORY == "Current")&& (CLASS == "B")


i used this in my conditional split but it only given d record for
ACCOUNTSUBCATEGORY == "Save" how can i get another "fixed"&"current" datas

anand

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-18 : 02:20:17
check your data to ensure there are rows coming that satisfies other conditions also

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -