Answer Posted / navaneethakrishnan
table name : tblduplicate
Ans : DELETE TOP(1) FROM [tblduplicate] WHERE [ID] = 1
Example :
CREATE TABLE tblduplicate(ID int NOT NULL, Name varchar(50))
insert into tblduplicate values(1, 'Name1')
insert into tblduplicate values(1, 'Name1')
insert into tblduplicate values(2, 'Name2')
insert into tblduplicate values(2, 'Name2')
insert into tblduplicate values(3, 'Name3')
insert into tblduplicate values(3, 'Name3')
select * from tblduplicate
Result :
1 Name1
1 Name1
2 Name2
2 Name2
3 Name3
3 Name3
DELETE TOP(1) FROM [tblduplicate] WHERE [ID] = 1
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Is natural join and equi join same?
How important do you consider cursors or while loops for a transactional database?
What is data compression?
What is index, cluster index and nonclustered index?
Is mysql better than sql server?
Explain the advantages of merge replication?
Explain important index characteristics?
What is snapshot report?
Explain user defined views?
Why use view instead of a table?
How many types of the database links?
What are the dmvs? : sql server database administration
Explain comment on transactions?
Explain how does the report manager work in ssrs?
what are triggers? : Sql server database administration