write the SQL statement to retrieve the 2nd Highest salary
ammount(File Name="EMPLOY",Field Name="SALARY")
Answers were Sorted based on User's Feedback
Answer / yogesh
This is correct answer -Try it
SELECT SALARY FROM EMPLOYEE WHERE SALARY < (SELECT MAX
(SALARY) FROM EMPLOYEE) ORDER BY SALARY DESC FETCH FIRST 1
ROW ONLY
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / aravind.r
select min(SALARY) from EMPLOY where SALARY in
(select top 2 SALARY from EMPLOY order by SALARY desc)
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / sandeep
select top 1 salary from employee where salary<(select top 1 salary from employee order by salary desc) order by salary desc
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / vivek dwivedi
Select max(salary) from file where salary not in (select max(Salary) from file)
| Is This Answer Correct ? | 0 Yes | 0 No |
select top 1 from (select top 2 from emp order by sal desc)A
order by sal
| Is This Answer Correct ? | 1 Yes | 2 No |
Q.How primary file can be defined in RPG/400?Please write the senario with opcode specification?
what is the maximum number of parameters allowed in clp?
what does check opcode is used?
What is data structure in as400? What is the use of data structure?
What is the symbol used for defining a new field in SDA?
What is the difference between keys of a Physical file and the keys of a logical file?
2 Answers Bank Of America, BoA,
how can I give more performance to some selected pages?
can u plz tell me is there any difference between SHELL SCRIPT & SFTP SCRIPT? I want to run LS & GET(automatically) command from CL program....which script can be used?
what is lokup opcode?
How to position the cursor on a display file at a desired location.
can a indexed file be accessed in arrival sequence in rpg program?
What is an ICF file?