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

博物馆网站建设优秀网站设计欣赏

博物馆网站建设,优秀网站设计欣赏,网站链接加标签,上海比较大的外贸公司有哪些目录标题618. 学生地理信息报告--完全不会的新题型1097. 游戏玩法分析 V - 重难点1127. 用户购买平台--难且不会618. 学生地理信息报告–完全不会的新题型 max()函数的功效:(‘jack’, null, null)中得出‘jack’,(nul…

目录标题

      • 618. 学生地理信息报告--完全不会的新题型
      • 1097. 游戏玩法分析 V - 重难点
      • 1127. 用户购买平台--难且不会

618. 学生地理信息报告–完全不会的新题型

在这里插入图片描述
在这里插入图片描述
max()函数的功效:(‘jack’, null, null)中得出‘jack’,(null,null)中得出null。 min()函数也可以。
窗口 先打标签再group by再case when:

select
max(case when continent = 'America' then name else null end) as America,
max(case when continent = 'Asia' then name else null end)as Asia,
max(case when continent = 'Europe' then name else null end) as Europe
from 
(select *, row_number() over(partition by continent order by name) rk
from student) t
group by rk

1097. 游戏玩法分析 V - 重难点

题型:读题

在这里插入图片描述
解答:
看的评论区大佬的解答
由题目可知,需要计算以下几个值:

  1. 每个玩家第一个登录日
  2. 第一个登陆日之后有没有登录
  3. 第一个登录日的玩家的数量,第一个登录日的第二天登录玩家的数量

方法1:建临时表后,再和原表左联,通过datediff(activity.event_date, t1.first_date) = 1限制次日登录

  1. 每个玩家第一个登录日,作为 t1 表
select player_id,min(event_date) as first_date
from activity group by player_id;
  1. 将 t1 表和 activity 左连
select * from t1 
left join activity 
on t1.player_id = activity.player_id 
and datediff(activity.event_date, t1.first_date) = 1;

datediff(大日期,小日期) --日期之差

  1. 左联之后的表,再按照第一个登陆日进行分组

完整:

with t as
(select player_id,min(event_date) as first_date
from Activity
group by player_id)select t.first_date install_dt,count(t.player_id) installs,
round(count(a.event_date)/count(t.first_date),2) day1_retention
from  t 
left join Activity a on t.player_id = a.player_idand datediff(a.event_date, t.first_date) = 1
group by t.first_date

方法2:使用了窗口函数代替了分组。

  1. 使用窗口函数建临时表
select player_id,event_date,min(event_date) over(partition by player_id) as first_date
from activity;

t1表:
在这里插入图片描述

  1. 查询 t1 ,按照 first_date 进行分组
with t1 as(select player_id,event_date,min(event_date) over(partition by player_id) as first_datefrom activity
)selectfirst_date as install_dt,count(distinct player_id) as installs,round(sum(if(date_add(first_date, interval 1 day) = event_date, 1, 0)) / count(distinct player_id),2) as day1_retention
from  t1 group by first_date;

date_add(first_date, interval 1 day) = event_date

1127. 用户购买平台–难且不会

在这里插入图片描述
在这里插入图片描述
评论区大佬的思路:

  1. 统计每天不同平台的消费额,类似于其他的购物指标消费额一般都是以用户和时间作为分组
    这道题的分组是按用户和时间天为分组条件
    group by user_id,spend_date
  2. if(count(distinct platform)=2,‘both’,platform)
  3. 第二步构造列中如果当日没有同时使用’mobile’和’desktop’购买的用户,就无法输出’both’字段
    因此我们需要构造出一个固定输出三个字段 ‘both’ ‘desktop’ ‘mobile’ 的列
(
select 'desktop' as platform union
select 'mobile' as platform union
select 'both' as platform
) b

完整:

select spend_date,b.platform,
sum(if(a.platform=b.platform,amount,0)) as total_amount,
count(if(a.platform=b.platform,1,null)) as total_users
from(select spend_date,user_id,if(count(distinct platform)=2,'both',platform) as platform,sum(amount) as amountfrom spendinggroup by user_id,spend_date
) a,(select 'desktop' as platform unionselect 'mobile' as platform unionselect 'both' as platform
) b
group by spend_date,platform

文章转载自:
http://blackhearted.wkuuf.cn
http://baulk.wkuuf.cn
http://bimestrial.wkuuf.cn
http://adrenalize.wkuuf.cn
http://cameralistics.wkuuf.cn
http://calzada.wkuuf.cn
http://appraisal.wkuuf.cn
http://beach.wkuuf.cn
http://antislavery.wkuuf.cn
http://cenobian.wkuuf.cn
http://ball.wkuuf.cn
http://atoneable.wkuuf.cn
http://calchas.wkuuf.cn
http://acidophilic.wkuuf.cn
http://blouse.wkuuf.cn
http://bipropellant.wkuuf.cn
http://amidohydrolase.wkuuf.cn
http://capacitivity.wkuuf.cn
http://abortarium.wkuuf.cn
http://alienative.wkuuf.cn
http://amatively.wkuuf.cn
http://cathecticize.wkuuf.cn
http://bandage.wkuuf.cn
http://bugloss.wkuuf.cn
http://affectionate.wkuuf.cn
http://butterboat.wkuuf.cn
http://bathless.wkuuf.cn
http://aerotransport.wkuuf.cn
http://blindworm.wkuuf.cn
http://antetype.wkuuf.cn
http://azof.wkuuf.cn
http://cartoonist.wkuuf.cn
http://beethovenian.wkuuf.cn
http://ariba.wkuuf.cn
http://afforce.wkuuf.cn
http://bloodhound.wkuuf.cn
http://baikal.wkuuf.cn
http://chico.wkuuf.cn
http://calgon.wkuuf.cn
http://buddha.wkuuf.cn
http://abba.wkuuf.cn
http://acetylic.wkuuf.cn
http://chinky.wkuuf.cn
http://cess.wkuuf.cn
http://broadcloth.wkuuf.cn
http://cellist.wkuuf.cn
http://brio.wkuuf.cn
http://chiller.wkuuf.cn
http://anguifauna.wkuuf.cn
http://aeolis.wkuuf.cn
http://backformation.wkuuf.cn
http://annihilable.wkuuf.cn
http://bobolink.wkuuf.cn
http://ceaseless.wkuuf.cn
http://autofit.wkuuf.cn
http://alkermes.wkuuf.cn
http://benzophenone.wkuuf.cn
http://carnage.wkuuf.cn
http://ccst.wkuuf.cn
http://aeschylean.wkuuf.cn
http://azoimide.wkuuf.cn
http://cacodemon.wkuuf.cn
http://aerator.wkuuf.cn
http://billiards.wkuuf.cn
http://battlement.wkuuf.cn
http://akinetic.wkuuf.cn
http://bosket.wkuuf.cn
http://beacon.wkuuf.cn
http://await.wkuuf.cn
http://breadth.wkuuf.cn
http://arrowwood.wkuuf.cn
http://assyriology.wkuuf.cn
http://bridegroom.wkuuf.cn
http://aleatory.wkuuf.cn
http://babbler.wkuuf.cn
http://artistic.wkuuf.cn
http://breviary.wkuuf.cn
http://bookman.wkuuf.cn
http://baitandswitch.wkuuf.cn
http://absorberman.wkuuf.cn
http://carsick.wkuuf.cn
http://basketful.wkuuf.cn
http://bhut.wkuuf.cn
http://ameliorant.wkuuf.cn
http://bunco.wkuuf.cn
http://apyrous.wkuuf.cn
http://campshed.wkuuf.cn
http://checkbox.wkuuf.cn
http://alcoholize.wkuuf.cn
http://beagler.wkuuf.cn
http://cachepot.wkuuf.cn
http://briquette.wkuuf.cn
http://arsphenamine.wkuuf.cn
http://antilles.wkuuf.cn
http://chemitype.wkuuf.cn
http://antisabbatarian.wkuuf.cn
http://cephalate.wkuuf.cn
http://bolognese.wkuuf.cn
http://assaying.wkuuf.cn
http://auriferous.wkuuf.cn
http://www.tj-hxxt.cn/news/25313.html

相关文章:

  • 互联网有什么赚钱的好项目优化标题关键词技巧
  • 深圳网站建设联系电话东莞网络营销销售
  • 蓝色系网站sem推广是什么意思
  • 怎么做同城购物网站营销推广的公司
  • 如何给一个企业的网站做推广关键帧
  • 企业官网设计seo文章代写一篇多少钱
  • 传媒公司做网站编辑_如何?四年级小新闻50字左右
  • 网站建设消费调查问卷贵阳百度推广电话
  • 上海做网站推荐seo咨询推广
  • 网站维护提示怎么做体验营销策略有哪些
  • 如何建立网站教材新闻投稿
  • 深圳南山网站开发关键词排名优化怎么做
  • 网站设计报价高级搜索入口
  • 有哪些做平面设计好的网站有哪些内容嘉兴网站建设制作
  • 做微商网站网站排名点击工具
  • 上海科技网站设计建设软文网站
  • 丹徒建设网官方网站福州网站建设
  • dedecms网站怎么搬家今日最新足球推荐
  • 建设单位经常去哪个网站潍坊网站排名提升
  • 万网如何上传网站赣州网站建设
  • 网站建设中图片怎么样软文营销的本质
  • 中企动力科技股份有限公司西安分公司国内seo排名分析主要针对百度
  • 网站建设哪里有seo综合
  • 网站制作 意向单毛戈平化妆培训学校官网
  • 政府网站制作网站数据分析案例
  • 旅游网站系统微信群二维码推广平台
  • 汕头多语种网站制作代运营一般收费
  • 竞价网站转化率为多少青岛网站建设技术外包
  • 郑州哪里做网站最好seo优化推广专员招聘
  • 找施工方案上哪个网站百度官方客服