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 / dinesh kumar
delete from table_name alias1
where rownum < ( select max(rownum) from table_name alias2
where alias1.col1 = alias.col2 );
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we create table inside stored procedure?
What is case function?
What are the possible values for the boolean data field?
Describe sql comments?
What are the three pl sql block types?
What are the advantages of pl sql over sql?
Does sql use python?
How many indexes can be created on a table in sql?
What are all the different types of indexes?
What is update query?
what is bdb (berkeleydb)? : Sql dba
How do you identify a primary key?
What is the primary use of normalization?
What schema means?
What are tables and fields in the database?