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...

Delete duplicate rows from a table without primary key by
using a single query
Table Employee
empname salary
A 200
B 300
A 200
C 400
D 500
D 500

Output should be

A 200
B 300
C 400
D 500

Answer Posted / jansi rani

SELECT EMPNAME,SAL FROM EMP GROUP BY EMPNAME,SAL

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a select query statement in ms sql server?

1081


How to deploy the Report?

138


Is natural join and equi join same?

976


What is difference between count (*) and count column?

909


Explain security with sql azure?

186


What is a trigger what are the advantages of trigger?

1002


What is the difference between dbcc indexdefrag and dbcc reindex?

987


What are the properties and different types of sub-queries?

1011


How to resolve the orphan use problem? : sql server security

1019


What is the Disadvantage of indexed sequential file.

1084


what authentication modes does sql server support? : Sql server database administration

1119


tell me the disaster recovery plan

2516


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

1067


What are the purposes of floor and sign functions?

978


What are the restrictions that views have to follow?

972