-
報表優化顯示查看全部
-
rollup group by的增強查看全部
-
break on deptno skip 2 相同的部門號,只顯示1次,不同的部門號,跳過2行查看全部
-
外連接查看全部
-
distinct 去除重復記錄 求部門數 select count(distinct deptno) from emp;查看全部
-
常用的分組函數: AVG 求平均值 SUM 求和 MIN 求最小值 MAX 求最大值 COUNT 統計總數 WM_CONCAT 拼接函數查看全部
-
行轉列查看全部
-
select c.ci_id CID,wm_concat(s.stu_name) SNAME from pm_ci c,pm_stu s where instr(c.stu_ids,s.stu_id) <> 0 group by c.ci_id;查看全部
-
where 先過濾后分組 having 先分組后過濾 優先使用where查看全部
-
nvl(comm,0):該函數把comm列為空的值轉為0查看全部
-
group by的增強查看全部
-
having:先分組,后過濾。 where:先過濾,后分組。 沒有使用group by時,兩者通用。盡量使用where。查看全部
-
group by語句除了分組列,其他列的信息都需要加到group by語句中查看全部
-
where里邊不能有組函數,having可以有查看全部
-
子查詢null問題查看全部
舉報
0/150
提交
取消