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 is package in pl sql with an examples?

730


What is a string data type in sql?

717


How do you know if a relationship is 2nf?

689


What is pragma in pl sql?

766


Can procedure in package be overloaded?

837






What are the two parts of design view?

769


Explain ddl statements in pl/sql?

734


What are the different types of tables in sql?

659


Explain select statements in sql?

759


What is embedded sql in db2?

708


How sql query is executed?

782


What is sql injection owasp?

725


Is drop table faster than truncate?

740


What is the maximum number of rows in sql table?

741


What is the file extension for sql database?

669