Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Japanese language
-- AVG Accept Rep -- Enter Query Description Select case WHEN AcceptedAnswerId is null then 'Not Accepted' ELSE 'Accepted' END as AcceptFlag, SUM(cast(u.reputation as bigint)) as acceptrep FROM posts p inner join users u on p.OwnerUserId = u.id GROUP BY case WHEN AcceptedAnswerId is null then 'Not Accepted' ELSE 'Accepted' END