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

How can bottlenecks be identified?

0 Answers  


Explain fallback in teradata?

0 Answers  


What is a common data source for the central enterprise data warehouse?

1 Answers   Wipro,


Highlight the need for Performance Tuning.

0 Answers  


Can we have two time dimensions in a schema(either star or snow flake)? For ex if we want joining date of employee and if we want today's sales with time whether can we have two time dimensions for accommodating above tasks?

0 Answers   IBM,






Why do you get spool space errors? How do trouble-shoot them?

0 Answers  


What is spool space?

0 Answers  


How many types of joins are there in teradata?

0 Answers  


What's the syntax of sub string?

1 Answers  


What are the differences between TerdataV2R5 and V12 Versions please??

3 Answers  


Explain the meaning of Amp?

0 Answers  


I want to write one query How to get Matched records and unmatched records in table?

4 Answers   TCS,


Categories