From a previous post, I have the following view in sqlite3:
CREATE View AttendeeTableView AS SELECT (LastName || \" \" || FirstName) as AttendeeName,
The answer from this post will help you turn
Name | company ---------+---------- Doe John | company A Doe John | company B
into
Name | company-1 | company-2 ---------+-----------+---------- Doe John | company A | company B