I have a table EMP in which the values will be like this
EmpId Ename Sal DeptId
11 Ram 10000 10
11 Ram 10000 10
22 Raj 20000 20
22 Raj 20000 20
33 Anil 15000 30
33 Anil 15000 30
I want to delete only duplicate Rows. After Delete I want
the output like this
EmpId Ename Sal DeptId
11 Ram 10000 10
22 Raj 20000 20
33 Anil 15000 30
Answer Posted / samadhan
use distinct keywor in sql query
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is a heap?
optimization techinques
How to create a view using data from another view?
how you can get the list of largest tables in a database? : Sql server administration
What are the properties of the relational tables?
How to retrieve error messages using mssql_get_last_message()?
What does asynchronous call backs means?
What is database replication?
Explain indexed views and partitioned view with their syntax.
Explain what is lock escalation and what is its purpose?
What is the difference between stored procedure and functions?
What is sql server used for?
What are different types of statement?
Explain important index characteristics?
What is the difference between ddl and dml?