I have one user table.

and second language table which contains language that user can speak

and third passport table which contains user’s passport details(user can have multiple passport)

[I have 5 more table except these]
I want to convert these language and passport rows to columns into one result-set(having user details also) and in the result set it should show yes/no value for language and passport column for every user record depending on what language user can speak and what passport they have.Output would be as given below:
We can do this by using PIVOT.I tried with single table but how to do it for multiple tables.
Thanks
Maybe something like this:
First the test data:
Then concat the unique column for the pivot. If there is two then choose one of them:
Then do a dynamic pivot like this:
Then in my case I will drop the temp tables: