Hi,
Getting errors on:
The error is:
Msg 156, Level 15, State 1, Procedure myProc, Line 44
Incorrect syntax near the keyword 'AS'.
Doesn't seem to like the "AS", but I need to do this.
Please help.
Thanks
Getting errors on:
Code:
SELECT
ab.ClosingBalance,
CASE
WHEN v1.Broker = 'Smith Barney'
THEN NULL
ELSE
COALESCE(v1.Balance1, v2.Balance2) AS BegBalance
END
FROM myView1 v1
LEFT OUTER JOIN myView2 v2
ON v1.Broker = v2.Broker
The error is:
Msg 156, Level 15, State 1, Procedure myProc, Line 44
Incorrect syntax near the keyword 'AS'.
Doesn't seem to like the "AS", but I need to do this.
Please help.
Thanks