how??
From: Eun-jeong Jeon <zeni_at_hananet.net>
Date: Fri, 24 Aug 2001 14:04:43 +0900
Message-ID: <pCKfpkFLBHA.357_at_news2.sys.netsgo.com>
Date: Fri, 24 Aug 2001 14:04:43 +0900
Message-ID: <pCKfpkFLBHA.357_at_news2.sys.netsgo.com>
I know ename, deptno and sal of employees who has minimum salary in their
department.
SQL> select ename, deptno, sal
I want to know ename, deptno and sal
I use pair-wise subquery.
2 from emp
3 where (deptno, sal) in (select deptno, min(sal)
4 from emp
5 group by deptno);
of employees who are paid less than average salary in their deptartment.
What should I do? please help me~~ Received on Fri Aug 24 2001 - 07:04:43 CEST