Results 1 to 5 of 5

Thread: test

  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    1

    test

    Write a query to display the number of people with the same job


  2. #2
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: test

    Quote Originally Posted by pappujk View Post
    Write a query to display the number of people with the same job

    Here is the query

    SQL> SELECT JOB,COUNT(*) NOOFEMP
    2 FROM EMP
    3 GROUP BY JOB;

    JOB NOOFEMP
    --------- ---------
    ANALYST 2
    CLERK 4
    MANAGER 3
    PRESIDENT 1
    SALESMAN 4

    Last edited by krishnaindia2007; 05-30-2008 at 10:40 PM.

  3. #3
    Contributing Member
    Join Date
    Mar 2008
    Answers
    66

    Re: test

    Test for whom?


  4. #4
    Junior Member
    Join Date
    May 2008
    Answers
    1

    Re: test

    select ename from employee group by jobname;


  5. #5
    Contributing Member
    Join Date
    Sep 2007
    Answers
    35

    Re: test

    select count(empno),job from emp group by job;


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact