in tabase table having a column in it empname field is
there which having 5 duplicate values is there i want
deleted all the duplicates i want showing only one name
only.

Answer Posted / dinesh gupta

use distinct commond

distinct(ename) from table name

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program using SQL queries to find a unique entry in a table.

714


What are the different types of subquery?

815


What is sql server schema compare? How we can compare two database schemas?

768


What is sql service broker?

736


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

750






What is the difference between grant and with grant while giving permissions to the user?

728


What does ss stand for sexually?

794


what exactly sql injuction.how to overcome.....

2243


What is index, cluster index and nonclustered index?

685


How to create an multi-statement table-valued function?

706


Can you please explain the difference between function and stored procedure?

748


Insert syudents details in table.Current system date &time insert into joining time.How do insert?( in sysdate only return current system date how do add time?)

1631


What do you understand by physical_only option in dbcc checkdb?

747


What is the use of commit?

735


Can sql servers link to other servers like oracle?

601