All,
ive a table with the below details which can be filtered based on the foreign ket attribute.

based on the search value i want to display the returned rows as a set of columns in one row as shown below,

only for the available phase value for no available phase return NULL.
thank you.