select sal from emp group by sal
Answers were Sorted based on User's Feedback
Answer / shiva
select sal from emp group by sal;
this query group the same salary.Suppose the table contains 30
records in that same sal is 3 times repeating by using above
query it will fetch only 27 rows of sal.So it wont give the duplicate sal.
Is This Answer Correct ? | 14 Yes | 3 No |
Answer / pankajsharma
it will fetch all the salaries one tme in case of duplicacy
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / 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 |
What does the sign mean in sql?
how to drop an existing index in mysql? : Sql dba
How do I restart sql?
How do u count no of rows in a table?
what is denormalization. : Sql dba
What is sharding in sql?
What is difference between primary and secondary key?
How do I order columns in sql?
What is a sql*loader control file?
What do you mean by dbms? What are its different types?
Explain isolation levels. : Transact sql
Which software is used for pl sql programming?