![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 22 Jul 2003 @ 10:23:12 GMT
Use the CASE feature ...
sel case
when col_name > 0 then +1
when col_name < 0 then -1
else '0'
end
from table_name;
Sanjaya
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||