could you help me to write this kind of PostGis query with Ecto DSL?
SELECT streets.gid, streets.name
FROM
nyc_streets streets,
nyc_subway_stations subways
WHERE streets.geom && ST_Expand(subways.geom, 200)
ORDER BY ST_Distance(streets.geom, subways.geom) ASC;
I'm confused on how to select data from multiple tables without joining them on foreign keys.
Thanks