Sign in
|
Join
Home
Blogs
Ask
Just Learned
Interview Questions
Puzzles
Tutorials
Quiz
Modules
Getting Started with Adobe After Effects - Part 6:
Motion Blur
Liked
ORACLE - PLSQL Challenges
Upload Image
Close it
Select File
This challenge is about finding second highest salary for each department
Like
Invite Friends
PLSQL Challenge 2 - Find the second highest salary for each department
Home
·
Challenge Details
·
Comments
·
Solutions
·
Fans (53)
·
Preferences
CTE and Analytic Function
lostformars
Submitted 2 Years ago through
ORACLE - PLSQL Challenges
My solution was very similar to another submitted solution. However, I really prefer CTEs over sub queries. Another benefit is Oracle's sub query factoring (not in use here), which will usually be more efficient (but not always!)....
PLSQL Challenge 2 - Find the second highest salary for each department
Sultan
Liked 2 Years ago through
ORACLE - PLSQL Challenges
This challenge is about finding second highest salary for each department...
Rami Reddy
2 ·
41% ·
12972
get second high salary
Ashraf
Submitted 2 Years ago through
ORACLE - PLSQL Challenges
...
PLSQL Challenge 2 - Find the second highest salary for each department
Niladri Biswas
Submitted 2 Years ago through
ORACLE - PLSQL Challenges
Solution 5...
PLSQL Challenge 2 - Find the second highest salary for each department
pammy107
Liked 2 Years ago through
ORACLE - PLSQL Challenges
This challenge is about finding second highest salary for each department...
Rami Reddy
2 ·
41% ·
12972
PLSQL Challenge 2 - Find the second highest salary for each department
Niladri Biswas
Submitted 2 Years ago through
ORACLE - PLSQL Challenges
Solution 4...
Solution using correlated subquery
Aaron N. Cutshall
Commented 2 Years ago through
ORACLE - PLSQL Challenges
While not as cost efficient as using a RANK() function, it's nevertheless a very interesting approach and one that I would not have thought of! I was going to add the execution plan image, but I guess this site won't allow me to upload it or insert i...
dearhari
1720 ·
0% ·
11
PLSQL Challenge 2 - Find the second highest salary for each department
Nikola Ilijev
Liked 2 Years ago through
ORACLE - PLSQL Challenges
This challenge is about finding second highest salary for each department...
Rami Reddy
2 ·
41% ·
12972
Find the second highest salary for each department
Nikola Ilijev
Submitted 2 Years ago through
ORACLE - PLSQL Challenges
I do not have Oracle Database to test, but it should work...
Rank Function-In Sqlserver
rajeshmohanrangan
Commented 2 Years ago through
ORACLE - PLSQL Challenges
WITH RankedData AS ( SELECT SD.EmployeeID, SD.EmployeeName, SD.Department, SD.Salary, Dense_Rank() OVER (PARTITION BY SD.Department ORDER BY SD.Salary DESC) AS SalaryRank FROM PLC2_EMPLOYEES SD ) select EmployeeI...
Previous
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
...
Next
Copyright © Rivera Informatic Private Ltd
Contact us
Privacy Policy
Terms of use
Report Abuse
Advertising
[ZULU1097]