当前位置:网站首页>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 .
边栏推荐
- Why can void * be a general pointer
- MAE
- The general trend of data news releases the power of visual reporting ----- essays after reading
- Un système de gestion de centre commercial pour la conception de cours de technologie d'application de base de données
- Pulitzer Prize in the field of information graphics - malofiej Award
- E: 无法定位软件包 ros-melodic-desktop-full
- Open the influence list of "National Meteorological Short Videos (Kwai, Tiktok) in November" in an interactive way“
- Conversion between golang JSON format and structure
- Use of ue5 QRcode plug-in
- KunlunBase MeetUP 等您来!
猜你喜欢

MXone Pro自适应2.0影视模板西瓜视频主题苹果cmsV10模板

animation

Shader foundation 01

Editor Extensions

Abstract classes and interfaces

梯度下降法求解BP神经网络的简单Demo

My touch screen production "brief history" 1

Flex flexible box layout
![[global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel](/img/51/04f5a9dbd03438fbdf25545a81b7ba.jpg)
[global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel

Scite change background color
随机推荐
Transplantation of freetype Library
P2622 light off problem II (state compression search)
Multi traveling salesman problem -- overview of formula and solution process
Are you still watching the weather forecast on TV?
[cocos creator] Click the button to switch the interface
Golang 时间格式整理
I want to do large screen data visualization application feature analysis
What does (+) in Oracle mean
Demonstration of plug-in use of ventuz basic series
Mall management system of database application technology course design
超限黑客认知
Golang time format sorting
Wpf: solve the problem that materialdesign:dialoghost cannot be closed
jupyter远程服务器配置以及服务器开机自启
Solution détaillée de toutes les formules de fonction de transfert (fonction d'activation) du réseau neuronal MATLAB
the installer has encountered an unexpected error installing this package
Golang中删除字符串的最后一个字符
Redis的数据结构
[USACO12MAR]Cows in a Skyscraper G(状态压缩dp)
Minimap plug-in