Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Use Apostrophe in CASE Statement

Author  Topic 

michaelb
Yak Posting Veteran

69 Posts

Posted - 2009-02-10 : 20:07:25
Hi,

I have a query with a case statement where I need to have an apostophe.

This is the code:
case	when t1.groupcode in (100,110,111,113,114,115,126) then 'Hotties'


I need to put an apostrophe in Hotties so that is appears as Hottie's.

How can I do this?

Thanks,
Michael

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-10 : 20:09:21
'Hottie''s'

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

michaelb
Yak Posting Veteran

69 Posts

Posted - 2009-02-10 : 20:14:04
Thanks!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-10 : 20:16:13
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -