man, I feel like a beginner ...

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: man, I feel like a beginner ...
Date: 2000-09-10 22:38:52
Message-ID: Pine.BSF.4.21.0009101938230.1305-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


someone notice anything wrong with this query? :) *slap forehead*

explain
SELECT distinct s.gid, s.created , geo_distance(pd.location, '(-90.3690233918754,38.7788148984854)')
FROM status s, personal_data pd, relationship_wanted rw , personal_ethnicity pe , personal_religion pr , personal_bodytype pb
WHERE s.active AND s.status != 0
AND (s.gid = pd.gid AND pd.gender = 0)
AND (s.gid = rw.gid AND rw.gender = 1)
AND geo_distance( pd.location, '(-90.3690233918754,38.7788148984854)' ) <= 75
ORDER BY geo_distance( pd.location, '(-90.3690233918754,38.7788148984854)'), s.created desc;

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Samplonius 2000-09-11 02:27:01 Row versioning in the ODBC driver...
Previous Message Tatsuo Ishii 2000-09-10 00:45:56 PL/pgSQL does not accept none ASCII identifiers