![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 11 May 2006 @ 18:53:41 GMT
The "valued" CASE syntax always implies a test for equality. If you want to use the LIKE operator you must use "searched" CASE:
select case
when a like '%app%' Then 'Apple'
when a like '%mic%' Then 'Microsoft'
end ...
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||