-
外連接:把對于連接條件不成立的記錄,仍然包含在最后的結果中。
左外連接;當連接條件不成立時,等號左邊的表仍然被包含
右外連接相反。
查看全部 -
通過連接條件,避免使用笛卡爾全集
查看全部 -
where和having的區別
不能在WHERE子句中使用組函數;
可以再HAVING子句中使用組函數。
where先過濾,再分組;
having先分組,再過濾。
查看全部 -
nvl使分組函數無法忽略空值
查看全部 -
單行操作符
查看全部 -
nvl函數是分組函數無法忽略空值
查看全部 -
常用分組函數。
查看全部 -
select avg(sal),sum(sal) from emp;
?select min(sal),min(sal) from emp;
?select count(*) from emp;
select count (empno) from emp;
?select count(deptno) from emp;
?select count(distinct deptno) from emp;
查看全部 -
父查詢使用別名
查看全部 -
操作
查看全部 -
行號
查看全部 -
top n問題
查看全部 -
子查詢2
查看全部 -
子查詢
查看全部 -
查詢多個字段,不在組函數里的字段必須包含在group by?里面。贊。~
查看全部
舉報
0/150
提交
取消