sql - How i can write new_column in where? -


select  *,stuff((select ',' + struktur_bolmesi tb_structure  concat(',',bolmeler,',')  concat('%,',struktur_id,',%') xml path('') ), 1, 1, '') new_column tb_customers new_column '%text%' 

please try this

 tbl as(             select  *,stuff((select ',' + struktur_bolmesi     tb_structure  concat(',',bolmeler,',')  concat('%,',struktur_id,',%')     xml path('') ), 1, 1, '')              new_column tb_customers     )     select  *        tbl       new_column '%text%'  

Comments

Popular posts from this blog

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -