Comments
1 comment
-
Hi @Adamsymonds
Thanks for reaching out to us regarding this.
I'm afraid that what you are describing it not something any of our products are able to do.
It also appears that you may be looking for more generic programming advice, which unfortunately is not something we are able to help with.
I'm very sorry we can't be of more help with this.
Add comment
Please sign in to leave a comment.
Hello,
After completing the salesforce course online and I am learning about SQL and I am stuck somewhere between the nearest pairs of two tables.
My query is-
let's say I have
tableA.pointswhich has a bunch of geographic points.and I have
tableB.pointswhich has a bunch of geographic points, as well.I want to compare every row
tableA.pointsto every row intableB.points, and list the closest (shortest distance) point for each row intableA.points.so, actually two points:
tableB.Identiferit to the outer query.for example:
SELECT tableA.* ,(SELECT CONCAT(tableB.IDENTIFIER,':',MIN(ST_DISTANCE(tableA.points, tableB.points)) FROM tableB) as closest_point FROM tableAThe big problem here is that I have over a million rows for each of these tables...
Any advice?