I tried searching but I couldn't find a solution. I am trying to join two tables and basically table 2 has multiple rows for one row from table 1. But while displaying, I want to list all columns from table 1 along with all fields from table 2 but in one single line. That is table 2 rows will be displayed as columns.
Table 1
ID Col2 Col3 Col4
1 John Smith CA
2 Henry Bond FL
Table 2
ID (FK) Type Value
1 Car1 Honda
1 Car2 Toyota
2 Car1 Honda
2 Car2 Nissan
3 Car3 Audi
Result should be
ID Col2 Col3 Col4 Car1 Car2 Car3
1 John Smith CA Honda Toyota
2 Henry Bond FL Honda Nissan Audi