At what height above the earths surface the value of g is same as that at a depth of 100 km?

If you compare the gravitational force on the earth due to the sun to that due to the moon, you would find that the Sun’s pull is greater than the moon’s pull. However, the tidal effect of the moon’s pull is greater than the tidal effect of the sun. Why?

Tidal effect is inversely proportional to the cube of the distance while gravitational force is inversely proportional to the square of the distance. 

The distance between moon and Earth is less as compared to the distance between Sun and Earth. Greater the distance, less is the pull of the tidal effect.