on 11-28-2014 8:34 AM
Hi,
I am trying to create a FMS that applies only to a specific row which I am currently working on.
Here is my SQL statement:
SELECT
SUM((CASE WHEN $[@CHECKSMONITORING.U_ACCTG_TREA] IS NOT NULL THEN 1 ELSE 0 END)+
(CASE WHEN $[@CHECKSMONITORING.U_TREA_EXEC] IS NOT NULL THEN 1 ELSE 0 END)+
(CASE WHEN $[@CHECKSMONITORING.U_EXEC_TREA] IS NOT NULL THEN 1 ELSE 0 END)+
(CASE WHEN $[@CHECKSMONITORING.U_TREA_PAYEE] IS NOT NULL THEN 1 ELSE 0 END))
I dont know if I am just missing the "WHERE" part but I dont know too what will be the where condition that I should add so that it only considers tha values of the current row Im working on. Whenever I try to use the above FMS, it only returns and looks up the values of the very first record in the UDT.
Hoping someone can help me on this.
Thanks,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.