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
amdb_ma_se_1234, there would be 7 columns rather than 5 and with a_csuffix? If so, this isn't easily done in SQL (where any given query has a fixed "shape" - the number of columns, names and types) - is it not an option to do this at the presentation layer?