Database 613. Shortest Distance in a Line ¶ SQL 1 2 3SELECT MIN(P1.x - P2.x) AS shortest FROM Point AS P1, Point AS P2 WHERE P1.x > P2.x; Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form.