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

select distinct(SAL) as SAL from table_name;

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by stored procedures?

541


What is a Mapplet?

639


explain mysql aggregate functions. : Sql dba

541


What program will open a mdb file?

491


How to sort the rows in sql.

594






Can we create clustered index without primary key?

517


Which is the correct statement about truncate and delete?

519


What are sql built in functions?

504


What is embedded sql what are its advantages?

500


How can we store rows in PL/SQL using array?

657


Can we use the cursor's to create the collection in PL/SQL?

511


how to extract a unit value from a date and time? : Sql dba

550


Is the primary key an index?

588


What is a relationship and what are they?

576


What is sql and its types?

623