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 only how should u
write query?

Answer Posted / mohannad amarneh

select distinct(sal) from my_table;

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you have more than one key in a database?

503


what is acid property in database? : Sql dba

555


how mysql optimizes distinct? : Sql dba

545


Explain what is a field in a database and record in a database?

602


what are sequences

1084






how many sql dml commands are supported by 'mysql'? : Sql dba

563


How long it takes to learn pl sql?

525


Explain the advantages and disadvantages of stored procedure?

639


What is the difference between an inner and outer join?

531


What is group by in sql?

541


Which query operators in sql is used for pattern matching?

536


What is a Mapplet?

639


what is the difference between rownum pseudo column and row_number() function? : Sql dba

610


how to increment dates by 1 in mysql? : Sql dba

539


What is indexing oracle sql?

554