Link to home
Start Free TrialLog in
Avatar of bibi92
bibi92Flag 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
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bibi92

ASKER

Thanks
Thanks for the grade.  Good luck with your project.  -Jim