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 in the table
permanently and i want output in the above formatow should u
write query?
Answer Posted / priya
select DISTINCT sal from emp;
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
what is a view? : Sql dba
Why schema is used in sql?
What is data control language?
What are %type and %rowtype for?
What is sql select statement?
Can ddl statements be used in pl/sql?
how to convert character strings to dates? : Sql dba
What is the life of an sql statement?
What is sql trigger example?
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
what is the difference between delete and truncate statement in sql? : Sql dba
what is the command used to fetch first 5 characters of the string? : Sql dba
What is difference between sql and excel?
Explain the insert into statements in sql?
Can cursors be part of a trigger body?