Which Department has MOST NUMBER of employees?

Answer Posted / senthil

select column_name,count(*)from table_name group by
column_name having count(*)=(select max(count(*)) from
table_name group by column_name);

PLZ Contact Any Queries (raja.prem86@gmail.com)

Is This Answer Correct ?    20 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens to the current transaction if a ddl statement is executed?

580


How to test null values?

678


How to check the server version in oracle?

613


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1578


What are nested tables?

673






What are triggers in oracle?

561


What is a nvl function?

566


What is set verify off in oracle?

579


What is PL/SQL ?

1115


How to save query output to a local file?

563


What is oracle used for?

536


What are the logical operations?

677


How to rename an index in oracle?

618


How to convert a string to a date in oracle database?

542


What is a tns service name?

536