/*SELECT --+ use_hash(USERS POSTS) COUNT(*) Pocet_Uziv_...

0

Please login or register to vote for this query.

(click on this box to dismiss)

DevOps Meta

Q&A about the site for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure

/*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
    )
    */
    
    SELECT  p.OwnerUserId, u.DisplayName , p.CreationDate , p.Title
FROM USERS u, POSTS p
WHERE 
u.id = p.OwnerUserId
ORDER BY u.DisplayName ASC, p.CreationDate DESC

Enter Parameters

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