当前位置:网站首页>Data analysis exercises
Data analysis exercises
2022-07-03 08:17:00 【Refuse to put a rotten countdown for 60 days】
SQL piece
One 、 The picture shows the live broadcast form 
(1) Use sql Query that the number of gifts given in the live broadcast room is greater than or equal to 3 User number of .
select DISTINCT(Uid) from dataanalysis GROUP BY Uid having sum(Num)>=3

(2) Use sql Query that the same number of gifts sent by the live broadcasting room is greater than or equal to 2 User number of .
select DISTINCT(Uid) from dataanalysis GROUP BY GiftName having sum(Num)>=2

Two 、 As the code shows , analysis myfunc Function function .
#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 The function is : Will not be 3 The divisible is greater than or equal to 1 Less than or equal to n Integer sum of .
边栏推荐
- Get to know unity2 for the first time
- [cocos creator] get the resource UUID
- [set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
- C course design employee information management system
- LinkList
- MXone Pro自适应2.0影视模板西瓜视频主题苹果cmsV10模板
- P1896 [scoi2005] non aggression (shape pressure DP)
- CLion-Toolchains are not configured Configure Disable profile问题解决
- Abstract classes and interfaces
- Unity2019_ Natural ambient light_ Sky box
猜你喜欢

How to establish rectangular coordinate system in space

一条通往服务器所有端口的隧道

freetype库的移植

KunlunBase MeetUP 等您来!

My touch screen production "brief history" 1

Multi traveling salesman problem -- overview of formula and solution process

Dotween plug-in

matlab神经网络所有传递函数(激活函数)公式详解
![[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)](/img/df/a034032e203e7935dafaf8a71cb6c8.jpg)
[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)

MXone Pro自适应2.0影视模板西瓜视频主题苹果cmsV10模板
随机推荐
Flex flexible box layout
Huawei interview summary during the epidemic
L'installateur a été installé avec une erreur inattendue
go 解析身份证
jupyter远程服务器配置以及服务器开机自启
方正锐利重磅升级到12.0版本,包装印前处理更加便捷、高效!
Map的实现类的顺序性
About Wireshark's unsuccessful installation of npcap
Golang url的编码和解码
Ue5 opencv plug-in use
Basic operation and process control
【更新中】微信小程序学习笔记_3
Ventuz Foundation Series "one step at the door"
Wpf: solve the problem that materialdesign:dialoghost cannot be closed
Unity4.3.1 engine source code compilation process
P2704 [noi2001] artillery position (shape pressure DP)
Unity2019_ Natural ambient light_ Sky box
[USACO12MAR]Cows in a Skyscraper G(状态压缩dp)
swagger文档配置
Retail philosophy retail psychological warfare after reading -- 7-11 is a good product!