第八章 练习题

2018-07-24  本文已影响0人  susupp

8.2

SELECT
    product_type,
    regist_date,
    sum(sale_price) over (

        ORDER BY
            colaesce (
                regist_date,
                cast('1996-01-01' AS date)
            )
    ) AS sum_price
FROM
    product
ORDER BY
    regist_date;
上一篇 下一篇

猜你喜欢

热点阅读