Write a query to delete duplicate records in SQL SERVER
Answer Posted / nag
create table MMM(Name varchar(20),age int)
select * from MMM
insert into MMM values('MIKE',20)
insert into MMM values('Shuck',30)
insert into MMM values('Shuck',30)
insert into MMM values('Sh',90)
insert into MMM values('Shuc',60)
insert into MMM values('Sonu',70)
insert into MMM values('Siddu',80)
insert into MMM values('nagu',50)
SELECT name,age
FROM mmm
GROUP BY name,age
HAVING count(*) <=1
Try this query friends it will work out
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what is the system function to get the current user's user id? : Sql server database administration
What part does database design plays a role in performance of an sql server-based application?
What is data file in computer?
Which are ddl commands?
Please explain go command in sql server?
How many database files are there in sql server 2000?what are they?
What happens when the SQL Azure database reaches Max Size?
What is the use of keyword with encryption. Create a store procedure with encryption?
What is the difference between mysql and sql server?
What is the optimization being performed in oracle and SQL Server?
What are the different subsets of sql?
How to check table values in sql server?
Describe the left outer join & right outer join. : sql server database administration
Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security
What are the steps to insert a table?