我试图得到一个百分比计算我有一个错误。
ERROR: syntax error at or near "100"
LINE 1: SELECT dispute_lost , ROUND(COUNT() 100/SUM(COUNT (*)) OVER(...
^
SQL state: 42601
Character: 37
查询:
SELECT dispute_lost , ROUND(COUNT() 100/SUM(COUNT (*)) OVER(),2) AS Percentage_lost
FROM yellevate_invoices
GROUP BY dispute_lost;
1条答案
按热度按时间bzzcjhmw1#
您需要对某些内容进行计数,但不能对任何内容都进行计数。不接受COUNT()。COUNT agergate的语法为: