I have a shapefile of the 8830 election precincts in Texas as of the 2016 election. I also have shapefiles of the Texas US House districts and the Texas Senate and House districts. I want to generate tables that match the election precincts with the districts that they are contained in.
Using the functions available (Within, Contains, Touches, etc) all see to either produce too many rows, or too few. One problem I identified is when an election precinct is matched with a district because they share a border, although the election precinct is in another district. As far as I know, no election precincts cross any district border.
I got this far using QGIS and SpatiaLite. I'm a newbie at GIS. This is my first project. Apologies if I have left out any critical information.