2nd Lowest Record------------------------------------------------SELECT * FROM TblTempWHERE Temp_id =(SELECT max(Temp_id) FROM TblTemp WHERE Temp_id< (SELECT max(Temp_id) FROM TblTemp))2nd Highest record-------------------------------------------------SELECT * FROM TblTempWHERE Temp_id = (SELECT min(Temp_id) FROM TblTemp WHERE Temp_id > (SELECT min(Temp_id) FROM TblTemp))2nd highest record-----------------------------------------------select Temp_id from TblTemp r1where 2=(select count(*) from TblTemp r2where r1.Temp_id <= r2.Temp_id)4th Highest Record -----------------------------------------------SELECT Temp_id from TblTemp c1WHERE 4=(SELECT count(*) from TblTemp c2WHERE C1.Temp_id >= C2.Temp_id )4th Lowest Record -----------------------------------------------SELECT Temp_id from TblTemp c1WHERE 4=(SELECT count(*) from TblTemp c2WHERE C1.Temp_id <= C2.Temp_id)
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: