Get Top Users for Snowflake-datawarehouse

0

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts Meta

Q&A about the site for enthusiasts and power users of the Android operating system

declare @limit int = 100;
declare @tag_name nvarchar(35) = 'snowflake-datawarehouse';
declare @tag_id int = (select id from tags where tagname = @tag_name);
SELECT
  users.id "User Link",
    Count(*) AS AnswerCount1
    
FROM 
    Posts
    join users on (users.id = Posts.OwnerUserid)
    
WHERE 
    users.id in ('3441340', 
    '43992', 
    '12384457', 
    '12380703', 
    '12145356',
'2496282',
'7010292',
'16799706',
'10769271',
'3287250',
'12111699',
'5185997',
'2019978', 
'12380703', 
'1628812',
'4889096',
'7334893', 
'6135306',
'4175981', 
'6061924', 
'3441340', 
'11497902',
'12166497',
'12384457', 
'11831365',
'10387435',
'3805500',
'2117872', '12502175', '12480431'
)
and Posts.CreationDate >= '2019-12-03'
and PostTypeId = 2 --answers only
GROUP BY 
    users.id
ORDER BY 
    AnswerCount1 DESC

Enter Parameters

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