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 to delete similar records in particular
fields(columns) in different tables

Answer Posted / satyam kumar

Hi,

I have manipulated Khandu Shinde answer because it will
delete complete row.

delete from emp where rowid not in ( select max(rowid) from
emp group by empno having count(redundantcolumnName) > 1)

Note: work only with Oracle.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist the characteristics of pl/sql?

1806


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

965


When do we use triggers?

1086


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

1098


What is write ahead logging in sql server?

1055


List the different type of joins?

1061


Do stored procedures prevent sql injection?

971


What do you mean by field in sql?

1087


Can we join same table in sql?

1032


Is sql difficult?

1162


Mention what is the function that is used to transfer a pl/sql table log to a database table?

997


how tsql statements can be written and submitted to the database engine? : Transact sql

1000


What are sql*plus environment variables?

1099


What is user defined functions?

990


Can unique keys be null?

917