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 of the column in my table contains the data like
SAL
----
1000
1000
2000
3000
3000

So my requirement is i want output like
SAL
---
1000
2000
3000

it mean i want to delete duplicate rows only how should u
write query?

Answer Posted / manju

Select sal from emp group by sal having count(*)>=1

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between syntax error and runtime error?

1130


What is insert command in sql?

1121


how can we destroy the session, how can we unset the variable of a session? : Sql dba

990


how to create a new table in mysql? : Sql dba

983


Difference between truncate, delete and drop commands?

1080


How do I find duplicates in the same column?

1075


What is the syntax to add a record to a table?

1083


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3564


what is query cache in mysql? : Sql dba

1026


what are all types of user defined functions? : Sql dba

1038


What are transaction and its controls?

1033


how to use case expression? : Sql dba

1014


How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?

1087


What are the different types of functions in sql?

1046


What is over () in sql?

946