one table have
input
no name
10 rao
20 siva
30 srinu
10 rao
i want to ouput like this way
no name
20 siva
30 srinu
10 rao
how it posible in only sql server query?not oracle?

Answers were Sorted based on User's Feedback



one table have input no name 10 rao 20 siva 30 srinu 10 rao i want to ouput lik..

Answer / babu

Hi,

sel no,name from table group by no,name order by no,name;

Is This Answer Correct ?    6 Yes 3 No

one table have input no name 10 rao 20 siva 30 srinu 10 rao i want to ouput lik..

Answer / ankal

This problm solve only using Distinct or Group by
syntax:
1:sel distinct no,name from tablename;
2:sel no,name from tablename group by no,name;

Is This Answer Correct ?    3 Yes 1 No

one table have input no name 10 rao 20 siva 30 srinu 10 rao i want to ouput lik..

Answer / tdguy

use distinct or group by to avoid duplicates in teradata.

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,


List out some of the primary characteristics of teradata.

0 Answers  


What are the various etl tools in the market?

0 Answers  


"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  


What is the difference between correlated sub queries and inner queries?

4 Answers  






How do you check the performance of Teradata Query and list down the basic Performance Tuning steps you use?

2 Answers   IBM,


Can we collect statistics on multiple columns?

0 Answers  


Where is teradata rdbms used?

0 Answers  


Explain about Skew Factor?

6 Answers   TCS,


Can you load multiple data files for same target table using fastload?

1 Answers  


Mention a few of the ETL tools that come under Teradata.

0 Answers  


What is dimensional modeling?

0 Answers  


Categories