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 same table

Answer Posted / swapna

One way is to rename the original table to something else,
and copy the unique records into the original table.

rename 'Table2', 'Table1'

select distinct * into Table2 from Table1

drop table1

Is This Answer Correct ?    5 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between blob and text? : Sql dba

964


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

3010


What is trigger with example?

1015


How does postgresql compare to mysql?

989


what is cross join? : Sql dba

941


i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5

3928


Which sql statement is used to return only different values?

955


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

903


Can we use views in stored procedure?

972


how to load data files into tables with 'mysqlimport'? : Sql dba

1035


Show the cursor attributes of pl/sql.

998


what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

933


How many types of primary keys are there?

980


How can a function retun more than one value in oracle with proper example?

1029


How do you break a loop in pl sql?

989