How to select a particular columns based on a filter in Derived table
eg. select a,b from table
filter values (b,c,d)
how do I keep b column as dynamic based on a filter. based on the filter value select by the user the derived table query should change. If user select c then the derived sql should be
select a,c from table