Re: How to SELECT rows closest to value

2007-02-02 Thread ViSolve DB Team
value AND b.longitude>givenvalue LIMIT 0,5) ; Thanks, ViSolveDB Team - Original Message - From: "M5" <[EMAIL PROTECTED]> To: Sent: Saturday, February 03, 2007 7:30 AM Subject: How to SELECT rows closest to value Simply put, I have a table of ~800,000 records cont

How to SELECT rows closest to value

2007-02-02 Thread M5
Simply put, I have a table of ~800,000 records containing, among other things, latitude and longitude values. Given a lat/lng pair, I would like to SELECT from this table the 10 rows containing latitude/ longitude values closest to the given lat/lng pair. Possible? ...Rene -- MySQL General