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 / swastik

DELETE FROM Emp A
WHERE ROWID NOT IN
                  (
                   SELECT MIN(ROWID)
                   FROM Emp B
                   WHERE A.Sal = B.Sal
                  )

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Materialized View? In What Scenario we Use Materialized View?

9622


How to read xml file in oracle pl sql?

951


What is use of term?

1128


How can you load multi line records? : aql loader

1126


What are the operators used in select statements?

1100


What is %s in sql?

1080


Describe different types of general function used in sql?

1093


What are schema-level triggers?

1155


What does closing a cursor do?

1376


How to rename a column in the output of sql query?

1132


What is the basic structure of an sql?

1159


Which is better join or inner query?

1128


Can we call procedure in select statement?

1113


Which operator is used in query for pattern matching?

1133


How can you get sql*loader to commit only at the end of the load file? : aql loader

1062