The past tense of have the upper hand in is had the upper hand in.
The third-person singular simple present indicative form of have the upper hand in is has the upper hand in.
The present participle of have the upper hand in is having the upper hand in.
The past participle of have the upper hand in is had the upper hand in.