SELECT /*+ use_hash(USERS POSTS) */ COUNT(*) Pocet_Uziv...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Skeptics

Q&A for scientific skepticism

SELECT   /*+ use_hash(USERS POSTS) */
COUNT(*) Pocet_Uziv_SVice10Post
FROM USERS u
WHERE 
    EXISTS ( SELECT OwnerUserId
              FROM POSTS p 
               WHERE u.id = p.OwnerUserId
               GROUP BY  p.OwnerUserId HAVING  COUNT(distinct p.id ) > 10
    )

Enter Parameters

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