According to the European coordination legislation the individuals that work in two states within the territory of the EU, EFTA or Switzerland are only subject of social insurance contributions in one European country. In other words, all social insurances have to paid in one country. At first glace this seems to be straightforward.
However, this regulation causes many demarcation problems. For example: