我有一个我也在划分的 SQL SUM,但我想将精度设置在第十位,例如 10.1 而不是 10.12。你会怎么做呢?这是我的 SQL 语句:
SELECT DISTINCT PAINT_LINE, SUM(HOURS_REQUIRED/WORKING_DAYS) AS HOURS_REQUIRED,
TO_CHAR(WEEK_START, 'YYYY/MM/DD') AS WEEK_START FROM
DCSI.PAINTYEARLYPAINTHRSPROJECTIONS WHERE USER_ID = :UserID AND WEEK_START>=SYSDATE-7
AND WEEK_START<=SYSDATE+63 GROUP BY WEEK_START, PAINT_LINE ORDER BY WEEK_START DESC, PAINT_LINE
我想将 HOURS_REQUIRED 设置为十分之一的精度,但我不知道该怎么做。
谢谢!