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 / destiny

create table salary2 as select distinct * from salary1
drop table salary1
rename salary2 to salary1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define sql insert statement ? : Sql dba

552


What is procedure explain with example?

544


what is a control file ? : Sql dba

582


what does myisamchk do? : Sql dba

563


What is normalization sql?

515






Is nosql faster than sql?

546


How does left join work in sql?

526


How many types of index are there?

556


What is the purpose of cursors in pl/sql?

640


What is sql dialect?

531


What is not in sql?

502


What is a full join?

532


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

599


What is a recursive stored procedure?

621


What are the types of variable use in pl sql?

567