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 / amit
SQL>DELETE FROM <TABLE NAME>
WHERE ROWID NOT IN (SELECT MIN(ROWID) FROM <TABLE NAME>
GROUP BY SAL);
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
can sql servers linked to other servers like oracle? : Sql dba
what is “go” in t-sql? : Transact sql
Is sql open source?
What is sqlerrd?
How many unique keys can a table have?
What is plpgsql language?
What is substitution variable in pl sql?
What are the indexing methods?
how to rename an existing table in mysql? : Sql dba
What are sql data types?
Can we delete column in sql?
how can we destroy the cookie? : Sql dba
Can we debug stored procedure?
Write a sql query to convert all character to uppercase after hypen.
Is left join same as join?