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

select DISTINCT sal from emp;

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of exceptions in pl/sql?

541


How delete all data from table in sql?

568


What is use of trigger?

508


What is trigger and types?

559


Explain how can you save or place your msg in a table?

593






how to use like conditions? : Sql dba

571


What is assignment operator in pl sql?

560


Why do we use procedures in sql?

544


What are the three forms of normalization?

520


Is left join faster than inner join?

611


Why do we use sql constraints? Which constraints we can use while creating database in sql?

543


Is null operator in sql?

602


How many sql commands are there?

670


Explain mutating table error.

641


What are the operators in sql?

522