.

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ukrainian Language Meta

Q&A for linguists, teachers and students of the Ukrainian language

select
postid
into #temp
from comments 
where text like '%[tour]%badge%' and userid=##UserID##

select 
  owneruserid
into #uu
from posts
where id in (select postid from #temp)

select
  *
into #bb from badges
where userid in (select owneruserid from #uu)
and name='Informed'
select * from #bb
select count(*) as [askedUsers] from #uu
select count(*) as [didTour] from #bb

Enter Parameters

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