select min(abs(p2.x-p1.x)) shortest from point p1,(SELECT * FROM [point] order by x) p2where p1.x > p2.x