I am trying to select multiple pieces of data from one column value
on Table detail
where the adjacent column on the same table is a specific value.
For example:
field_number | value
--------------------
40 | 820
41 | 548
44 | 100
I need to return 3 select values all from detail.value such as to get the results that include:
"Balance Amount" | "Convo. Amount" | "Chapter ID"
-------------------------------------------------
820 | 100 | 548
This is all part of a larger query that joins across 3 tables to pull these values for multiple conditional values, I just do not know the best way to reference the same table.value
with specific conditions for each return. I can supply my additional query syntax if it helps, but the above situation highlights the salient point. I also do not necessarily need to have the "Balance Amount", "Convo. Amount", and "Chapter ID" aliases if it further complicates an elegant solution.
Any help or insights you can provide would be greatly appreciated.