1

I have queried my database with the following:

SELECT tlblocation.id, tlblocation.geom
FROM "Municipalities_NL", tlblocation, tlbvenueactiveperiod
WHERE st_within(tlblocation.geom, "Municipalities_NL".geom) 
AND "Municipalities_NL".gemeentena::text = 'Amsterdam'::text 
AND tlbvenueactiveperiod.date_opened::text >= '1900-01-01'::text 
AND tlbvenueactiveperiod.date_opened::text <= '1910-01-01'::text;

How do I add the output table to QGIS?

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Mar 13, 2022 at 13:01
1

1 Answer 1

2

You can use

  • PostgreSQL execute and load SQL

This algorithm performs a SQL database query on a PostGIS database connected to QGIS and loads the query results as a new layer.

  • Or check the box "Load as new layer" in DB Manager

enter image description here

answered Mar 13, 2022 at 13:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.