当前位置:Gxlcms > mysql > MSSQL挑战问题

MSSQL挑战问题

时间:2021-07-01 10:21:17 帮助过:41人阅读

SELECT T. ROW , T.PRODUCT_NAME, T.SALE_AMOUNT, T.SUM_RAT FROM (,T.PRODUCT_NAME,T.SALE_AMOUNT,( SELECT SUM (SALE_AMOUNT) SUM_SALE FROM TEST WHERE T.SALE_AMOUNT = SALE_AMOUNT) / L.SALE_AMOUNT AS SUM_RAT FROM TEST T, ( SELECT SUM (SALE_AMOUNT

SELECT T.ROW, T.PRODUCT_NAME, T.SALE_AMOUNT, T.SUM_RAT FROM ( , T.PRODUCT_NAME, T.SALE_AMOUNT, (SELECT SUM(SALE_AMOUNT) SUM_SALE FROM TEST WHERE T.SALE_AMOUNT <= SALE_AMOUNT) / L.SALE_AMOUNT AS SUM_RAT FROM TEST T, (SELECT SUM(SALE_AMOUNT) AS SALE_AMOUNT FROM TEST) L ) T WHERE SUM_RAT < 0.8

,美国服务器,服务器空间,香港服务器

人气教程排行