您的位置:首页 > 其它

2012年最具影响力路由器配置精品文章荟萃【108篇】

2012-06-26 18:14 471 查看
"When you need a value from the first or last row of a sorted group, but the needed 

value is not the sort key, the FIRST and LAST functions eliminate the need for 

self-joins or views and enable better performance."

 

SELECT department_id,
MIN(salary) KEEP (DENSE_RANK FIRST ORDER BY commission_pct) "Worst",
MAX(salary) KEEP (DENSE_RANK LAST ORDER BY commission_pct) "Best"
FROM employees
GROUP BY department_id;


 

From Oracle Document
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: