Posted by chudson007 on 09/05/05 19:42
With the syntax below, why is field1a not "A" if field1 does not contain "_" SELECT Field1a = CASE WHEN (field1 LIKE '%_%') THEN (charindex('_', field1)) ELSE 'A' END, field1 FROM [Table1]
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming