following SQL gives err msg 'incorrect syntax near '='
What should be the correct syntax? Thanks.
Using SQL Svr 2000
SELECT balance.item_id, balance.gl_year, balance.gl_period, balance.fund_id, balance.fund_company, balance.account_description,
balance.account_type,
balance.summary_amt = Case balance.account_type
WHEN balance.account_type ='Assets' THEN balance.summary_amt
WHEN balance.account_type ='Liabilities' THEN balance.summary_amt * -1
END,
FROM balance
What should be the correct syntax? Thanks.
Using SQL Svr 2000
SELECT balance.item_id, balance.gl_year, balance.gl_period, balance.fund_id, balance.fund_company, balance.account_description,
balance.account_type,
balance.summary_amt = Case balance.account_type
WHEN balance.account_type ='Assets' THEN balance.summary_amt
WHEN balance.account_type ='Liabilities' THEN balance.summary_amt * -1
END,
FROM balance