The speed at which a celestial body revolves in its orbit is called orbital speed.
Suppose, ‘v’ is the orbital speed of earth. Then the centripetal force on earth must be provided by the gravitational force between earth and sun. So,
mv2/d = GMm/d2
Where, m is mass of earth, d is distance between center of earth and sun, M is mass of sun.
So,
v = (GM/d)1/2
Escape velocity of earth is given by, ve = (2gR)1/2
[R is the radius of earth]
=> ve = {2(GM/R2)R}1/2
=> ve = (2GM/R)1/2
So,
v/ve = [(GM/d)1/2]/[ (2GM/R)1/2]
=> v/ve = (R/2d)1/2