How to handle nulls in Teradata???
How many columns can be there in a table???
How to find average sal with out using avg function????

Answers were Sorted based on User's Feedback



How to handle nulls in Teradata??? How many columns can be there in a table??? How to find average..

Answer / sri

without using "avg" we can find the avg salary by using sum
(sal)/count(sal);

sel sum(sal)/count(sal) as avgsal from tablename

regards,
sri

Is This Answer Correct ?    9 Yes 0 No

How to handle nulls in Teradata??? How many columns can be there in a table??? How to find average..

Answer / yuvaevergreen

1. Use zeroifnull,nullifzero in select and NULL in insert
directly.
2. 256 columns max per table.

Is This Answer Correct ?    9 Yes 1 No

How to handle nulls in Teradata??? How many columns can be there in a table??? How to find average..

Answer / tdguy

1. use coalesce(column1,column2) or case when column1 is
nul...end or zeroifnull(column1) to handle nulls.
2. in TD 14.0 there can be 2048 columns per table.
3. sum/count gives you the average of the field.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Teradata Interview Questions

What is a pseudo key? What is its use???

2 Answers   Mphasis,


Explain teradata architecture?

0 Answers  


what is object level locking ? where do appear this type of locking ?

0 Answers  


In Teradata, what is the significance of UPSERT command?

0 Answers  


if a error occured in FASTLOAD is the fastload job stops?

1 Answers   CTS, Deloitte,


What is partitioned primary index (ppi)?

0 Answers  


What are the steps to create a data model?

0 Answers  


How a Referential integrity is handled in Teradata?

5 Answers  


Aborted in Phase 2 data acquistion completed in fastload?

2 Answers  


Can any one explain me the difference between BTEQ and MLOAD,TUMP. All canbe used for same purpose but still differnt methods. why ?

0 Answers  


What are the different table types that are supported by teradata?

0 Answers  


Does SDLC changes when you use Teradata instead of Oracle?

2 Answers  


Categories