sql server - Join with comma-separated data returned from function using SQL -


i trying hard on this, unable solve it. have data coming comma-separated column, , splitting function, , need return comma-separated values.

i doing outer join applicationdocument table.

here query:

select pa.id,        ad.id,        ad.documenttitle,        ad.path        ,        s.value dbo.applicationdocument ad right join dbo.postapplication pa on ad.applicationid = pa.id join dbo.post p on pa.jobid = p.id outer apply dbo.fnsplit(p.requireddocuments,',') s s.value = ad.documenttitle 

cross apply  (select value                dbo.fnsplit(p.requireddocuments,',')                value =ad.documenttitle)  s  

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -