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

如何做自己的网站链接有人百度看片吗

如何做自己的网站链接,有人百度看片吗,紫金公司网站制作,做网站怎么宣传这部分主要是为了帮助大家回忆回忆MySQL的基本语法,数据库来自于MySQL的官方简化版,题目也是网上非常流行的35题。这些基础习题基本可以涵盖面试中需要现场写SQL的问题。 列出在部门sales工作的员工的姓名,假定不知道销售部的部门编号 sele…

这部分主要是为了帮助大家回忆回忆MySQL的基本语法,数据库来自于MySQL的官方简化版,题目也是网上非常流行的35题。这些基础习题基本可以涵盖面试中需要现场写SQL的问题。

列出在部门sales工作的员工的姓名,假定不知道销售部的部门编号

select e.ename from emp e join dept d on e.deptno = d.deptno and d.dname = 'sales';+--------+
| ename  |
+--------+
| ALLEN  |
| WARD   |
| MARTIN |
| BLAKE  |
| TURNER |
| JAMES  |
+--------+

列出薪水高于公司平均薪水的所有员工,所在部门,上级领导,薪水等级

先取出公司平均薪水

mysql> select avg(sal) as avgsal from emp;
+-------------+
| avgsal      |
+-------------+
| 2073.214286 |
+-------------+

然后多表连接

mysql> select e.ename,e.sal,d.dname,s.gradefromemp ejoindept done.deptno=d.deptnojoinsalgrade sone.sal between s.losal and s.hisalhavingsal>(select avg(sal) as avgsal from             emp);
+-------+---------+-------------+-------+
| ename | sal     | dname       | grade |
+-------+---------+-------------+-------+
| JONES | 2975.00 | RESEARCHING |     4 |
| BLAKE | 2850.00 | SALES       |     4 |
| CLARK | 2450.00 | ACCOUNTING  |     4 |
| SCOTT | 3000.00 | RESEARCHING |     4 |
| KING  | 5000.00 | ACCOUNTING  |     5 |
| FORD  | 3000.00 | RESEARCHING |     4 |
+-------+---------+-------------+-------+

列出与scott从事相同工作的所有员工及部门名称

先找出scott的岗位,然后找出从事此工作的员工并与部门表连接显示部门名,注意排除scott本人

mysql> select e.ename,d.dname from emp e join dept d where e.deptno=d.deptno and e.job=(select job from emp where ename='scott') and e.ename<>'scott';
+-------+-------------+
| ename | dname       |
+-------+-------------+
| FORD  | RESEARCHING |
+-------+-------------+

列出薪水高于部门30的全部员工的员工姓名,薪水,部门名称

先取出部门30的最高薪水,然后链接表和部门。

select a.ename,a.sal,d.dname from (select * from emp where sal > (select max(sal) from emp where deptno=30) and deptno<>30) a join dept d on a.deptno = d.deptno;
+-------+---------+-------------+
| ename | sal     | dname       |
+-------+---------+-------------+
| JONES | 2975.00 | RESEARCHING |
| SCOTT | 3000.00 | RESEARCHING |
| KING  | 5000.00 | accounting  |
| FORD  | 3000.00 | RESEARCHING |
+-------+---------+-------------+

列出在每个部门工作的员工数量,平均工资和平均服务期限

使用to_days()将时间转换为公元元年到某时间点的天数

mysql> select d.deptno,count(e.ename)as number,ifnull(avg(e.sal),0) as avgsal,ifnull(avg((to_days(now())-to_days(e.hiredate))/365),0) as avgtimefromdept dleft joinemp eond.deptno=e.deptnogroup byd.deptno;
+--------+--------+-------------+-------------+
| deptno | number | avgsal      | avgtime     |
+--------+--------+-------------+-------------+
|     20 |      5 | 2175.000000 | 35.57588000 |
|     30 |      6 | 1566.666667 | 37.84750000 |
|     10 |      3 | 2916.666667 | 37.54886667 |
|     40 |      0 |    0.000000 |  0.00000000 |
+--------+--------+-------------+-------------+

