Salutatorian

Salutatorian was the title given to the second highest graduate from a school.

In 2368, Julian Bashir became salutatorian of his graduation 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.