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

What is your daily office routine?

1812


Why do we need view in sql?

551


What are the steps for performance tuning.

845


How do you break a loop in pl sql?

528


What are the sql versions?

522






How do I view a table in sql?

545


How we can update the view?

603


What is difference between hql and sql?

512


Which command is used to delete a package?

577


What is sql data?

554


How do I upgrade sql?

551


Mention what are different methods to trace the pl/sql code?

562


How do I audit the sql sent to the server?

526


Can we use join in subquery?

567


What are the types of variables use in pl sql?

513