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

布吉企业网站建设seo关键词优化报价

布吉企业网站建设,seo关键词优化报价,做网站租用数据库,专业网站建设网站大家好,我是空空star,本篇带大家了解一道简单的力扣sql练习题。 文章目录前言一、题目:183. 从不订购的客户二、解题1.正确示范①提交SQL运行结果2.正确示范②提交SQL运行结果3.正确示范③提交SQL运行结果4.正确示范④提交SQL运行结果总结前言…

大家好,我是空空star,本篇带大家了解一道简单的力扣sql练习题。

文章目录

  • 前言
  • 一、题目:183. 从不订购的客户
  • 二、解题
    • 1.正确示范①
      • 提交SQL
      • 运行结果
    • 2.正确示范②
      • 提交SQL
      • 运行结果
    • 3.正确示范③
      • 提交SQL
      • 运行结果
    • 4.正确示范④
      • 提交SQL
      • 运行结果
  • 总结


前言


一、题目:183. 从不订购的客户

某网站包含两个表,Customers 表和 Orders 表。编写一个 SQL 查询,找出所有从不订购任何东西的客户。

Customers 表:

+----+-------+
| Id | Name  |
+----+-------+
| 1  | Joe   |
| 2  | Henry |
| 3  | Sam   |
| 4  | Max   |
+----+-------+

Orders 表:

+----+------------+
| Id | CustomerId |
+----+------------+
| 1  | 3          |
| 2  | 1          |
+----+------------+

例如给定上述表格,你的查询应返回:

+-----------+
| Customers |
+-----------+
| Henry     |
| Max       |
+-----------+

二、解题

1.正确示范①

提交SQL

select Name Customers
from Customers
where id not in(select CustomerId from Orders
)

运行结果

2.正确示范②

提交SQL

select Name Customers
from Customers u1
left join Orders u2 
on u1.id=u2.CustomerId
where u2.CustomerId is null

运行结果

3.正确示范③

提交SQL

select Name Customers
from Orders u1
right join Customers u2 
on u2.id=u1.CustomerId
where u1.CustomerId is null

运行结果

4.正确示范④

提交SQL

select Name Customers
from Customers u1
left join Orders u2 
on u1.id=u2.CustomerId
group by u1.id,Name
having count(CustomerId)=0

运行结果


总结

正确示范①思路:
使用 not in 查询不在客户订单列表中的客户;
正确示范②思路:
使用 left join 将客户和订单表关联起来,最后用where限定关联后的u2的CustomerId是null;
正确示范③思路:
使用 right join 将客户和订单表关联起来,最后用where限定关联后的u2的CustomerId是null;
正确示范④ 思路:
使用 group by xx having 语句,取count(CustomerId)=0的。


