Users have posts way older than they are!!!

1

Please login or register to vote for this query.

(click on this box to dismiss)

See http://meta.stackexchange.com/q/190267/148310

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT Top 10
            DATEDIFF( MONTH, u.CreationDate, p.CreationDate ) AS memberMonth
            , u.ID AS [User Link]
            , p.ID AS [Post Link]
FROM        Users u
JOIN        Posts p             ON p.OwnerUserId = u.Id
WHERE       u.ID > 0
AND         DATEDIFF( MONTH, u.CreationDate, p.CreationDate ) < 0
ORDER BY    DATEDIFF( MONTH, u.CreationDate, p.CreationDate )

Enter Parameters

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