Avatar of nigerman
nigerman

asked on 

How to Convert Access IIF to SQL Server CASE WHEN...END

Greetings again.

One last conversion request, please.

Ok, one more and I will be done with the conversion issue.

    ranking = "IIF(last_name='" & lname & "',20,0)"

I need to convert to legal sql server code.
   
    I have tried:
   
    CASE WHEN last_name = '" & lname & "' THEN 20,0

I know that doesn't make much sense.
Any help appreciated.
ASP

Avatar of undefined
Last Comment
nigerman
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of nigerman
nigerman

ASKER

Wow, you wear so many hats!

This is incredibly impressive.

Thanks very much
ASP
ASP

Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.

82K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo