select sum(sal) 薪水总和 from scott.emp;
SQL+Server2000 源代码
汇集 SQL+Server2000 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
select mgr, round(mgr/100,2),round(mgr/1000,2) from scott.emp;
select mgr, power(mgr,2),power(mgr,3) from scott.emp;
select mgr, mod(mgr,1000), mod(mgr,100), mod(mgr,10) from scott.emp;
select min(sal) 最少薪水 from scott.emp;
select mgr, mgr/100,floor(mgr/100) from scott.emp;
select avg(mgr) 平均薪水 from scott.emp;
select max(sal) 最高薪水 from scott.emp;
select mgr, mgr/100,ceil(mgr/100) from scott.emp;
(select deptno from scott.emp) union (select deptno from scott.dept);