I have the data returned from from one my sql like
node_no code value1 order
100 AB 001 1
100 AB 007 2
101 AB 010 3
I have to further process this data using sql, to get output like
node_no code value1 value2
100 AB 001 007
101 AB 010 null
The requirement being to display a column value from two rows(or rows with same node_no) into a single row as two different columns. The order has to be maintained.
Note: This may appear like duplicate of SQL Query to concatenate column values from multiple rows in Oracle SQL Query to concatenate column values from multiple rows in Oracle
But there we are displaying values as a single aggregated column.