Q&A about the site for enthusiasts and scholars of mythology and folklore
SELECT top 1 Id AS PostId, LEN(Body) AS CharacterCount, Score AS Upvotes, CAST(Score AS FLOAT) / NULLIF(LEN(Body), 0) AS UpvotesPerCharacter FROM Posts WHERE PostTypeId = 1 -- Filtering for questions (1) or answers (2) if necessary ORDER BY UpvotesPerCharacter DESC