SQL Execpt over

来源:互联网 发布:郑州百知科技是干嘛的 编辑:程序博客网 时间:2024/05/21 06:32

select count(1) over(partition by date) from tablename

等价于

select count(1),date from tablename group by date


select asofdate from tablea

except

select asofdate form tableb

返回存在于a表而不存在于b表的asofdate

0 0