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

hi frnds i want to learn teradata utilities and teradata dba real time. i have 1+ years of experience in teradata. so i want to go deeply in Tearada. plz let me know at my email id who r best to learn from. im lookng for a realtime guy in HYD or Banglr. Thanks in advance. yedu my email-id: jakkayedukondalu@gmail.com@gmail.com

0 Answers  


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

4 Answers   TCS,


What is the difference between fastload and multiload?

0 Answers  


In your project what type of issues and errors you facing in Teradata

1 Answers   iGate,


Steps to create a data model?

0 Answers  






What are the various indexes in teradata? How to use them?

0 Answers  


Why Fload doesn’t support multiset table?

9 Answers  


How is Teradata in current market?

4 Answers  


Why Multiload does not supports USI and supports NUSI?

4 Answers  


Highlight a few of the advantages that ETL tools have over Teradata.

0 Answers  


IN A TABLE CAN WE USE PRIMARY KEY IN ONE COLUMN AND IN ANOTHER COLUMN BOTH UNIQUE AND NOT NULL CONSTRAINS.IF YES HOW?PLZ GIVE ME A EXAMPLE.

2 Answers  


Hi frnds...can any one help me regarding this que.. We have column in a table name it as C1 WHICH CONTAIN ALPHANUMERIC AND NUMERIC VALUES. C1 2A 2B 2V 2H 1 2 3 4 5 i want to retrive numeric values like 1,2,3,4,5 How we can get Plz let me know.Thanks in advance

4 Answers   IBM,


Categories