I have two tables, one has the geometry and other has attributes. The table with geometry has unique number primary key, and 4 columns admin1,admin2,admin3,featureid.

Table two is a csv file has the same columns mentioned above and their combination forms a composite primary key.

How can i join the two tables?


QGIS joins cannot use composite keys. You have to create a combined key attribute column if you want to use the QGIS-internal join functionality.

An alternative would be to import the data into Spatialite or PostGIS where you will have more join options including joins on composite keys.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.