How to find out Second Highest Salary from the EMPLOYEE Table


  • DataBase Name : Prac
  • Table Name : Emp_Sal
I already added a four tuples into a "Emp_Sal" table.
I used SELECT query on "Emp_Sal" table. Result is,














We have to find out Second highest salary from " Emp_Sal " table, this table include four tuples and clearly shows that Employee name "PQR" is Second highest salary. 
So, Query is 






this query shows, i used two variable "MainTable" And "Auxillary". I compare one table using two variable. I get appropriate result,

OUTPUT:












I am changing variable name,
Instead of "MainTable" variable and "Auxillary" variable I used "e1" and "e2" variable respectively,
Query is,







This query successfully execute or not, let us see.












I  find out second highest salary from "EMPLOYEE" table.


Comments

  1. A Guide to Slots and Casino Games - DrMCD
    The most important thing about the 동두천 출장마사지 slot machines is that 경상남도 출장안마 they are 나주 출장안마 not random. The fact that 구리 출장마사지 most 문경 출장마사지 of these machines can operate with a random number is demonstrated in

    ReplyDelete

Post a Comment

Popular posts from this blog

Angular 4 + Cordova Boilerplate ::: Hybrid Mobile Application

In MVC 4 Save and Retrieve cookies