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

How to Declare Fixed Length String Value In PL SQL

754


How do I count rows in sql?

649


what is table? : Sql dba

681


Is sql between inclusive?

702


Define sql delete statement.

657






what are the different type of sql's statements ? : Sql dba

614


Explain architecture of sql server notification services?

696


Why do we need view in sql?

642


How to run sql*plus commands in sql developer?

690


Can we commit in trigger?

630


How to create an array in pl/sql?

668


What is the largest value that can be stored in a byte data field?

601


What is pl sql architecture?

588


What is mutating table error?

762


How do I create a memory optimized filegroup?

605