Many weeks ago someone asked the same.
“Tickersu” (forum member) gave a good answer why apparently are different calculations of a T-test, but indeed they are the same. The only different thing is the calculation of the standard error.
As S2000magician says, the first t-statistic is for the correlation coefficient:
t = r * (n-2)^0.5 / (1-r^2)^0.5
This formula comes from t = ( r - 0 ) / standard error. However, the standard error here does not come from a T-table, but from a standard error calculation as follow:
standard error = [(1-r^2) / (n-2)]^0.5 … (if you see well, it is reversed)
When you replace this standard error, as it divides the ( r - 0 ) you finally get T = r * (n-2)^0.5 / (1-r^2)^0.5 Just basic math.
So the 1st and 2nd T-tests are the same calculation method (you are standardizing the coefficient) with the form T = [ Coefficient - 0 ] / standard error
Hope this helps!
Regards