คำถามและคำตอบของผู้ใช้นับจำนวนที่แตกต่างกัน ไม่จำเป็นต้องใช้ตารางทั้งหมด
Users Question and Answer Count Distinct Count.It is not neccessary to use all the tables.
 PostsWithDeleted:  Id [ number]  PostTypeId [ number]  AcceptedAnswerId [ number]  ParentId [ number]  CreationDate [ time]  DeletionDate [ time]  Score [ number]  ViewCount [ number]  Body [ text]  OwnerUserId [ number]  OwnerDisplayName [ text]  LastEditorUserId [ number]  LastEditorDisplayName [ text]  LastEditDate [ time]  LastActivityDate [ time]  Title [ text]  Tags [ text]  AnswerCount [ number]  CommentCount [ number]  FavoriteCount [ number]  ClosedDate [ time]  CommunityOwnedDate [ time]  ContentLicense [ text] 
SELECT u.Id, COUNT(DISTINCT q.Id) AS QuestionCount, COUNT(DISTINCT a.Id) AS AnswerCount FROM Users AS u LEFT JOIN Posts AS Q ON u.Id = q.OwnerUserId AND q.PostTypeId = 1 LEFT JOIN Posts AS a ON u.Id = a.OwnerUserId AND a.PostTypeId = 2 GROUP BY u.Id, u.DisplayName LIMIT 1000