Microsoft
Software
Hardware
Network
Question : SQL 2005 - An expression of non-boolean type specified in a context where a condition is expected, near 'THEN'.
Can someone please assist me past this error?
Msg 4145, Level 15, State 1, Line 39
An expression of non-boolean type specified in a context where a condition is expected, near 'THEN'.
My Case Statement:
Eligibility_Verified = CASE
WHEN ISNULL(pi.EligibilityVerif
ied,0) THEN 'Not Verified'
WHEN pi.EligibilityVerified = 1 THEN 'Active Coverage'
WHEN pi.EligibilityVerified = 2 THEN 'Inactive Coverage'
WHEN pi.EligibilityVerified = 3 THEN 'Pending Verification'
ELSE 'Nothing'
END,
Answer : SQL 2005 - An expression of non-boolean type specified in a context where a condition is expected, near 'THEN'.
>
ISNULL(pi.EligibilityVerif
ied,0)
This is not a contition, which it must be.
Perhaps you mean
ISNULL(pi.EligibilityVerif
ied,0)
= 0
?
Random Solutions
Designing a new Application in C# from the ground up - Windows Forms or WPF? Custom Data Classes or Built in Data Classes?
Getting first instance as result
Exchange 2010 After install when initialising it looks for the DC not the member server
c# asp.net
TSQL: How to plug Nulls with Lookup values in same column and limited keys
Custom Icons on Toolbar- how to? Access 2000
SQL Rewrite this dateadd line
stopping excel flickering
How Do i repair msiexec.exe?
Access 2003 on a Win2k PC. "Your Microsoft office Access database contains a missing or broken reference to the file DAO360.dll version 5.0