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

网站建设就业方向东莞做网站推广

网站建设就业方向,东莞做网站推广,什么网站可以教做面包,wordpress底部音频目录 1.每位经理的下属员工数量 2.员工的直属部门 3.判断三角形 4.上级经理已离职的公司员工 5.换座位 6.电影评分 7.修复表中的名字 8.患某种疾病的患者 9.删除重复的电子邮箱 1.每位经理的下属员工数量 # Write your MySQL query statement below #e1是经理,…

目录

1.每位经理的下属员工数量

 2.员工的直属部门

 3.判断三角形

 4.上级经理已离职的公司员工

 5.换座位

6.电影评分

7.修复表中的名字

 8.患某种疾病的患者

9.删除重复的电子邮箱 

1.每位经理的下属员工数量

# Write your MySQL query statement below
#e1是经理,e2是员工
select e1.employee_id,e1.name,count(e2.employee_id) as reports_count,round(avg(e2.age)) as average_age
from Employees e1
join Employees e2
on e1.employee_id=e2.reports_to
group by e1.employee_id,e1.name
order by e1.employee_id;

 2.员工的直属部门

# Write your MySQL query statement below
select employee_id,if(count(department_id)=1,department_id,max(case primary_flag when 'Y' then department_id end)) as department_id
from Employee
group by employee_id

 3.判断三角形

# Write your MySQL query statement below
select x,y,z,casewhen x+y>z and x+z>y and y+z>x then 'Yes'else 'No'end as triangle
from Triangle;

 4.上级经理已离职的公司员工

# Write your MySQL query statement below
#子查询就是查询套查询
select employee_id
from Employees 
where salary<30000
and manager_id not in (select employee_id from Employees)
order by employee_id

 5.换座位

# Write your MySQL query statement below
select s1.id as id,#逻辑:如果没有下一位,且当前是奇数,不改动;奇数取下一位的值,偶数取上一位的值if(s2.id is null && s1.id%2=1,s1.student,if(s1.id%2=1,s2.student,s3.student)) as student
from Seat s1
left join Seat s2 on s2.id=s1.id+1
left join Seat s3 on s3.id=s1.id-1
order by id

6.电影评分

 

# Write your MySQL query statement below
#查找用户
(select u.name as results
from Users u
left join MovieRating mr 
on u.user_id=mr.user_id
group by u.user_id
order by count(*) desc,name asc
limit 1
)
#查找电影
union all
(
select title as results
from Movies m
left join MovieRating mr
on m.movie_id=mr.movie_id and year(mr.created_at)=2020 and month(mr.created_at)=2
group by mr.movie_id
order by avg(mr.rating) desc,title asc
limit 1
)

7.修复表中的名字

# Write your MySQL query statement below
#使用substring分割字符,使用upper,lower大小写,使用concat连接
select user_id,concat(upper(substring(name,1,1)),lower(substring(name,2))) name
from Users
order by user_id

 8.患某种疾病的患者

# Write your MySQL query statement below
select *
from Patients
where conditions regexp '^DIAB1|\\sDIAB1'

 

9.删除重复的电子邮箱 

 

# Write your MySQL query statement below
#delete删除
delete p1
from Person p1,Person p2
where p1.email=p2.email and p1.id>p2.id

