当前位置:网站首页>数据分析练习题
数据分析练习题
2022-07-03 08:13:00 【拒绝摆烂倒计时60天】
SQL篇
一、如图为直播表格
(1)使用sql查询直播间送礼数大于等于3的用户编号。
select DISTINCT(Uid) from dataanalysis GROUP BY Uid having sum(Num)>=3

(2)使用sql查询直播间送相同礼数大于等于2的用户编号。
select DISTINCT(Uid) from dataanalysis GROUP BY GiftName having sum(Num)>=2

二、如代码所示,分析myfunc函数的作用。
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int myfunc(int n){
int i=0;
int x=0;
while(i<n){
i+=1;
if(i%3==0)
continue;
x+=i;
printf("%d\n",x);
}
return x;
}
int main(){
int t=myfunc(6);
printf("%d",t);
return 0;
}
myfunc5函数的作用为:将不被3整除的大于等于1小于等于n的整数加和。
边栏推荐
- Abstract classes and interfaces
- Wechat native applet cloud development learning record 01
- Easy touch plug-in
- JSON与Object之间转换
- Flex flexible box layout
- How to clear the console password for s7700 device
- Editor Extensions
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
- 使用 FileChannel 进行文件的复制拷贝
- Huawei switch basic configuration (telnet/ssh login)
猜你喜欢

Iterm2 setting

Base64和Base64URL

An intern's journey to cnosdb

oracle 插入单引号

Haproxy+kept cluster setup 02

CLion-Toolchains are not configured Configure Disable profile问题解决

璞华PLM为全场景产品生命周期管理赋能,助力产品主线的企业数字化转型

A tunnel to all ports of the server

IP production stream is so close to me

Getting started with minicom
随机推荐
Maxcompute string splitting function -split_ PART
How to configure GDAL under idea
How to clear the console password for s7700 device
Conversion between JSON and object
An intern's journey to cnosdb
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
E: 无法定位软件包 ros-melodic-desktop-full
register关键字
WorldView卫星遥感影像数据/米级分辨率遥感影像
Abstract classes and interfaces
JSON与Object之间转换
Client server model
jsutlis
Multi traveling salesman problem -- overview of formula and solution process
Quality blog——
L'installateur a été installé avec une erreur inattendue
Ventuz Foundation Series "one step at the door"
YOLO系列 --- xml2txt脚本
Compilation error: "not in executable format: file format not recognized"“
How does yarn link help developers debug NPM packages?