I have a bucket with multiple records differentiated by a single column called type.
I need to join multiple such documents together . Can I run a join on the same collection?
Select *
FROM sample AS t1
JOIN sample AS t2
ON t1.id = t2.airportId
WHERE t1.type='airport' AND t2.type='airplane';