Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 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

Your Answer


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.