Hi friends this is my select statement
SELECT user_accountID, Expensive = case quotaAmount
when quotaNo = 'quota1' then sum(quotaAmount ) else 0 end
FROM user_accounts
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '='.
whenever i am executing the query this error will be occur please clear this error
i am newone of this sqlserver.I did not understand this problem.Please clarify my doubt
SELECT user_accountID, Expensive = case quotaAmount
when quotaNo = 'quota1' then sum(quotaAmount ) else 0 end
FROM user_accounts
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '='.
whenever i am executing the query this error will be occur please clear this error
i am newone of this sqlserver.I did not understand this problem.Please clarify my doubt
Comment