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
What is the code to link a cell to a file?
Unchangeable Combo Box
Filter on split form
VBA code to clean all cells in all worksheets from non-printable characters
Is there a way to access the Office clipboard using Visual Basic in Word?
Getting the Index of a Repeater Row
Error 84ff System Event Log Full
two domain name in one domain controller
Terminal Server Spool Directory Huge at 3.5GB
MSExcel range error running VBA in MSAccess application