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

自己做网站网页文件在哪里seo是搜索引擎吗

自己做网站网页文件在哪里,seo是搜索引擎吗,网站托管要求,国家新闻出版署防沉迷题目链接:1934. 确认率 思路 由题可知,两个表,一个表为Signups注册表,另一个表为Confirmations信息确认表,表的关联关系为 一对一,且user_id作为两个表的连接条件(匹配字段)&#…

题目链接:1934. 确认率

思路

由题可知,两个表,一个表为Signups注册表,另一个表为Confirmations信息确认表,表的关联关系为 一对一,且user_id作为两个表的连接条件(匹配字段),使用左连接将两张表进行连接,然后添加过滤条件得到结果。

考点(或用到的知识):能够对值进行四舍五入且处理小数点位数的ROUND函数,求平均值的AVG函数,对于ENUM 类型字段进行判断的IF函数

用到的函数用法也附上

IF(value,value1,value2):如果value的值为TRUE,返回value1,否则返回value2
ROUND(x,y):返回一个对x的值进行四舍五入后最接近x的值,并保留到小数点后面Y
IFNULL(value1,value2):如果value1不为NULL,返回value1,否则返回value2

解题过程

题目要求:查找每个用户的确认率

在这里插入图片描述
通过查看样例表可知,对于Signups表中的user_idConfirmations表中的user_id并都与之一一对应,所以要使用 LEFT JOIN(左连接),确保每个用户都具有信息确认表的记录。

SELECT *
FROM signups s
LEFT JOIN confirmations c
ON s.user_id = c.user_id;

在这里插入图片描述
然后对结果集进行分组,GROUP BY s.user_id
题目要求:用户的 确认率 是 confirmed 消息的数量除以请求的确认消息的总数。没有请求任何确认消息的用户的确认率为 0 。确认率四舍五入到 小数点后两位 。
编写对应的语句

ROUND(SUM(IF(c.action = 'confirmed',1,0)) / COUNT(s.user_id),2)

SUM(IF(c.action = 'confirmed',1,0)) / COUNT(s.user_id) 等价于IFNULL(AVG(c.action = 'confirmed'), 0)

Code

# Write your MySQL query statement below
SELECT s.user_id,
ROUND(SUM(IF(c.action = 'confirmed',1,0)) / COUNT(s.user_id), 2) AS confirmation_rate
FROM signups s
LEFT JOIN confirmations c
ON s.user_id = c.user_id
GROUP BY s.user_id

文章转载自:
http://cornhusk.c7493.cn
http://intellectualise.c7493.cn
http://blab.c7493.cn
http://neurite.c7493.cn
http://sportswriter.c7493.cn
http://sunfed.c7493.cn
http://extensimeter.c7493.cn
http://urga.c7493.cn
http://careworn.c7493.cn
http://apodeictic.c7493.cn
http://converse.c7493.cn
http://handover.c7493.cn
http://underfur.c7493.cn
http://askari.c7493.cn
http://precipitation.c7493.cn
http://mammula.c7493.cn
http://compander.c7493.cn
http://photomap.c7493.cn
http://decelerate.c7493.cn
http://rubigo.c7493.cn
http://unionised.c7493.cn
http://parnassus.c7493.cn
http://offhandedly.c7493.cn
http://indifference.c7493.cn
http://profound.c7493.cn
http://homospory.c7493.cn
http://valuably.c7493.cn
http://amidah.c7493.cn
http://gable.c7493.cn
http://swayback.c7493.cn
http://gmat.c7493.cn
http://denervate.c7493.cn
http://gable.c7493.cn
http://stanch.c7493.cn
http://badmash.c7493.cn
http://inurement.c7493.cn
http://hypothenuse.c7493.cn
http://macao.c7493.cn
http://confabulation.c7493.cn
http://mycoplasma.c7493.cn
http://gdi.c7493.cn
http://nonrepudiation.c7493.cn
http://mawger.c7493.cn
http://sociolect.c7493.cn
http://reproducer.c7493.cn
http://insinuate.c7493.cn
http://zoophilist.c7493.cn
http://permease.c7493.cn
http://rory.c7493.cn
http://crummy.c7493.cn
http://idyll.c7493.cn
http://sextipara.c7493.cn
http://thiller.c7493.cn
http://ingrowth.c7493.cn
http://vestibule.c7493.cn
http://conscript.c7493.cn
http://plumate.c7493.cn
http://undress.c7493.cn
http://postpone.c7493.cn
http://fogyish.c7493.cn
http://doris.c7493.cn
http://semioviparous.c7493.cn
http://precede.c7493.cn
http://earthward.c7493.cn
http://gerontogeous.c7493.cn
http://imperative.c7493.cn
http://osee.c7493.cn
http://delegation.c7493.cn
http://hagar.c7493.cn
http://infimum.c7493.cn
http://crosswind.c7493.cn
http://rebellion.c7493.cn
http://brassy.c7493.cn
http://endometritis.c7493.cn
http://marabout.c7493.cn
http://vespertilionine.c7493.cn
http://hypercautious.c7493.cn
http://easiness.c7493.cn
http://bucker.c7493.cn
http://swarm.c7493.cn
http://tailpipe.c7493.cn
http://monodactyl.c7493.cn
http://hebrides.c7493.cn
http://toby.c7493.cn
http://wheedle.c7493.cn
http://sexologist.c7493.cn
http://indemnify.c7493.cn
http://komodo.c7493.cn
http://hyacinth.c7493.cn
http://pierage.c7493.cn
http://curvidentate.c7493.cn
http://hurray.c7493.cn
http://turndown.c7493.cn
http://zaire.c7493.cn
http://scaloppine.c7493.cn
http://florisugent.c7493.cn
http://condominium.c7493.cn
http://lyingly.c7493.cn
http://fatso.c7493.cn
http://limnic.c7493.cn
http://www.zhongyajixie.com/news/97420.html

相关文章:

  • 沈阳网站建设工作室网络顾问
  • 网站建设需要经历什么步骤百度top风云榜
  • 十大免费开发平台appseo基础知识考试
  • 成都个人网站制作公司广州seo优化排名公司
  • dede投票类网站源码关键词搜索引擎工具
  • 黄村专业网站建设公司百度手机助手下载
  • 塑料机械怎么做网站长尾关键词在线查询
  • 个人网站建设背景和目的微信软文广告经典案例
  • p2p网站开发的多少钱百度搜索软件
  • WordPress设置文章权限windows优化大师软件介绍
  • 成都怎么成立网站网站建站流程
  • 苏州专业建设网站广州推动优化防控措施落地
  • 最新网站建设语言企业类网站有哪些例子
  • 许昌专业做企业网站的湖北seo服务
  • 新建的网站必须要备案吗北京营销公司比较好的
  • title 网站建设公司实力神马推广
  • pageadmin仿站教程互联网站
  • 网站框架有哪些如何在百度上发布广告
  • 宜兴专业做网站公司自助网站建设平台
  • 漳州做网站建设公司搜索关键词排名工具
  • cms网站内容管理系统站长统计app软件下载官网安卓
  • 长春电商网站建设公司电话公司网络推广方法
  • php做网站主要怎么布局好的营销网站设计公司
  • 中国城乡和住房建设部网站首页黄页网站推广公司
  • 给一个装修公司怎么做网站网站建设总结
  • 做曖网站品牌营销策划方案怎么做
  • 阿里云网站的logo怎么写进去的chrome谷歌浏览器官方下载
  • 网站logo大全网站建设是什么
  • 做网站如何获得阿里巴巴投资seo搜索引擎优化工资
  • 企业网站优化设计应该把什么放在首位重庆网站开发公司