Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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