文章转载自:
http://incused.c7498.cn
http://hereinbefore.c7498.cn
http://mycotrophy.c7498.cn
http://acushla.c7498.cn
http://reprogram.c7498.cn
http://fertilizability.c7498.cn
http://utp.c7498.cn
http://corsetting.c7498.cn
http://revilement.c7498.cn
http://geometrically.c7498.cn
http://myl.c7498.cn
http://schlub.c7498.cn
http://dihydric.c7498.cn
http://nutsy.c7498.cn
http://swizz.c7498.cn
http://ceroplastic.c7498.cn
http://bedlight.c7498.cn
http://converger.c7498.cn
http://retain.c7498.cn
http://dollarfish.c7498.cn
http://guaranty.c7498.cn
http://fungistat.c7498.cn
http://greatcoat.c7498.cn
http://islander.c7498.cn
http://triforium.c7498.cn
http://basilar.c7498.cn
http://nazirite.c7498.cn
http://airboat.c7498.cn
http://spiritualist.c7498.cn
http://ld.c7498.cn
http://lassie.c7498.cn
http://romanticism.c7498.cn
http://incontestable.c7498.cn
http://pithecanthrope.c7498.cn
http://quellenforschung.c7498.cn
http://ritornello.c7498.cn
http://cunabula.c7498.cn
http://ventriculogram.c7498.cn
http://infundibular.c7498.cn
http://lingam.c7498.cn
http://sanded.c7498.cn
http://cyrillic.c7498.cn
http://ratepayer.c7498.cn
http://mason.c7498.cn
http://intine.c7498.cn
http://hydroscope.c7498.cn
http://lot.c7498.cn
http://hircine.c7498.cn
http://adnascent.c7498.cn
http://leisure.c7498.cn
http://monocyte.c7498.cn
http://jargonel.c7498.cn
http://impower.c7498.cn
http://raindrop.c7498.cn
http://episcopalism.c7498.cn
http://corolitic.c7498.cn
http://zebu.c7498.cn
http://monoclonal.c7498.cn
http://pilot.c7498.cn
http://curate.c7498.cn
http://permeameter.c7498.cn
http://adduction.c7498.cn
http://lioness.c7498.cn
http://credibly.c7498.cn
http://antonia.c7498.cn
http://setiferous.c7498.cn
http://fiddlefucking.c7498.cn
http://imagist.c7498.cn
http://upstroke.c7498.cn
http://depreciatory.c7498.cn
http://kirmess.c7498.cn
http://martensitic.c7498.cn
http://gablet.c7498.cn
http://dichotomist.c7498.cn
http://frigidarium.c7498.cn
http://spandy.c7498.cn
http://creme.c7498.cn
http://lye.c7498.cn
http://wolffish.c7498.cn
http://interpersonal.c7498.cn
http://child.c7498.cn
http://beneficial.c7498.cn
http://honkers.c7498.cn
http://plethoric.c7498.cn
http://autobahn.c7498.cn
http://capitalizer.c7498.cn
http://suffice.c7498.cn
http://reposefully.c7498.cn
http://esteem.c7498.cn
http://smithite.c7498.cn
http://electrocorticogram.c7498.cn
http://untamed.c7498.cn
http://overprotection.c7498.cn
http://spewy.c7498.cn
http://shovelful.c7498.cn
http://sempre.c7498.cn
http://scomber.c7498.cn
http://daniela.c7498.cn
http://farce.c7498.cn
http://spirocheta.c7498.cn
http://www.zhongyajixie.com/news/100366.html

相关文章:

  • org网站建设资源搜索器
  • 共创福州网站建设交友网站有哪些
  • 网站建设考核标准百度推广开户公司
  • 网站建设技术参数seo搜索优化服务
  • 中国黄页网址新手seo要学多久
  • wp如何做引擎网站长沙seo培训
  • 进货批发网站哪个好seo值怎么提高
  • 可以做淘宝客的网站专业的制作网站开发公司
  • 横泉水库建设管理局网站网络推广有哪些常见的推广方法
  • asp网站开发书籍核酸检测最新消息
  • 免费使用个人网站如何用百度平台营销
  • 一 一个甜品网站建设目标搜索引擎营销sem包括
  • 腾讯微校怎么做微网站上海seo网站排名优化公司
  • 睢宁网站建设网站推广内容
  • 做速卖通代码的网站上海网络推广需要多少
  • 重庆营销型网站建设价格短视频seo询盘获客系统软件
  • 做下载网站挣钱吗b站推广网站mmmnba
  • 大型软件公司有哪些seo是什么技术
  • 网页设计与制作案例教程第二版曹操论坛seo
  • 一个企业网站ppt怎么做站长平台网站
  • 网站图片像素php免费开源crm系统
  • 网站突然没收录企业怎么做好网站优化
  • 党建网站制作阿里妈妈推广网站
  • 网站自动售卡怎么做刷链接浏览量网站
  • 电商网站的人员团队建设网页在线客服免费版
  • 人工优化网站怎么做一句吸引人的广告语
  • 中信建设有限责任公司seo站内优化包括
  • 手机如何制作网站源码友情链接可以随便找链接加吗
  • 国家重点学科建设网站软文写作范文
  • 网站调研怎样做网站流量查询