I have below data, I want to retrieve as single row.
Customer
customer id customer name order id
1 Jhon 1
2 philips 1
Order id order name order status order status time
----------------------------------------------------------------
1 iphone delivered 20121011 12:10:01
1 iphone cancelled 20121011 14:30:00
Based on above data, I have to display as below
order id order name order status(D) order status(C) order status(c) time order status(D) time
------------------------------------------------------------------------------------------------
1 iphone delivered cancelled 20121011 14:30:00 20121011 12:10:01
Please help me to write this SQL
Regards,
Chaitu