自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 my sql 总结

1.求累加写出一个sql语句查询刷题信息,包括: 用户的id,以及截止到某天,累计总共通过了多少题第一种方法,利用子查询表示累加字段:select p1.user_id,p1.date, (select sum(p2.number) from passing_number as p2 where p1.user_id=p2.user_id and p1.date>=p2.date) as ps_numfrom passing_number as p1第二种方

2021-04-08 17:35:07 101

原创 my sql 重点积累

1.题目描述按照salary的累计和running_total,其中running_total为前N个当前( to_date = ‘9999-01-01’)员工的salary累计和,其他以此类推。 具体结果如下Demo展示。。CREATE TABLE `salaries` ( `emp_no` int(11) NOT NULL,`salary` int(11) NOT NULL,`from_date` date NOT NULL,`to_date` date NOT NULL,PRIMARY KE

2021-03-31 18:02:12 246

原创 my sql 成绩查询面试题集锦(一)

系统表格设置如下:1.用一条SQL 语句 查询出每门课都大于80 分的学生姓名select a.s_id as s_id,a.s_name as s_name,b.c_id as c_id,b.scores as score from test.student as a,test.score as bwhere a.s_id=b.s_idand a.s_id not in (select distinct test.score.s_id as s_id from test.scorewher

2020-12-23 17:45:40 1851

原创 Mysql 踩坑,修改信息报错Error Code: 1175. You are using safe update mode and you tried to update a table with

背景:想修改成绩表中的一个成绩完整报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.网查解决方案:MySQL方法/步骤1在使用mysq

2020-12-23 11:36:58 391

原创 维度建模四步骤

一、选择业务过程二、声明粒度三、确认维度四、确认事实

2020-09-14 17:39:17 2084

原创 数据仓库——架构

1.你们公司数据仓库的数据哪来的会去到哪里?数据来源:前段埋点的用户行为数据,如日志采集系统;后台的MySQL业务数据;数据去向:报表系统,另根据实际补充用户画像、推荐系统等;三问:1.原始数据在哪?2.需要数仓做什么?3.数据去哪?...

2020-08-31 17:52:33 116 1

原创 python之数据分析函数及单词汇总积累之字符串常用功能和格式化字符:数字格式化的那些坑

字符串常用功能st = “i`m handsome!”st2 = st.replace(‘handsome’,‘ugly’)st = ‘hahaha’st2 = st.replace(‘ha’,‘he’,2)str.replace(old,new,count):修改字符串,count:更换几个st = “poi01,116.446238,39.940166”lst = st.split(’,’)str.split(obj):拆分字符串,生成列表lst = [‘poi01’, ‘116.44

2020-08-06 17:52:10 177

原创 连接之后有重合列的表格不能作为子查询

题目背景:找出数学成绩排名前五的学生姓名select *, rank() over(partition by sc.c_id order by sc.scores desc) as ranking from test.score as sc inner join test.course as c on sc.c_id=c.c_id and c.c_name="数学"上面代码执行正常没问题,可做为子查询,下面的代码执行就报错 select a.s_id fro

2020-07-15 15:42:04 144

原创 如何解决 mysql 查询结果只显示1000条信息

如何解决 mysql 查询结果只显示1000条信息技术上的操作太繁琐,后面再研究,最快方法select * from table limit;select * from table limit 0,30000;原文链接:https://blog.csdn.net/qq_33323054/article/details/80235838?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1

2020-07-03 16:16:26 5015

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除