I have table like this:
uid | fid | value 1 | 1 | nameOf1 1 | 2 | surnameOf1 1 | 3 | countryOf1 2 | 1 | nameOf2 2 | 2 | surnameOf2
And need to transform/select it like this:
uid | name | surname | country 1 | nameOf1 | surnameOf1 | countryOf1 2 | nameOf2 | surnameOf2 | ..