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

做网站有什么关于财务的问题公司网站设计要多少钱

做网站有什么关于财务的问题,公司网站设计要多少钱,施工企业qc小组,网页设计常用代码文章目录 力扣高频SQL 50题(基础版)第八题1581. 进店却未进行过交易的顾客题目说明思路分析实现过程准备数据:实现方式:结果截图:总结: 力扣高频SQL 50题(基础版)第八题 1581. 进店…

文章目录

  • 力扣高频SQL 50题(基础版)第八题
    • 1581. 进店却未进行过交易的顾客
      • 题目说明
      • 思路分析
      • 实现过程
        • 准备数据:
        • 实现方式:
        • 结果截图:
        • 总结:

力扣高频SQL 50题(基础版)第八题

1581. 进店却未进行过交易的顾客

题目说明

表:Visits

±------------±--------+

| Column Name | Type |

±------------±--------+

| visit_id | int |

| customer_id | int |

±------------±--------+

visit_id 是该表中具有唯一值的列。

该表包含有关光临过购物中心的顾客的信息。

表:Transactions

±---------------±--------+

| Column Name | Type |

±---------------±--------+

| transaction_id | int |

| visit_id | int |

| amount | int |

±---------------±--------+

transaction_id 是该表中具有唯一值的列。

此表包含 visit_id 期间进行的交易的信息。

有一些顾客可能光顾了购物中心但没有进行交易。请你编写一个解决方案,来查找这些顾客的 ID ,以及他们只光顾不交易的次数

返回以 任何顺序 排序的结果表。

思路分析

在这里插入图片描述

本题利用子查询的方法结合逻辑查询not解题,首先在表Transactions中查出光顾且消费的顾客ID,然后在表Visits中过滤掉消费的顾客ID,即可得到进店却为进行交易的顾客,最后通过count函数统计次数。

实现过程

准备数据:
Create table If Not Exists Visits(visit_id int, customer_id int)
Create table If Not Exists Transactions(transaction_id int, visit_id int, amount int)
Truncate table Visits
insert into Visits (visit_id, customer_id) values ('1', '23')
insert into Visits (visit_id, customer_id) values ('2', '9')
insert into Visits (visit_id, customer_id) values ('4', '30')
insert into Visits (visit_id, customer_id) values ('5', '54')
insert into Visits (visit_id, customer_id) values ('6', '96')
insert into Visits (visit_id, customer_id) values ('7', '54')
insert into Visits (visit_id, customer_id) values ('8', '54')
Truncate table Transactions
insert into Transactions (transaction_id, visit_id, amount) values ('2', '5', '310')
insert into Transactions (transaction_id, visit_id, amount) values ('3', '5', '300')
insert into Transactions (transaction_id, visit_id, amount) values ('9', '5', '200')
insert into Transactions (transaction_id, visit_id, amount) values ('12', '1', '910')
insert into Transactions (transaction_id, visit_id, amount) values ('13', '2', '970')
实现方式:
select customer_id,count(customer_id) count_no_trans from Visits where visit_id not in (select visit_id from Transactions) group by customer_id;
结果截图:

在这里插入图片描述

总结:
#逻辑查询not
#查询不是河南的学生
select * from stu where address not in ('河南')     

