I has a SQL Query to select below result.
|Port| Type|Size|
_________________
|JKT | D40 | 10 |
|JKT | D50 | 20 |
|ABC | D30 | 10 |
|KFC | D50 | 20 |
I would like to put the result into the table like below , the JKT,ABC,KFC are not fixed .
|D30 | D40 | D50 <<< this is fix in the table.
JKT | 0 | 10 | 20
ABC | 10 | 0 | 0
KFC | 0 | 0 | 50
Im doing this in JSP , because of the environment issue i doing this in the Notepad++ , anyway i just need the logic .Please Guide.