I want to search for all points of a specific user inside all polygons and display the polygons
these are my tables
users
id points
1 1
1 2
1 3
1 4
2 3
3 1
poly
polygon-points poly-name
(1,2,4,5) store
(1,3) shoop
I wrote this code
BEGIN
FOR poly-name IN SELECT poly-name FROM poly
LOOP
FOR points IN SELECT * FROM users
LOOP
points@poly-name
END LOOP;
END LOOP;
RETURN;
END