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
Explain the uses of a database trigger?
How to start the command-line sql*plus?
What is sp_helptext?
What are the different dml commands in sql?
Why we use sql profiler?
How is a PL/SQL code compiled?
What is ttitle and btitle?
Can we have two clustered index on a table?
What are the indexing methods?
What are the different types of sql commands?
What are different methods to trace the pl/sql code?
What is sqlcommand?
What is a sql*loader control file?
Is primary key clustered index?
How does postgresql compare to "nosql"?