This question already has an answer here:
I have a layer with many points on a country, for example, Peru, and I have done a grid grouping all the country. Each hole of the grid has an ID so it's easy to differentiate them. My idea is to set that ID for each point from the other layer that way I can work with all the point on the same hole. In SQL it would be to make a new column called 'ID_Hole' and write the grid ID, but I'm not getting it on QGIS.
Any idea about what should I do?
I attach a more explicative image
The point is obtained from a.csv where I can see the name of the settlement(city) and its located by latitude and longitude on the map.