SELECT [p].[Id] ,[p].[OwnerUserId] ,[p].[Title] ,[p].[Cre...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

SELECT [p].[Id]
        ,[p].[OwnerUserId]
        ,[p].[Title]
        ,[p].[CreationDate]
        ,[p].[ViewCount]
        ,ROW_NUMBER() OVER (
            PARTITION BY [p].[OwnerUserId]
            ORDER BY [p].[ViewCount] DESC) AS rn
    FROM [Posts] AS [p]  
   WHERE CAST([p].[CreationDate] AS date) >= DATEADD(m,-3,GETDATE())
     AND [p].[ViewCount] >= 1 
   ORDER BY [p].[OwnerUserId]

Enter Parameters

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