GeekInterview.com
Series: Subject: Topic:
Question: 6 of 291

Oracle Program

Display list of jobs, number of employees of each job from departments 10 and 20. List only records if number of employees in each jobs are more than 1.
Asked by: mishel | Member Since Feb-2012 | Asked on: Feb 23rd, 2012

View all questions by mishel

Showing Answers 1 - 1 of 1 Answers
DURGAPRASAD

Answered On : Jul 23rd, 2012

SELECT JOB,COUNT(EMPNO) AS NOOFEMP FROM SCOTT.EMP WHERE DEPTNO IN (10,20)
GROUP BY JOB HAVING COUNT(EMPNO) > 1

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Oracle DBA FAQ

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.