I have a table called Address which has following data
Name | Address Line 1 | Type
Ronn | 123Street1 NC | Primary
Ronn | 123XYZ Rd NC | Office
Now, I am creating a report XYZ which has two columns. Name, Primary Address and Office Address.
I want-
Name | Primary Address | Work Address
Ronn | 123Street1 NC | 123XYZ Rd NC
How do I fetch one row into one column of XYZ and another row into another column of XYZ?
I tried using decode, but it return multiple rows, which is not correct.
I hope I am making sense..it was so difficult to post this thing with all the spaces.