Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Convert this access code to Sql

Author  Topic 

h2sut
Starting Member

40 Posts

Posted - 2008-06-24 : 11:24:56
Hello does anyone know how to convert this access code to sql. Also is there a program out there that will do it for you.

IIf([Ceridian]![UnionIndicator]="U" And [YearsService]>=3,[HealthBenefits]![medplan.Bi-WeeklyURBio-Rad]*26,[HealthBenefits]![medplan.Bi-WeeklyBio-Rad]*26) AS MedicalCostER, IIf([Ceridian]![UnionIndicator]="U" And [YearsService]>=3,[medplan]![Bi-WeeklyUREE]*26,[medplan]![Bi-WeeklyEE]*26) AS MEdicalCostEE

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-24 : 12:56:00
Hint

IIF(condition,value1,value2) can be written as

CASE WHEN condition then value1 else value2 END

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -