当前位置: 首页 > news >正文

从网站栏目看网站功能一键优化为什么不能100

从网站栏目看网站功能,一键优化为什么不能100,网站空间建站,微信视频号怎么引流推广33. 查询 employees 表中有多少个部门select count(distinct department_id)from employees 34. 查询全公司奖金基数的平均值(没有奖金的人按 0 计算)select avg(nvl(commission_pct, 0))from employees 35. 查询各个部门的平均工资--错误: avg(salary) 返回公司平均工资, 只…33. 查询 employees 表中有多少个部门select count(distinct department_id)from employees 34. 查询全公司奖金基数的平均值(没有奖金的人按 0 计算)select avg(nvl(commission_pct, 0))from employees 35. 查询各个部门的平均工资--错误: avg(salary) 返回公司平均工资, 只有一个值; 而 department_id 有多个值, 无法匹配返回select department_id, avg(salary)from employees **在 SELECT 列表中所有未包含在组函数中的列都应该包含在 GROUP BY 子句中--正确: 按 department_id 进行分组select department_id, avg(salary)from employeesgroup by department_id36. Toronto 这个城市的员工的平均工资SELECT avg(salary) FROM employees e JOIN departments d ON e.department_id d.department_id JOIN locations l ON d.location_id l.location_id WHERE city Toronto 37. (有员工的城市)各个城市的平均工资SELECT city, avg(salary) FROM employees e JOIN departments d ON e.department_id d.department_id JOIN locations l ON d.location_id l.location_id GROUP BY city 38. 查询平均工资高于 8000 的部门 id 和它的平均工资. SELECT department_id, avg(salary) FROM employees e GROUP BY department_id HAVING avg(salary) 8000 39. 查询平均工资高于 6000 的 job_title 有哪些SELECT job_title, avg(salary) FROM employees e join jobs j ON e.job_id j.job_id GROUP BY job_title HAVING avg(salary) 6000 1. 组函数处理多行返回一行吗? 是 2. 组函数不计算空值吗 是 3. where子句可否使用组函数进行过滤? 不可以用having替代 4. 查询公司员工工资的最大值最小值平均值总和 a) select max(salary),min(salary),avg(salary),sum(salary) b) from employees 5. 查询各job_id的员工工资的最大值最小值平均值总和 a) select job_id,max(salary),min(salary),avg(salary),sum(salary) b) from employees c) group by job_id 6. 选择具有各个job_id的员工人数 a) select job_id,count(employee_id) b) from employees c) group by job_id 7. 查询员工最高工资和最低工资的差距DIFFERENCE a) select max(salary),min(salary),max(salary)-min(salary) DIFFERENCE b) from employees 8. 查询各个管理者手下员工的最低工资其中最低工资不能低于6000没有管理者的员工不计算在内 a) select manager_id,min(salary) b) from employees c) where manager_id is not null d) group by manager_id e) having min(salary) 6000 9. 查询所有部门的名字location_id员工数量和工资平均值 a) select department_name,location_id,count(employee_id),avg(salary) b) from employees e right outer join departments d c) on e.department_id d.department_id d) group by department_name,location_id 10. 查询公司在1995-1998年之间每年雇用的人数结果类似下面的格式 total 1995 1996 1997 1998 20 3 4 6 7select count(*) total,count(decode(to_char(hire_date,yyyy),1995,1,null)) 1995,count(decode(to_char(hire_date,yyyy),1996,1,null)) 1996,count(decode(to_char(hire_date,yyyy),1997,1,null)) 1997,count(decode(to_char(hire_date,yyyy),1998,1,null)) 1998 from employees where to_char(hire_date,yyyy) in (1995,1996,1997,1998)
http://www.pierceye.com/news/25779/

相关文章:

  • 小说网站做封面要钱吗seo广州工作好吗
  • 东莞市专注网站建设怎么样管理登陆网站开发软件
  • 电气行业网站建设多少钱产品设计的8个方法
  • phpcms 专题网站模板wordpress类目权限
  • 推广网站推荐wordpress 虾米
  • wordpress 仿站vip视频当背景图片 网站开发
  • 怎么弄一个公司网站怎么查企业注册信息
  • 新建网站推广给企业河间网站制作
  • 深圳市手机网站建设网站建设责任分工表
  • 做渲染的网站怎样建设好门户网站
  • 郑州旅游网站设计wordpress html5 模板下载
  • 电子商务网站建设与维护方法spa.net网站开发
  • 网站10月份可以做哪些有意思的专题dedecms 网站还原教程
  • 做商城网站价格检察内网门户网站建设
  • 淄博想建网站网站建设要不要监理
  • 创建网站平台自助建站系统开发
  • 什么企业需要网站建设seo 知乎
  • 网站建设多语种自动翻译插件江门手机网站建设
  • 濮阳网站公司网站后台管理界面下载
  • 鄂尔多斯网站建设鄂尔多斯博海博海网站建设
  • asp网站变慢wordpress搬迁后变英文
  • 山东企业网站建设费用seo文章范文
  • 烟台网站设计单位电脑做服务器建网站并让外网访问
  • 长宁区科技网站建设手机电影网站怎样做
  • 看汽车哪个网站好什么网站上做奥数题
  • 凡科网站怎么做友情链接wordpress 菜单设置
  • 网站设计总结搜外友链平台
  • 农村电商网站建设pptWordPress minn主题破解版
  • 昆明网站优化建设北京好的网页设计
  • 建定制营销型网站网站建设玖金手指排名11