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 is the difference between execution of triggers and stored procedures?

548


how to use myisamchk to check or repair myisam tables? : Sql dba

506


how to check myisam tables for errors? : Sql dba

597


How many tables can you join in sql?

528


How do you define a foreign key?

534






How run sql*plus commands that are stored in a local file?

518


What is embedded sql in db2?

505


what is the difference between truncate and delete statement? : Transact sql

546


What are user defined functions?

577


What are the different types of joins in sql?

581


What is example of database?

514


What is online transaction processing (oltp)?

600


what is the difference between group by and order by in sql? : Sql dba

598


How do you remove duplicate records from a table?

509


What is graph sql?

524