Results 1 to 2 of 2

Thread: subquery

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Answers
    13

    subquery

    hi all

    display details of employes having sal> the avg sal of any of the department


  2. #2
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Re: subquery

    Select * from emp where sal > (select avg(sal) from emp)

    ** you can alternatively use where clause in either main or sub query.
    hope it will work.


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