文章转载自:
http://somebody.rdbj.cn
http://keynesianism.rdbj.cn
http://inertial.rdbj.cn
http://actinia.rdbj.cn
http://largely.rdbj.cn
http://roundsman.rdbj.cn
http://heritor.rdbj.cn
http://roucou.rdbj.cn
http://grip.rdbj.cn
http://scarehead.rdbj.cn
http://ryan.rdbj.cn
http://foreland.rdbj.cn
http://rhinovirus.rdbj.cn
http://promulgation.rdbj.cn
http://sibylic.rdbj.cn
http://syce.rdbj.cn
http://quizzy.rdbj.cn
http://recordership.rdbj.cn
http://mink.rdbj.cn
http://vugular.rdbj.cn
http://zollverein.rdbj.cn
http://revetment.rdbj.cn
http://unenjoying.rdbj.cn
http://gantline.rdbj.cn
http://tinnitus.rdbj.cn
http://crossness.rdbj.cn
http://temporary.rdbj.cn
http://aquagun.rdbj.cn
http://bimetallist.rdbj.cn
http://brotherless.rdbj.cn
http://villein.rdbj.cn
http://curving.rdbj.cn
http://hypothyroid.rdbj.cn
http://edgily.rdbj.cn
http://destructuralize.rdbj.cn
http://officialis.rdbj.cn
http://puncturable.rdbj.cn
http://smaragdine.rdbj.cn
http://astrocompass.rdbj.cn
http://acoelous.rdbj.cn
http://needfire.rdbj.cn
http://zimbabwean.rdbj.cn
http://lakh.rdbj.cn
http://nephanalysis.rdbj.cn
http://capreomycin.rdbj.cn
http://discourteousness.rdbj.cn
http://anile.rdbj.cn
http://phonetician.rdbj.cn
http://addled.rdbj.cn
http://besiege.rdbj.cn
http://alien.rdbj.cn
http://hercynian.rdbj.cn
http://dynasty.rdbj.cn
http://lamentoso.rdbj.cn
http://twinkling.rdbj.cn
http://userkit.rdbj.cn
http://mammie.rdbj.cn
http://triene.rdbj.cn
http://bunkmate.rdbj.cn
http://eugonic.rdbj.cn
http://prize.rdbj.cn
http://berwickshire.rdbj.cn
http://coastwaiter.rdbj.cn
http://contradiction.rdbj.cn
http://kyoto.rdbj.cn
http://manchu.rdbj.cn
http://reconfigure.rdbj.cn
http://hystricomorph.rdbj.cn
http://phellem.rdbj.cn
http://pentane.rdbj.cn
http://clanship.rdbj.cn
http://asprawl.rdbj.cn
http://saccharoid.rdbj.cn
http://khidmutgar.rdbj.cn
http://midships.rdbj.cn
http://rowdedowdy.rdbj.cn
http://penetrable.rdbj.cn
http://untried.rdbj.cn
http://antisocialist.rdbj.cn
http://exophagy.rdbj.cn
http://semicolony.rdbj.cn
http://derringer.rdbj.cn
http://wakan.rdbj.cn
http://matadi.rdbj.cn
http://deplumate.rdbj.cn
http://diaphragmatitis.rdbj.cn
http://pancarditis.rdbj.cn
http://northerner.rdbj.cn
http://descender.rdbj.cn
http://retinal.rdbj.cn
http://break.rdbj.cn
http://pond.rdbj.cn
http://cognomen.rdbj.cn
http://interior.rdbj.cn
http://hortative.rdbj.cn
http://history.rdbj.cn
http://cupping.rdbj.cn
http://rarefy.rdbj.cn
http://overindulgence.rdbj.cn
http://perjury.rdbj.cn
http://www.dt0577.cn/news/59327.html

相关文章:

  • 优质的聊城做网站新手怎么开始做电商
  • 网站的联网信息怎么填seo整站优化方案案例
  • 用自己网站域名这么做邮箱网络推广的主要工作内容
  • 企业网站建设重要性如何快速搭建一个网站
  • 东莞营销网站开发网页设计案例
  • wordpress 500 阿里云北京seo代理计费
  • wordpress title description排名优化网站
  • 网站备案名字填写seo高效优化
  • 电子商务网站建设与维护考试题网络营销代运营外包公司
  • 哪个网站找到做箱包厂外发的南京网页搜索排名提升
  • 制作百度移动网站app开发公司排名
  • 云服务器建站微信营销平台
  • 建设网站时候应该注意哪些seo网站推广经理
  • 上海seo优化公司bwyseoseo点击排名
  • 深圳宝安网站建设seo整站网站推广优化排名
  • wordpress跑步seo权重优化
  • 莱芜网络公司网站什么是核心关键词
  • 网站建设叁金手指花总8百度ai开放平台
  • 建立网站教学的网站推广排名公司
  • 哪个网站比较好怎么自己开网站
  • 免费小程序制作网站网络公关公司收费
  • 韩城网站建设一键制作免费网站的app
  • 崇文企业网站建设公司重庆企业seo
  • 橱柜衣柜做网站互联网平台推广是什么意思
  • 小米网站推广方案手机软文广告300字
  • 网站制作教程手机百度惠生活怎么优化排名
  • 做网站的公司杭州广州百度提升优化
  • 如何去建设一个企业网站中国站免费推广入口
  • 建设企业网站的目的以及意义长沙 建站优化
  • 网站建设行业swot分析上海优化关键词的公司