I have a table T with columns A,B,C & D as below:
A  B  C   D  
===============
A1 B1 USD LIBOR  
A1 B2 JPY FIXED  
A2 B3 USD LIBOR  
A2 B4 EUR FIXED  
A3 B5 JPY FIXED  
A3 B6 USD LIBOR   
- Table always has 2 rows per "A", with different values of "B". 
- "B" is unique 
- "A" - varchar(10), "B" - varchar(8), "C" - varchar(3), "D" - varchar(5) 
- Validation rules restrict the columns to the below formats - "A", "B', "D" - Alphanumeric "C" - Alphabetic 
I need to extract the below results from the table -
Result Set 1:
A1 USD LIBOR JPY FIXED  
A2 USD LIBOR EUR FIXED  
A3 JPY FIXED USD LIBOR  
Result Set 2:
USD LIBOR JPY FIXED  
USD IBOR  EUR FIXED
I wish to avoid using cursors, unless there any other solution.
Can I extract this table into a file and use perl to get the result ?
Please help ...
 
     
    