We have one table of company details and another table of contacts linked to these companies, so there can be many contact per company. Someone is going to go through the contacts table and reduce the contacts per company to 2.
They then need to create a table of company details with each contact from the contacts table added on the end in columns e.g. [Contact1Name], [Contact1Tel], [Contact2Name], [Contact2Tel].
So that they have all the information in one table/spreadsheet, is there a way to do this automatically via tsql or will this have to be done manually?
Each contact is linked to a company via a company id column.
Thanks for any help.