yyan-test

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

declare @limit int = 100;
declare @tag_name nvarchar(35) = 'snowflake-cloud-data-platform';
declare @tag_id int = (select id from tags where tagname = @tag_name);

SELECT
rank() over (order by Count(*) desc) "Rank",
  users.id "User Link",
    Count(*) AS AnswerCount1
    
FROM 
    Posts
    join users on (users.id = Posts.OwnerUserid)
    
WHERE 
    users.id in (
'1196458',
'9842780',
'8339066',
'12165756',
'12271204',
'6745597',
'12271851',
'12272119',
'12185665',
'73221',
'12200988',
'12256505',
'12241026',
'12276146',
'12284087',
'12273225',
'5531887',
'8731644',
'12290405',
'12294561',
'12187527',
'12309330',
'12174761',
'12285135',
'3737478',
'12319120',
'12319116',
'12322273',
'17083974',
'12396770',
'1330430',
'12487666',
'12550965',
'3063381',
'12675859',
'12675864',
'12374568',
'12681398',
'3443807',
'12114754',
'12844107',
'12847796'
)
and Posts.CreationDate >= '2020-02-01'
and Posts.CreationDate <= '2020-04-22'
and PostTypeId = 2 --answers only
GROUP BY 
    users.id
ORDER BY 
    AnswerCount1 DESC

Enter Parameters

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