Salutatorian

Salutatorian was the title given to a member of a graduating class with the second highest grades in their class.

In 2368, Julian Bashir became salutatorian of his graduating class from the Starfleet Medical Academy. Elizabeth Lense was valedictorian. 

One year later, Doctor Bashir told the story of his exam and how he became a salutatorian to a Bajoran woman he dated at the replimat.