I have a custom spatial function and its working with this parameters (coordinates):
SELECT get_nearest_station (-80.364565, 26.070670);
Now, I want to update column "SOURCE" for all rows in a table 'employees_wgs' with this function. Coordinates are in columns X and Y for each record so I have to replace real coordinates with value from those columns.
How to write this query ? Is this need to be dynamic sql or else ?
Thanks
VIEWinstead. If you need to optimize performance, consider aMATERIALIZED VIEW.