How many questions tagged with [tag] are associated with a [text]?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

declare @question int = 1;
declare @reTag int = 3;
declare @tagToSearch nvarchar(35) = ##tag:string?google-apps-script##;
declare @textToSearch nvarchar(35) = ##text:string?gas##;


select
cast(Posts.CreationDate as date),
Posts.Tags,
Posts.Id as [Post Link]
from
Posts
where
Posts.PostTypeId = @question
and
Posts.Tags like ('%<' + @tagToSearch + '>%' )
and
( 
Posts.Body like ('%<' + @textToSearch + '>%' )
or
Posts.Title like ('%<' + @textToSearch + '>%' )
)
group by
Posts.Tags,Posts.Id, cast(Posts.CreationDate as date)
order by
cast(Posts.CreationDate as date) desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results