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

write a query for how to eliminate the duplicate rows
without using distinct?

Answer Posted / czarabid

it's very simple the question is to delete the duplicated
records and it's solution is here
DELETE FROM TABLE_NAME1 t1 WHERE ROWID </> any(SELECT ROWID
FROM TABLE_NAME1 t2 WHERE t1.column1=t2.column1);
this will delete only the redundant records leaving only one
copy of the same records in the table.
If you want to delete all the records which are redundant
then the solution is here
DELETE from table_name1 t1 where rowid <> any (select rowid
from table_name1 t2 where t1.no=t2.no)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of data warehouses?

1568


Name the different lookup cache(s)?

1287


What are the challenges you have faced in your Project (DWH- ETL)? Explain with example?

8255


How to create different types of slowly changing dimensions (SCD) in informatica using the mapping wizard?

1122


How can informatica be used for an organization?

1268


Can we create a node as a gateway node and the same node can be assigned to a grid?

1117


What is primary and backup node?

1169


What is a filter transformation?

1084


How to create or implement slowly changing dimension (SCD) Type 2 Effective Date mapping in informatica/Flagging mapping in informatica/visioning mapping in informatica?

1147


Can one use mapping parameter or variables created in one mapping into any other reusable transformation?

1136


When do you use sql override in a lookup transformation?

1137


Define pmcmd command?

1101


Whats the difference between informatica powercenter server, repositoryserver and repository?

1213


What is the way to execute pl/sql script using informatica mapping?

1673


What is an aggregator transformation?

1142