![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 20 Dec 2005 @ 11:47:47 GMT
Hi, Instead of writing COALESCE for 100 times or for all columns that have NULL values, You can use following query to get it done.
select
'COALESCE(' || trim(columnname) || ', '' '')'
from dbc.columns
where databasename='DBNAME'
and tablename='TABLENAME'
Thanks, Kavitha
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||