Hello Everybody,<br><br>I have got a very simple question about distance between two points:<br><br>I have the following table:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">

<span style="font-family: courier new,monospace;">CREATE TABLE places (</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   id   SERIAL,</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">   latitude  DOUBLE PRECISION,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   longitude DOUBLE PRECISION</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">);</span><br style="font-family: courier new,monospace;"></blockquote><br>with the following content:<br><br><span style="font-family: courier new,monospace;">geo=# SELECT * FROM places;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;"> id | latitude  | longitude  </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">----+-----------+------------</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  1 | 42.331002 |  -71.112678</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  2 | 42.335158 |  -71.102464</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  3 | 33.911400 | -116.768000</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  4 | 40.415748 |   -3.707135</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  5 | 35.684750 |  139.751158</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">(5 rows)</span><br style="font-family: courier new,monospace;">

<br>I would like to know the distance between "one fixed point" (42.331002 -71.112678) and all points in this table.<br><br>Simple like this!! Could someone help me?<br><br>For now, I don't need to considere zones!! I just need to compare "one point" against all points in the table!!<br>

<br>Thanks in advance,<br>Marcelo<br>