注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
. Χ
40 mins totally
brief self-introduction
OA for SQL + R, no other questions
. .и
csv file download here
. ----
you should: ..
ignore missing id if id is missing, covert missing pay as 0, missing churned but pay exist: treat the customer as active
.google и
Task: calculate the average number of days a customer remains active and their average pay for customers who have churned.
. 1point3acres
find top students, select only those students whose average scores are in the top half of all students, rank them by their score. Exclude those students who have never completed an assignment.
Open Mysql and use the code below to try this question by yourself.
-------------------------------
CREATE DATABASE FH;
USE FH;
..
drop table if exists Grades;
drop table if exists Assignments;
drop table if exists Students;. Waral dи,
drop table if exists Teachers;
create table Teachers (
id int primary key,
name varchar(16) not null,
classroom int not null
);. ----
create table Students (. ----
id int primary key,
name varchar(16),. 1point 3 acres
primary_teacher_id int,
FOREIGN 您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 w', 4),
(11, 'Kim', 4);.google и
insert into Assignments values(1, 4), (2, 8);
-baidu 1point3acres
insert into Grades values
(1, 1, 100), (1, 2, 50),
(2, 1, 100), (2, 2, 100),.1point3acres
(3, 1, 40), (3, 2, 8),
(4, 1, 80), (4, 2, 81),
(5, 1, 30), (5, 2, 60),. From 1point 3acres bbs
(6, 2, 90),
(9, 1, 65), (9, 2, 65),
(10, 1, 85);
----------------------------------
. .и
求大米,谢谢!
. 1point 3 acres
.1point3acres
|