Answer Count for Support Engineers

2

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

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
and @tag_name = 'snowflake-cloud-data-platform'
GROUP BY 
    users.id
ORDER BY 
    AnswerCount1 DESC

Enter Parameters

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