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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -