one of the column in my table contains the data like
SAL
----
1000
1000
2000
3000
3000
So my requirement is i want output like
SAL
---
1000
2000
3000
it mean i want to delete duplicate rows in the table
permanently and i want output in the above formatow should u
write query?
Answer Posted / bibhudatta panda
DELETE FROM TABLENAME
WHERE ROWID NOT IN(
SELECT MAX(ROWID)
FROM TABLENAME
GROUP BY Sal
)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is primary key sql?
What is varchar used for?
What are the events on which a database trigger can be based?
Is sql port 1433 encrypted?
What is pl sql script?
What are the two characteristics of a primary key?
Can we debug stored procedure?
What is a composite primary key?
Can we call stored procedure in function?
what are date and time functions in mysql? : Sql dba
what is clause? : Sql dba
What has stored procedures in sql?
What programs use sql?
What is pl sql and why it is used for?
How many developers work on postgresql?