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

Hoshi Sato graduated second in her class, before spending three years in Starfleet training. ()

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

According to his medical school diaries, he wrote his innermost thoughts, including his struggle to graduate top of his class, his dream of a career in Starfleet, and his constant fear of failure. ()

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. ()

External link
 
Education titles