what is the query for retrieve the unique values(not display
the duplicates values) from single table?

Answers were Sorted based on User's Feedback



what is the query for retrieve the unique values(not display the duplicates values) from single ta..

Answer / suneel

Select distinct from tablename

Is This Answer Correct ?    7 Yes 1 No

what is the query for retrieve the unique values(not display the duplicates values) from single ta..

Answer / narsimha

select distinct columnsname from table

Is This Answer Correct ?    2 Yes 0 No

what is the query for retrieve the unique values(not display the duplicates values) from single ta..

Answer / nasimha

above answer is correct

Is This Answer Correct ?    2 Yes 1 No

what is the query for retrieve the unique values(not display the duplicates values) from single ta..

Answer / tdguy

If its for few columns and small table, use distinct or
group by to fetch only unique values. But for more no of
columns and more no of records in GB, use partition by to
fetch only unique values.

Is This Answer Correct ?    1 Yes 0 No

what is the query for retrieve the unique values(not display the duplicates values) from single ta..

Answer / mohith.dmdw

select distinct <column_name> from <table_name>;

Is This Answer Correct ?    0 Yes 0 No

what is the query for retrieve the unique values(not display the duplicates values) from single ta..

Answer / sarma

Select distinct * from table name

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Teradata Interview Questions

"pravalli nagireddy" record is there in address column but i want display only 'nagireddy' from the main string what is query for that pls tell me

9 Answers  


Difference between Teradata V2R5 and Teradata V12 versions?

2 Answers   IBM,


What type of indexing mechanism do we need to use for a typical data warehouse?

0 Answers  


How to Skip or Get first and Last Record from Flat File through MultiLoad and TPUMP Utility?

4 Answers   Comsys, IBM,


What is meant by a Least Cost Plan?

0 Answers  






How does hashing happens in teradata?

0 Answers  


what are the day to day activities of teradata DBA ?

0 Answers   TCS,


What are the various reporting tools in the market?

0 Answers  


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

0 Answers  


Explain the new features of teradata?

0 Answers  


What happens when a node suffers a downfall?

0 Answers  


In the Primary Index, what is the score of AMPs that are actively involved?

0 Answers  


Categories