📜  如何不按平均评分排序 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:59.084000             🧑  作者: Mango

代码示例1
SELECT widget_id, ((positive + 1.9208) / (positive + negative) - 
                   1.96 * SQRT((positive * negative) / (positive + negative) + 0.9604) / 
                          (positive + negative)) / (1 + 3.8416 / (positive + negative)) 
       AS ci_lower_bound FROM widgets WHERE positive + negative > 0 
       ORDER BY ci_lower_bound DESC;