title: How to select wanted column from select query based on condition
body: <p>I have select query which returns
  id ,name ,description ,price</p>
  
  <p>Im trying  to get id,price  alone based on condition it should display name ,description    </p>
  
  <pre><code>@show =1   
  select id ,name,if @show = 1 begin name ,description, end ,price from tbl
  </code></pre>
  
  <p>Thanks</p>