I am new to this sort of problem. I have tried looking and couldn't find anything. I also tried using Case expressions that increments each time but that was not working.
tblHipChop
hop acp ID
20 20 amdb_ma_se_1234
350 30 amdb_ma_se_1234
Must return the following:
hop_a hcp_b acp_a acp_b ID
20 350 20 30 amdb_ma_se_1234