I have a table in PostgreSQL/PostGIS named 'trip' with two geometry columns: 'source_geom' ('POINT') and 'destination_geom' ('POINT') indicating starting and ending location of a journey.
I have one more separate table named 'business' with geometry column 'office_geom' ('POINT') that indicates the location of offices.
My aim is to select the records from the table 'trip' whose destination is within 1000 meters from any of the office location.
What query do I need to fire to get the results that I require?