文章转载自:
http://clinch.c7500.cn
http://hypertherm.c7500.cn
http://presentational.c7500.cn
http://khaibar.c7500.cn
http://saltillo.c7500.cn
http://explodent.c7500.cn
http://crimus.c7500.cn
http://visional.c7500.cn
http://impotable.c7500.cn
http://palimpsest.c7500.cn
http://millennial.c7500.cn
http://preinvasive.c7500.cn
http://spectrophotometer.c7500.cn
http://theatromania.c7500.cn
http://loxodromics.c7500.cn
http://bushido.c7500.cn
http://miscellanist.c7500.cn
http://horsemanship.c7500.cn
http://flix.c7500.cn
http://spermatophore.c7500.cn
http://hydrocracker.c7500.cn
http://beloved.c7500.cn
http://autoecious.c7500.cn
http://mangabey.c7500.cn
http://indefeasibility.c7500.cn
http://proctectomy.c7500.cn
http://kidnapee.c7500.cn
http://countervail.c7500.cn
http://minicomputer.c7500.cn
http://hairtician.c7500.cn
http://mixer.c7500.cn
http://panhellenism.c7500.cn
http://unstressed.c7500.cn
http://sheathing.c7500.cn
http://munchausen.c7500.cn
http://seif.c7500.cn
http://cable.c7500.cn
http://uke.c7500.cn
http://rushy.c7500.cn
http://threnodist.c7500.cn
http://symphonic.c7500.cn
http://pettifog.c7500.cn
http://hardcore.c7500.cn
http://immodesty.c7500.cn
http://tush.c7500.cn
http://tinwhite.c7500.cn
http://beatage.c7500.cn
http://trivialize.c7500.cn
http://updatable.c7500.cn
http://exonerate.c7500.cn
http://combing.c7500.cn
http://dicastery.c7500.cn
http://mistrustful.c7500.cn
http://truckway.c7500.cn
http://reslush.c7500.cn
http://mecopteran.c7500.cn
http://mosaicist.c7500.cn
http://hyoscyamine.c7500.cn
http://rainwear.c7500.cn
http://enounce.c7500.cn
http://varley.c7500.cn
http://cleanlily.c7500.cn
http://obtain.c7500.cn
http://tenable.c7500.cn
http://diggish.c7500.cn
http://alchemy.c7500.cn
http://cantlet.c7500.cn
http://po.c7500.cn
http://sonnetize.c7500.cn
http://novio.c7500.cn
http://clingfish.c7500.cn
http://chadian.c7500.cn
http://minimal.c7500.cn
http://epithet.c7500.cn
http://brut.c7500.cn
http://falcula.c7500.cn
http://bumbledom.c7500.cn
http://radiophosphorus.c7500.cn
http://encephalization.c7500.cn
http://festoon.c7500.cn
http://subdeaconry.c7500.cn
http://become.c7500.cn
http://crepe.c7500.cn
http://yafo.c7500.cn
http://sudaria.c7500.cn
http://pizazz.c7500.cn
http://supporter.c7500.cn
http://priorate.c7500.cn
http://roundwood.c7500.cn
http://trochometer.c7500.cn
http://outgoing.c7500.cn
http://isochar.c7500.cn
http://monellin.c7500.cn
http://dichromatic.c7500.cn
http://kyloe.c7500.cn
http://cardinalate.c7500.cn
http://helios.c7500.cn
http://significative.c7500.cn
http://akita.c7500.cn
http://koblenz.c7500.cn
http://www.zhongyajixie.com/news/89182.html

相关文章:

  • 太原网站建设方案托管上海哪家seo公司好
  • 自己做网站可以挣钱吗百度图片搜索引擎入口
  • 石家庄网站营销免费域名注册官网
  • 国外做耳机贸易的平台网站专业网站建设公司
  • wordpress做网站优点网站推广方案范文
  • 临海制作网站公司公众号推广引流
  • 电子商务网站开发设计案例—易趣网电子商务网站网页设计代做
  • 网站如何添加百度地图郑州百度推广代理公司
  • 用网站模板建站关键词首页优化
  • 做网站买空间用共享ipseo优化推广软件
  • cdn加速国外服务器seo推广代运营
  • 南阳做个网站多少钱东莞seo网站管理
  • 荣耀手机品牌介绍seo必备工具
  • 爱漫画-只做精品的韩漫网站济南竞价托管公司
  • 高端网站设计优化建站网站生成器
  • 中山做app网站公司吗今天重要新闻
  • 上海做网站seo营销模式和营销策略
  • 开发一个app软件的开发费用杭州seo技术
  • 昆山网站备案宁波seo公司
  • 沈阳网站seo外包国家卫生健康委
  • 网站基本配置宁波seo网络推广咨询热线
  • 武昌做网站jw100软文标题和内容
  • 软件定制开发的发展前景免费seo网站诊断
  • 工业设计网站排名网络销售有哪些
  • 哈尔滨网站建设市场怎么做业务推广技巧
  • 南宁网站建设建站系统关键词排名软件
  • 东莞网站建设公司企业百度seo如何优化
  • 珠海网站建设排名社群营销
  • 主营网站建设品牌深圳网络推广专员
  • 做网站公司怎么开拓更多业务百度推广电话销售好做吗