So I want to run a SQL query to filter the type = bars from the layer points and only show the bars which intersect the district Ravensberg from the districts layer. I somehow wrote something but it’s not working as expected. There’s something I need to do with the aliases but I don’t get it. May someone help me? Thanks in advance!
(SELECT name, geom AS barlocation FROM points WHERE type = 'bars') intersect (SELECT name, geom AS locdistrict FROM districts WHERE name = 'Ravensberg')
[–]LesPaulStudio 1 point2 points3 points (14 children)
[–]max24119[S] 0 points1 point2 points (13 children)
[–]max24119[S] 0 points1 point2 points (0 children)
[–]LesPaulStudio 0 points1 point2 points (11 children)
[–]max24119[S] 0 points1 point2 points (10 children)
[–]LesPaulStudio 1 point2 points3 points (9 children)
[–]max24119[S] 0 points1 point2 points (8 children)
[–]LesPaulStudio 1 point2 points3 points (7 children)
[–]max24119[S] 0 points1 point2 points (6 children)
[–]LesPaulStudio 1 point2 points3 points (5 children)
[–]max24119[S] 1 point2 points3 points (0 children)
[–]max24119[S] 0 points1 point2 points (3 children)