当前位置:网站首页>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 .
边栏推荐
- Conversion between string and int types in golang
- matlab神经网络所有传递函数(激活函数)公式详解
- C course design employee information management system
- One dimensional array two dimensional array (sort Max insert sort)
- C#课程设计之员工信息管理系统
- Three characteristics
- Idea unreference Display Effect
- Base64编码简介
- Open the influence list of "National Meteorological Short Videos (Kwai, Tiktok) in November" in an interactive way“
- Classes and objects
猜你喜欢
Mall management system of database application technology course design
Student educational administration management system of C # curriculum design
Oracle insert single quotation mark
Dotween plug-in
matlab神經網絡所有傳遞函數(激活函數)公式詳解
梯度下降法求解BP神经网络的简单Demo
Ue5 opencv plug-in use
animation
[cocos creator] Click the button to switch the interface
Unity4.3.1 engine source code compilation process
随机推荐
Free use until 2015 -- viz artist multi touch plug-in package
Haproxy+kept cluster setup 02
Golang中删除字符串的最后一个字符
Basic operation and process control 2
Unity performance optimization
[end of 2021] National Meteorological Short Video (Kwai, Tiktok) influence list in December
Unity one click AssetBundle
Solution détaillée de toutes les formules de fonction de transfert (fonction d'activation) du réseau neuronal MATLAB
Product creation and commercial realization of chat robot (according to La Ma Bang - Dr. Wang Jingjing - speech)
L'installateur a été installé avec une erreur inattendue
[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)
Conversion between JSON and object
jupyter远程服务器配置以及服务器开机自启
Haproxy+kept build 01
Transplantation of tslib Library
Golang json格式和结构体相互转换
Minimap plug-in
KunlunBase MeetUP 等您来!
IP production stream is so close to me
Golang 字符串分割,替换和截取