Q&A for administrators and users of the CiviCRM Constituent Relationship Management software
SELECT TOP 10 q.Id, q.Title, (q.ViewCount / q.Score) as ViewScoreRatio FROM Posts q WHERE q.PostTypeId = 1 -- 1 for Questions AND q.Score > 0 -- Avoid division by zero ORDER BY ViewScoreRatio DESC