• Ramesh A 8
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hello,

I am trying to get the second highest value in SOQL with below Query,
 
select Max(Age__C) from Patient__c Where Age__C NOT IN ( select MAX(Age__c) from Patient__c )
But am getting result with below Query
 
select Max(Age__C) from Patient__c Where Age__C NOT IN (23)