Selecting penultimate record from a table
<p>I have the following table:</p>

<p><a href="https://i.stack.imgur.com/c5hX7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c5hX7.jpg" alt="enter image description here"></a></p>

<p>I need to select penultimate record matching some <code>probID</code> and <code>studentID</code>. How should I do that?</p>