1) how to delete duplicate records from table in sql server
2005

2) what is run time polymorphism

Answers were Sorted based on User's Feedback



1) how to delete duplicate records from table in sql server 2005 2) what is run time polymorphi..

Answer / kishore

select distinct * from Mytable
select distinct * into Newtable from Mytable
drop table Mytable
select * into Mytable from Newtable

Is This Answer Correct ?    12 Yes 7 No

1) how to delete duplicate records from table in sql server 2005 2) what is run time polymorphi..

Answer / shailesh

2>Polymorphism is done by two way Overloading and
overriding.Overriding is called the runtime Polymorphism.

Is This Answer Correct ?    3 Yes 1 No

1) how to delete duplicate records from table in sql server 2005 2) what is run time polymorphi..

Answer / reva

DELETE FROM tableName WHERE id NOT IN
(SELECT MIN(id) FROM tableName GROUP BY name)

Is This Answer Correct ?    2 Yes 2 No

1) how to delete duplicate records from table in sql server 2005 2) what is run time polymorphi..

Answer / nkm

SELECT col1,col2 FROM tDupData
GROUP BY col1,col2
HAVING COUNT(*) > 1

Is This Answer Correct ?    4 Yes 14 No

Post New Answer

More C Sharp Interview Questions

What floating point types is supported in C#?

0 Answers  


How you will connect to windows directory in c#?

2 Answers   HP, nTech Solutions,


What are Regex / regular expressions ?

0 Answers   QuestPond,


What is the console on a mac?

0 Answers  


Why do we need abstract class?

0 Answers  






What is out int in c#?

0 Answers  


What are the Uses of CLR

0 Answers   TCS,


Can we have 2 main methods in c#?

0 Answers  


How to use exception handling in stored procedure?

0 Answers   Wipro,


What is lazy loading and eager loading in c#?

0 Answers  


What framework is used for performance testing/load testing?

0 Answers   TCS,


Explain manifest & metadata?

5 Answers   IBM, Wipro,


Categories