What is the best way to transpose rows to columns.
Table_1
Cust_id field1 field2 ...
------- ------ ------
Table_2
Cust_id status date_changed
------- ------ ------------
View/table output
Cust_id status1 status2 status3 status4
------- ----------- ------------- ----------- -----------
1 01-jan-2011 05-April-2011 06-Dec-2012 30-Dec-2012
Thanks