Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Case Statement - In Subquery Help Please
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Case Statement - In Subquery Help Please
Miscellaneous
Thread ID:
00885428
Message ID:
00885428
Views:
59
I thought I finally had the cases figured out :( but now I know different. I using this statement in a subquery, but I've got an error message about the = sign Hoping someone can spot the error for me.

Thanks
Kirk
case meetings.AdmitTypeID
  when isnull((SELECT  dbo.ctAdmissionType.InOrOut 
	FROM   dbo.meetings m INNER JOIN  
	dbo.ctAdmissionType ON m.AdmitTypeID = dbo.ctAdmissionType.AdmitTypeID
	where m.meetingnumber=meetings.meetingnumber),0) = 1 then 'IN' else 'OUT' end as AdmitType
Next
Reply
Map
View

Click here to load this message in the networking platform