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

Select Sal From Emp
Group By Sal

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the plv (pl/vision) package offers?

619


can sql servers linked to other servers like oracle? : Sql dba

554


Which is faster subquery or join?

663


Explain the select statement in sql?

616


Explain the difference between rename and alias?

543






How to run sql statements through the web interface?

514


What is the difference between between and in condition operators?

538


How do I view output in sql developer?

578


what is the command used to fetch first 5 characters of the string? : Sql dba

1136


How to rename a table?

558


How do I kill a query in postgresql?

554


Why do we create views in sql?

561


Can we use delete in merge statement?

516


Can I join the same table twice?

526


How can we implement rollback or commit statement in a trigger?

582