Teradata syntax
Posted: Thu Jul 26, 2007 8:23 am
I have to write a query in Teradata
one of my table is empty.
select count(*) as counts
,'sourcename' as src_name
from table1
if the table is empty it returns zero rows.
I want my output to give me
0 sourcename
is there any function which will force the values 0 and sourcename.I tried zeroifnull that didnt work.can any one please help me with syntax?
one of my table is empty.
select count(*) as counts
,'sourcename' as src_name
from table1
if the table is empty it returns zero rows.
I want my output to give me
0 sourcename
is there any function which will force the values 0 and sourcename.I tried zeroifnull that didnt work.can any one please help me with syntax?