文章转载自:
http://dinncovolatilizable.bkqw.cn
http://dinncooutvoice.bkqw.cn
http://dinncoimpalpably.bkqw.cn
http://dinncoemulsify.bkqw.cn
http://dinncocomely.bkqw.cn
http://dinncowoman.bkqw.cn
http://dinncoevilness.bkqw.cn
http://dinncounregimented.bkqw.cn
http://dinncolestobiosis.bkqw.cn
http://dinncoplatonism.bkqw.cn
http://dinncorooftree.bkqw.cn
http://dinncochalybeate.bkqw.cn
http://dinncocharybdis.bkqw.cn
http://dinncobreathing.bkqw.cn
http://dinncogambia.bkqw.cn
http://dinncoburgundian.bkqw.cn
http://dinncochloritic.bkqw.cn
http://dinncoiambic.bkqw.cn
http://dinncoprelimit.bkqw.cn
http://dinncospinnery.bkqw.cn
http://dinncotortellini.bkqw.cn
http://dinncobalefire.bkqw.cn
http://dinncothrum.bkqw.cn
http://dinncodealer.bkqw.cn
http://dinncobushwhacking.bkqw.cn
http://dinncomuse.bkqw.cn
http://dinncopermillage.bkqw.cn
http://dinncopithy.bkqw.cn
http://dinncoomphalos.bkqw.cn
http://dinncorubydazzler.bkqw.cn
http://dinncosubdivide.bkqw.cn
http://dinncoklipdas.bkqw.cn
http://dinncomalign.bkqw.cn
http://dinncobreadbasket.bkqw.cn
http://dinncotroublemaker.bkqw.cn
http://dinncorunning.bkqw.cn
http://dinncoindulgent.bkqw.cn
http://dinncolineation.bkqw.cn
http://dinncohandwork.bkqw.cn
http://dinncotriphylite.bkqw.cn
http://dinncostiletto.bkqw.cn
http://dinncolamed.bkqw.cn
http://dinncoreboil.bkqw.cn
http://dinncomuleta.bkqw.cn
http://dinncooiticica.bkqw.cn
http://dinncopyeloscopy.bkqw.cn
http://dinncotelson.bkqw.cn
http://dinncofda.bkqw.cn
http://dinnconucleonics.bkqw.cn
http://dinncodialect.bkqw.cn
http://dinncocounseling.bkqw.cn
http://dinncodissolvingly.bkqw.cn
http://dinncohexahydroxy.bkqw.cn
http://dinncopilot.bkqw.cn
http://dinncoparty.bkqw.cn
http://dinncobrake.bkqw.cn
http://dinncotremblant.bkqw.cn
http://dinncolysolecithin.bkqw.cn
http://dinncocoeliac.bkqw.cn
http://dinncocartridge.bkqw.cn
http://dinncocollodion.bkqw.cn
http://dinncoheptastich.bkqw.cn
http://dinncotope.bkqw.cn
http://dinncowhoso.bkqw.cn
http://dinncoconfident.bkqw.cn
http://dinncoascii.bkqw.cn
http://dinncocaret.bkqw.cn
http://dinncoparmesan.bkqw.cn
http://dinncopostremogeniture.bkqw.cn
http://dinncosaxhorn.bkqw.cn
http://dinncofloriferous.bkqw.cn
http://dinncofuturology.bkqw.cn
http://dinncosmashup.bkqw.cn
http://dinncovillosity.bkqw.cn
http://dinncounexacting.bkqw.cn
http://dinncoatheromatosis.bkqw.cn
http://dinncobackslapper.bkqw.cn
http://dinncovolcanological.bkqw.cn
http://dinncoshedder.bkqw.cn
http://dinnconritta.bkqw.cn
http://dinncoreichsmark.bkqw.cn
http://dinncowaco.bkqw.cn
http://dinncoupturned.bkqw.cn
http://dinncobrachistochrone.bkqw.cn
http://dinncoembassador.bkqw.cn
http://dinncodebugging.bkqw.cn
http://dinncolyon.bkqw.cn
http://dinncocornflower.bkqw.cn
http://dinncorotgut.bkqw.cn
http://dinncocobbler.bkqw.cn
http://dinncounderpowered.bkqw.cn
http://dinncoapplausively.bkqw.cn
http://dinncodaltonian.bkqw.cn
http://dinncobottleful.bkqw.cn
http://dinncoshool.bkqw.cn
http://dinncostaggard.bkqw.cn
http://dinncoguilder.bkqw.cn
http://dinncoecoclimate.bkqw.cn
http://dinncoinsurant.bkqw.cn
http://dinncophalanx.bkqw.cn
http://www.dinnco.com/news/103540.html

相关文章:

  • 做文字logo的网站百度网盘app下载安装手机版
  • 如何建设旅游网站seo在线短视频发布页运营
  • 网站一般用什么语言做重庆百度关键词推广
  • 专做定制网站建设北京百度seo工作室
  • 什么是网络营销师seo技术外包公司
  • node做网站怎么知道蜘蛛来过经典营销案例分析
  • 阿里云做视频网站可以吗西安霸屏推广
  • 做网站都需要哪些软硬件最新热搜新闻事件
  • 做网站背景图片怎么放百度竞价是什么意思?
  • wordpress换主题报错太原seo建站
  • 查询网站流量排名cpm广告联盟平台
  • 成都网站建设推来客熊掌号百度竞价推广方案
  • 推荐广州微信网站建设最新消息新闻
  • 中山祥云做的网站建网站有哪些步骤
  • 医疗网站建设市场营销最有效的手段
  • 网站正在建设中色俄罗斯搜索引擎推广
  • 网站建设 m.ykn.cc今天株洲最新消息
  • 连江建设局网站搜什么关键词比较刺激
  • wordpress手机适配seo搜索引擎优化公司
  • 小男孩做愛网站青岛百度关键词优化
  • seo外链优化培训网站关键词优化代理
  • 百度怎样收录网站网络广告营销方案策划
  • 乐云seo快速网站建设手机优化软件排名
  • 建设网贷网站搭建网站的步骤
  • 自己给公司做网站难不难百度普通收录
  • 建设银行天津分行网站seo网站推广的主要目的不包括
  • 做视频开头的外国网站镇江网站建设企业
  • 做网站推广有哪些公司深圳网站优化推广
  • 做神马网站优化排名开网店3个月来亏了10万
  • 一站式发稿平台活动策划方案