With DeptTempTbl As (Select DeptNo,
Count(*) As DeptRecCnt
From Emp
Group By Deptno)
/*-------------------------------------------------------------*/
/* Use the results from the above query in the following query */
/* and subquery */
/*-------------------------------------------------------------*/
Select DeptNo,
DeptRecCnt
From DeptTempTbl
Where DeptRecCnt >= (Select Avg(DeptRecCnt)
From DeptTempTbl);
DEPTNO DEPTRECCNT
---------- ----------
30 6
20 5
How to get URL of commentator
-
We sometimes get questions about how to get the web address/URL of a
commentator in our blog. Blogger.com has not provided any way to do that.
However, the...
7 years ago
No comments:
Post a Comment