I am getting lat/lng bounds from google map in client side through xhr to my php script. which is making an sql query to search location within that bounds. My table stores lat, lng
as different columns. now how can I arrange my where queries such that only the points within the specified NE, SW
bounds are returned.
In database its stored as number
and I don't know if there already is any postgresql specific aggregate function to do the same.