Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve with pandas SELECT Users. AccountId, Users. DisplayName, Users. Location, AVG(PostAuth. AnswersCount) as AverageAnswersCount FROM ( SELECT AnsCount. AnswersCount, Posts.Id, Posts. OwnerUserId FROM ( SELECT

solve with pandas

image text in transcribed

SELECT Users. AccountId, Users. DisplayName, Users. Location, AVG(PostAuth. AnswersCount) as AverageAnswersCount FROM ( SELECT AnsCount. AnswersCount, Posts.Id, Posts. OwnerUserId FROM ( SELECT Posts.ParentId, COUNT(*) AS AnswersCount FROM Posts WHERE Posts.PostTypeId = 2 GROUP BY Posts. ParentId ) AS AnsCount JOIN Posts ON Posts.Id = AnsCount.ParentId ) AS PostAuth JOIN Users ON Users. AccountId=PostAuth. OwnerUserId GROUP BY OwnerUserId ORDER BY AverageAnswersCount DESC LIMIT 10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

Understanding Conflict Conflict Triggers

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago