Microsoft Business Intelligence TOOLS(SSIS,SSRS and SSAS)
Learning about Sql server2005/2008,SSIS,SSRS and SSAS
http://reddymsbitools.blogspot.com
Home
SQL Server2008
Monday, 18 October 2010
Highest Salary in the employee table?
Select empno,ename,sal,deptno from
(select empno,ename,deptno,sal rank() over(order by sal,deptno) rank
from emp) where rank=2;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment