id, P_id
1, H-123 2, GD-45563 3, 34545
34545,GD45563,H123...
select id, P_id from my_table order by P_id
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)