首页 >

Oracle分析函数

数据库|mysql教程Oracle分析函数
Oracle函数,Oracle分析函数,数据库,Oracle
数据库-mysql教程
游戏源码制作,平板可以运行vscode吗,ubuntu翻墙ssr,tomcat调整并发数,爬虫箱超大,php5教程 pdf,温州seo核心词优化厂家,内容付费可见的网站,投票网页模板 htmllzw
再讲讲所谓的开窗函数,依本人遇见,开窗函数就是 over([query_partition_clase] order_by_clause)。比如说,我采用sum求和,ran
wordpress .net源码,vscode被删除,安装了ubuntu后win10不见了,tomcat jar缓存,sqlite建表出错,jquery 3d全景 插件,前端页面自我介绍框架,厨房缝隙黑色爬虫极小,linux php5.4,seo站点优化,简单干净的网站,网页图片无损压缩,水果销售网站模板免费下载lzw
虚拟资源网虚拟货源网源码,ubuntu没有执行权,python爬虫画玫瑰,249 php,神马seo软件lzw

本文讲述Oracle分析函数用法,,首先建库:

create table earnings — 打工赚钱表
(
earnmonth varchar2(6), — 打工月份
area varchar2(20), — 打工地区
sno varchar2(10), — 打工者编号
sname varchar2(20), — 打工者姓名
times int, — 本月打工次数
singleincome number(10,2), — 每次赚多少钱
personincome number(10,2) — 当月总收入
)

然后插入实验数据:

insert into earnings values(‘200912′,’北平’,’511601′,’大魁’,11,30,11*30);
insert into earnings values(‘200912′,’北平’,’511602′,’大凯’,8,25,8*25);
insert into earnings values(‘200912′,’北平’,’511603′,’小东’,30,6.25,30*6.25);
insert into earnings values(‘200912′,’北平’,’511604′,’大亮’,16,8.25,16*8.25);
insert into earnings values(‘200912′,’北平’,’511605′,’贱敬’,30,11,30*11);

insert into earnings values(‘200912′,’金陵’,’511301′,’小玉’,15,12.25,15*12.25);
insert into earnings values(‘200912′,’金陵’,’511302′,’小凡’,27,16.67,27*16.67);
insert into earnings values(‘200912′,’金陵’,’511303′,’小妮’,7,33.33,7*33.33);
insert into earnings values(‘200912′,’金陵’,’511304′,’小俐’,0,18,0);
insert into earnings values(‘200912′,’金陵’,’511305′,’雪儿’,11,9.88,11*9.88);

insert into earnings values(‘201001′,’北平’,’511601′,’大魁’,0,30,0);
insert into earnings values(‘201001′,’北平’,’511602′,’大凯’,14,25,14*25);
insert into earnings values(‘201001′,’北平’,’511603′,’小东’,19,6.25,19*6.25);
insert into earnings values(‘201001′,’北平’,’511604′,’大亮’,7,8.25,7*8.25);
insert into earnings values(‘201001′,’北平’,’511605′,’贱敬’,21,11,21*11);

insert into earnings values(‘201001′,’金陵’,’511301′,’小玉’,6,12.25,6*12.25);
insert into earnings values(‘201001′,’金陵’,’511302′,’小凡’,17,16.67,17*16.67);
insert into earnings values(‘201001′,’金陵’,’511303′,’小妮’,27,33.33,27*33.33);
insert into earnings values(‘201001′,’金陵’,’511304′,’小俐’,16,18,16*18);
insert into earnings values(‘201001′,’金陵’,’511305′,’雪儿’,11,9.88,11*9.88);

然后看看刚刚建好的库:

select * from earnings;

Oracle分析函数


Oracle分析函数
  • Oracle窗口函数基础知识学习
  • Oracle窗口函数基础知识学习 | Oracle窗口函数基础知识学习 ...

    Oracle分析函数
  • 循序渐进学Oracle之函数(重点)
  • 循序渐进学Oracle之函数(重点) | 循序渐进学Oracle之函数(重点) ...

    Oracle分析函数
  • Oracle Decode函数详解
  • Oracle Decode函数详解 | Oracle Decode函数详解 ...