Avatar of bibi92
bibi92
Flag for France

asked on 

question about iff

Hello,

I try select distinct d.LegalName, IIF ( (et.Description = 'VA'), 'YES', 'NO' )  as 'WITHOUT VA', a.* from ##CPTE a

The following error is returned :
Incorrect syntax near '='.

How can I resolve it?

Thanks
Microsoft SQL Server

Avatar of undefined
Last Comment
Jim Horn

8/22/2022 - Mon