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 do you verify a complicated sql?

625


What are the main components of teradata system?

580


Explain the term 'columns' related to relational database management system?

546


What is the use of fallback?

558


What are the 5 phases in a multiload utility?

606






Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

566


How to load specific no.of records using bteq, or fastload,or multiload

1315


What is called partitioned primary index (ppi) and discuss the advantages of using it in a query?

542


What is the use of having index on table?

581


What is the command in bteq to check for session settings ?

634


What is the use of teradata system software?

547


What is teradata and why it is used?

583


What are the functions of a teradata dba?

596


What is the maximum number of dml can be coded in a multiload script?

619


What is the purpose of upsert command?

589