Hi
SQL Server Management Studio Express
Maybe it's a silly question.
I have to write in a stored procedure something like that:
select
table.number,
...
case
when table.Company='A'
then table.Ts as TsA
when table.Company<>'A'
then table.Ts as TsnonA
end
from table
I need TsA, TsnonA in the report I'm doing, but I get error at "as".
Could you help me with this?
SQL Server Management Studio Express
Maybe it's a silly question.
I have to write in a stored procedure something like that:
select
table.number,
...
case
when table.Company='A'
then table.Ts as TsA
when table.Company<>'A'
then table.Ts as TsnonA
end
from table
I need TsA, TsnonA in the report I'm doing, but I get error at "as".
Could you help me with this?