最后一次可以max来取如果max取不到可以用row_number写法selecta.spid,a.spbh,a.spmch,a.shpgg,a.dw,a.shpchd,a.jixing,count(b.spid)astiaosh,
sum(b.chkshl)asshl,sum(casewhenb.bm=‘终端部‘thenb.chkshlelse0end)as‘终端销量‘,sum(casewhenb.bm=‘医院部‘thenb.chkshlelse0end..
分类:
其他好文 时间:
2015-01-27 18:40:32
阅读次数:
156
uva 639 Don't Get Rooked
In chess, the rook is a piece that can move any number of squares vertically or horizontally. In this problem we will consider small chess boards (at most 44)
tha...
分类:
其他好文 时间:
2015-01-27 18:36:48
阅读次数:
195
The information below comes from a number of sources, including my own experiments with the Android IPC and some disparate internet sources.
The overall architecture of the Android IPC system is sh...
分类:
其他好文 时间:
2015-01-27 18:32:24
阅读次数:
217
题目:The string "PAYPALISHIRING" is written
in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S...
分类:
其他好文 时间:
2015-01-27 18:26:07
阅读次数:
184
序列
select * from user_sequences
select last_number from user_sequences where sequence_name='T_JGXX_POLY_SEQ';
alter sequence T_JGXX_POLY_SEQ increment by 1;
SELECT T_JGXX_POLY_SEQ.NEXTVAL FROM DUAL;...
分类:
数据库 时间:
2015-01-27 18:24:39
阅读次数:
171
【题目】
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where
the candidate numbers sums to T.
The same repeated number may be chosen from C unli...
分类:
其他好文 时间:
2015-01-27 18:23:32
阅读次数:
194
【题目】
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where
the candidate numbers sums to T.
Each number in C may only be used once in t...
分类:
其他好文 时间:
2015-01-27 18:21:00
阅读次数:
180
include/command.h:struct cmd_tbl_s { char *name; /* Command Name */ int maxargs; /* maximum number of arguments 最大参数个数*/ int repeatable; ...
分类:
其他好文 时间:
2015-01-27 17:40:48
阅读次数:
217
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have
exact...
分类:
其他好文 时间:
2015-01-27 16:30:06
阅读次数:
121
题目:The string "PAYPALISHIRING" is written
in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S...
分类:
其他好文 时间:
2015-01-27 16:26:55
阅读次数:
172