The minumum, maximum and average answer score for a user. New version: Calculates average as a float instead of an int. New new version: Uses 'UserId' instead of 'userId'.
Q&A about the site for enthusiasts and scholars of mythology and folklore
-- Average Answer Score -- The minumum, maximum and average answer score for a user. -- New version: Calculates average as a float instead of an int. -- New new version: uses 'UserId' instead of 'userId' SELECT MIN(Score) AS Minimum, MAX(Score) AS Maximum, (SUM(Score) + 0.0) / Count(*) AS Average FROM Posts WHERE PostTypeId = 2 AND OwnerUserId = ##UserId##