select sal from emp group by sal

Answer Posted / arun karthick

select sal from emp group by sal; and select distinct sal
from emp ;
Both queries will give the same result - fetch the salary
in emp table without duplicates.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In what condition is it good to disable a trigger?

741


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

712


What is the starting oracle error number? What is meant by forward declaration in functions?

738


Can sql developer connect to db2?

756


What is the use of primary key?

731






what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

757


what are the join types in tsql? : Transact sql

755


What are the differences between implicit and explicit cursors?

704


What is the difference between a procedure and a function?

699


Can a trigger call a stored procedure?

747


What kind of join is join?

704


What is embedded sql with example?

753


What is the left table in sql?

699


What is sap sql?

717


Does user triggers have entry for trigger with compilation errors?

792