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 / annalakshmi.s

select distinct(salary) from tablename

Example:

employee is the table name

salary is the column name means

select distinct(salary) from employee

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)

534


What is query syntax?

515


How do you get column names only for a table (sql server)?

659


What is coalesce in sql?

553


Why do we create views in sql?

547






How many triggers can be applied to a table?

592


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

540


What is schema in sql example?

595


What is the usage of sql functions?

535


How do you update a sql procedure?

518


Is nosql relational?

544


What are inner and outer joins examples of both?

492


Does sql*plus have a pl/sql engine?

560


What do you mean by stored procedures? How do we use it?

517


What is synchronized subquery?

585