Return columns according to sql server criteria?

0

How can I return the column names of a table according to search criteria? I want to return the columns that are with 'S' option, all fields is a char of 1 that receives 's' or 'n'

select 
   b.livros,
   b.jogos,
   b.cinema
from
   tb_cadastro_usuario a 
   inner join tb_assuntos_interesse b on a.idusuario = b.idusuario
    
asked by anonymous 12.05.2015 / 05:14

0 answers