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.
| 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 BGWHERE A.ACCOUNTTYPE = 'Liab'AND A.ACCOUNTCATEGORY IN ('Demand','Time')AND A.ACCOUNYSUBCATEGORY IN ('Fixed','Save','Current')AND A.ACCOUNT_SK = BG.ACCOUNT_SKAND BG.PRIMARY_CUSTOMER_SK = C.CUSTOMER_SKAND C.CLASS = 'B'hii 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" datasanand |
|
|
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 MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|