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
Event ID 1001 BSOD System Reboot After BugCheck Windows XP
REMOVING TIMESTAMP FROM A DATE FIELD
what is the outlook history file called
Convert Windows 2003 TS licenses to Windows 2008 TS CAL's
Email Missing Signature
The most effective way to communicate on the web in real time.
Will Not See Hard Drive
New issue with report run counter not incrementing by 1
Why is the system popping up after reboot with .NET Framework 2.0 required after Vista SP 64 to Win 7 64 upgrade?
My asp.net button is still not enabled even when I set it to enabled