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
What is program debugging?
how to create a new table by selecting rows from another table in mysql? : Sql dba
How do I run a program in pl sql?
Why procedure is used in sql?
Is join same as left join?
What are dml commands?
How do you remove duplicates without using distinct in sql?
How can you view the errors encountered in a trigger?
Is left join inner or outer by default?
What is the maximum rows in csv?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
How do I view a table in sql?
what is the difference between truncate and delete statement? : Transact sql
write an sql query to find names of employee start with 'a'? : Sql dba
how to present a past time in hours, minutes and seconds? : Sql dba