Memoryizz

上一页 1 ··· 4 5 6 7 8 9 10 下一页

2018年11月1日

rownumber 排序 通过delete 直接删除重复数据

摘要: delete cnei45 from( Select Row_Number() Over(Partition by cost Order By cost asc ) As RowNumber , * from cnei45 ) cnei45 where cnei45.RowNumber >1 阅读全文

posted @ 2018-11-01 20:14 Memoryizz 阅读(707) 评论(0) 推荐(0)

2018年9月13日

day 23 索引

摘要: -- 创建唯一聚集索引 create unique clustered --表示创建唯一聚集索引 index UQ_Clu_StuNo --索引名称 on Student(S_StuNo) --数据表名称(建立索引的列名) with ( pad_index=on, --表示使用填充 fillfact 阅读全文

posted @ 2018-09-13 16:07 Memoryizz 阅读(134) 评论(0) 推荐(0)

2018年9月1日

day 22 全量更新

摘要: --全量更新create table pdata.dbo.customer(name varchar(255) ,type varchar(255) ,type_no varchar(255) ,address varchar(255) ,tel varchar(255) ) insert into 阅读全文

posted @ 2018-09-01 16:47 Memoryizz 阅读(111) 评论(0) 推荐(0)

2018年8月31日

day 21 求贫困户

摘要: create table sdata.dbo. t_access_times(username varchar(255),month varchar(255),salary int)insert into sdata.dbo.t_access_times values ('A','2016-01', 阅读全文

posted @ 2018-08-31 23:17 Memoryizz 阅读(96) 评论(0) 推荐(0)

2018年8月30日

day20 函数,同比,和基础

摘要: create table sdata.dbo.onetest( Order_Source_Name varchar(255),Plant_Location_Number varchar(255),Plant_Location_Name varchar(255),Booked_Date varchar 阅读全文

posted @ 2018-08-30 17:06 Memoryizz 阅读(112) 评论(0) 推荐(0)

2018年8月23日

知识点记录

摘要: 求10月在哪个季度 select CEILING(convert(real,10)/3) REPLACE 下例用 xxx 替换 abcdefghi 中的字符串 cde。 SELECT REPLACE(''abcdefghicde'',''cde'',''xxx'')GO下面是结果集: abxxxfg 阅读全文

posted @ 2018-08-23 20:18 Memoryizz 阅读(91) 评论(0) 推荐(0)

day 20试题

摘要: --根据EMP_ID求bug最多的--select EMP_ID,COUNT(1) bug_count,convert(varchar(7),DATE_FOUND,120) month_buginto sdata.dbo.emp_idbioafrom sdata.dbo.ERD_BUG awhere 阅读全文

posted @ 2018-08-23 17:02 Memoryizz 阅读(79) 评论(0) 推荐(0)

2018年8月21日

day 16面试题

摘要: 查询出没门课程都大于80的学生的姓名 select name from table group by name having MIN(fenshu)>80 编号自增:identity(1,1) 删除除了编号以后,其他信息相同的信息自动编号 学号 姓名 课程名称 分数1 200 张三 数学 892 2 阅读全文

posted @ 2018-08-21 20:46 Memoryizz 阅读(124) 评论(0) 推荐(0)

2018年8月19日

day 13拉链数据做存储

摘要: delete from sdata.dbo.mo_money insert into sdata.dbo.mo_money values ('mo','1000','2018-06-08') insert into sdata.dbo.mo_money values ('mo','12000','2 阅读全文

posted @ 2018-08-19 19:30 Memoryizz 阅读(170) 评论(0) 推荐(0)

day 13 拉链数据批量处理

摘要: delete from sdata.dbo.mo_moneyinsert into sdata.dbo.mo_moneyvalues('make','3000','2018-06-12')insert into sdata.dbo.mo_moneyvalues('alex','400','2018- 阅读全文

posted @ 2018-08-19 19:24 Memoryizz 阅读(132) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 下一页

导航