I guess that the 2000 upgrade took care of it because select citizenship_type = CASE citizenship_type WHEN 1 THEN 'Citizen' WHEN 2 THEN 'National' WHEN 0 THEN 'Non-Citizen' end from candidate
works Thanks :) -----Original Message----- From: Loathe [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 9:47 AM To: CF-Community Subject: SQL Server CASE and CAST at once? I remember you could do something like Select citizen_type = CASE WHEN citizen_id == 1 THEN 'Citizen' WHEN citizen_id == 2 THEN 'National' WHEN citizen_id == 0 THEN 'Non-Citizen' end from candidate where candidate_id = <cfqueryparam value="" cfsqltype="" /> I know I have to have a cast in there somewhere, but can't remember where. Anyone know what I mean?? Tim ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:163336 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54