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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to eliminate product joins in a teradata sql query?

594


How does hashing happens in teradata?

614


What are the frequently used data types in teradata?

588


What are the primary characteristics of the Teradata.

579


If the PMON is not working then how do you identify and monitor all the processes, resources and sessions ?

1730






Describe the set operators in teradata.

574


What is node? How many nodes and amps used in your previous project?

664


List out all forms of LOCKS that are available in Teradata.

543


What do you mean by ttu in teradata?

561


How would you load a very large file in teradata in general?

554


What is teradata?

637


What is the purpose of joins in teradata and what are the available join types?

539


What are the various reporting tools in the market?

606


What is the difference between teradata and basic rdbms?

559


What are the functions involved in shared information architecture?

596