Q&A for people interested in the history and origins of science and mathematics
declare @words nvarchar(max) = ##links:string## declare @list nvarchar(max) declare @sql nvarchar(max) select @list = string_agg(concat('(Body LIKE ''%', value,'%'')'), ' OR ') from string_split(@words, ',') set @sql = concat(N'SELECT TOP 100 Id As [Post Link], CreationDate, LastActivityDate, Body FROM Posts WHERE ',@list,N' ORDER BY LastActivityDate DESC') print @sql exec(@sql)