You need to sign in to do that
Don't have an account?
ugsfdc
SOQL Issue
Dear Experts,
I want to fetch the second highest salary from object using SOQL and i was tried to use inner query it showing error.Could you suggest me how we can do it.
Regards,
ugsfdc.
I want to fetch the second highest salary from object using SOQL and i was tried to use inner query it showing error.Could you suggest me how we can do it.
Regards,
ugsfdc.
List<Object> myList = [Select Id, Salary From Objects__c Order By Salary Desc];
System.debug(myList[1].Salary)
All Answers
List<Object> myList = [Select Id, Salary From Objects__c Order By Salary Desc];
System.debug(myList[1].Salary)
Regards,
ugsfdc.