Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain and compare pros and cons of snow flake schemas?

983


Difference between multiload and tpump?

1038


What is the use of fallback?

937


What are the string manipulation operators and functions associated with teradata?

1024


What is the use of having index on table?

949


If RDBMS is halted what will you do ?

2098


In general, how do you optimze any sql in teradata?

973


A certain load is being imposed on the table and that too, every hour. The traffic in the morning is relatively low, and that of the night is very high. As per this situation, which is the most advisable utility and how is that utility supposed to be loaded?

1151


What is the multi-insert?

962


How many sessions of MAX is PE capable of handling at a particular time?

1030


Explain Teradata performance tuning and optimization?

1105


If Fast Load Script fails and only the error tables are made available to you, then how will you restart?

1084


What are types of partition primary index (ppi) in teradata?

996


How can bottlenecks be identified?

955


What are the scenarios in which full table scans occurs?

938