cheenujunk
Programmer
I am using the following query
select 'level' =
case when dbo.function1 = 1 then
( case when ( dbo.function2(dbo.function3, 1) > 0) then 3
end )
end
it is showing error "Cannot find either column "dbo" or the user-defined function or aggregate dbo.function3 "
dbo.function3 is TVF.
so i tried with this
select 'level' =
case when dbo.function1 = 1 then
( case when ( dbo.function2((select * from dbo.function3), 1) > 0) then 3
end )
end
then i have
"Only one expression can be specified in the select list when the subquery is not introduced with EXISTS."
ONLY function3 is TVF all others are scalar.
Let me know whats the right way to code this.
select 'level' =
case when dbo.function1 = 1 then
( case when ( dbo.function2(dbo.function3, 1) > 0) then 3
end )
end
it is showing error "Cannot find either column "dbo" or the user-defined function or aggregate dbo.function3 "
dbo.function3 is TVF.
so i tried with this
select 'level' =
case when dbo.function1 = 1 then
( case when ( dbo.function2((select * from dbo.function3), 1) > 0) then 3
end )
end
then i have
"Only one expression can be specified in the select list when the subquery is not introduced with EXISTS."
ONLY function3 is TVF all others are scalar.
Let me know whats the right way to code this.