In picture below we had some sql data table with 4 rows .
so we use sql code :
Copy code :
declare @str varchar(300)
select
@str = case
when @str is null
THEN vorname + ' '+nachname
else @str + ' , ' + vorname + ' '+nachname
end
FROM dbo.tbl_CorectNumber
WHERE (anrede ='Herr' )
SELECT @str
This comment has been removed by a blog administrator.
ReplyDeleteThank you..
DeleteThank you Muhammad :)
ReplyDelete