select sal from emp group by sal

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of a subquery?

609


How do I find duplicates in two columns?

656


What is meant by truncate in sql?

629


What is column?

622


Is it possible to read/write files to-and-from PL/SQL?

739






What is bulk compiling in pl/sql.?

698


What is an invalid partition table?

650


What is dml and ddl?

609


Mention what is the plv (pl/vision) package offers?

737


What is interval partition?

626


What are sql triggers used for?

610


Can variables be used in sql statements?

644


What are the uses of sysdate and user keywords?

732


How do you get column names only for a table (sql server)?

767


How to write a query to show the details of a student from students table whose

643