select OwnerUserId, count(*) as cnt from ( SELECT q.Title...

0

Please login or register to vote for this query.

(click on this box to dismiss)

English Language and Usage Meta

Q&A about the site for linguists, etymologists, and serious English language enthusiasts

select 
OwnerUserId,
count(*) as cnt
from 
(
SELECT
    q.Title,
    q.Body,
    q.OwnerUserId,
    q.Tags,
    q.ViewCount,
    a.Body as Answer
FROM
    (SELECT *
     FROM posts
     WHERE 
        (tags LIKE '%algorithm%' OR tags LIKE '%data-structures%')
        AND tags LIKE '%python%'
        AND AcceptedAnswerId > 0
        AND PostTypeId = 1
        AND OwnerUserId > 0
    ) q 
LEFT JOIN 
    (SELECT * FROM posts) a 
ON 
q.AcceptedAnswerId = a.id) final 
group by OwnerUserId
having count(*) > 1

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results