1.select sum(CASE WHEN A.[STATUS]=0 THEN 1 ELSE
0 end) as a1,sum(CASE A.[STATUS] WHEN 1 THEN 1 ELSE 0 end) as a2,sum(CASE
A.[STATUS] WHEN 2 THEN 1 ELS...
分类:
数据库 时间:
2014-06-04 21:10:46
阅读次数:
513
You are climbing a stair case. It takesnsteps
to reach to the top.Each time you can either climb 1 or 2 steps. In how many
distinct ways can you climb...
分类:
其他好文 时间:
2014-06-04 19:53:34
阅读次数:
173
Given an array of strings, return all groups of
strings that are anagrams.Note: All inputs will be in
lower-case.classSolution{public:vectoranagrams(v...
分类:
其他好文 时间:
2014-06-04 19:29:39
阅读次数:
247
一、案例分析Oracle Report Builder
因落伍的技术和糟糕的交互性,特别是无法随心所欲的进行排版,逐渐被淘汰,而BI(XML) Publisher 也是其中的一种替代技术,
此文介绍了如何将Report Builder建立的RDF文件转换成最新的XML Publisher所使用的xm...
分类:
其他好文 时间:
2014-06-04 18:40:23
阅读次数:
254
一. 汇总 1. 建立rdf报表 2. 开发rtf模板 3. 建立可执行程式 4.
建立并发程式 5. 注册data defination 6. 注册template 7. 运行程式 8.
开发程式中间,需将输出模式修改为xml,产生xml文件,以做rtf开发准备原始数据二、分步解析1. 建立rdf...
分类:
其他好文 时间:
2014-06-03 13:55:15
阅读次数:
288
mysql 语句case whenselect USER_ID ,USER_NAME
,CASE WHEN atten.DESTINATION_ID is null THEN FALSE ELSE TRUE END as attentioned
from T_SD_USER as user...
分类:
数据库 时间:
2014-05-31 11:38:49
阅读次数:
313
快排,从小到大排序 1 void quicksort(int a[],int low,int
high) 2 { 3 int i=low; 4 int j=high; 5 int temp=a[i]; 6
if(i=temp&&i<j) j--; ...
分类:
其他好文 时间:
2014-05-30 08:03:25
阅读次数:
268
本文希望通过简单的总结,把常用的查询方法予以总结,希望能够明确在心主要涵盖:模糊查询、排序、分组、集合函数、TOP、Case包括:Between、In、Like、And、Or、Order
by包括:Group by、Distinct、MAX\MIN、Avg、Count、Sum、Having、Top、...
分类:
数据库 时间:
2014-05-29 23:13:46
阅读次数:
456
tarjan,叙叙旧咯#include#define maxn 50005int
e[maxn],ne[maxn],be[maxn],all;int DFN[maxn],LOW[maxn],stack[maxn],curr,stak;bool
instack[maxn];int num,belong...
分类:
其他好文 时间:
2014-05-29 23:09:39
阅读次数:
219
string sqlStr = "update sys_case t set t.content
=:CONTENT,t.property=:PROPERTY where id=:ID"; OracleParameter[] parameterValue =
{ ...
分类:
数据库 时间:
2014-05-29 12:18:04
阅读次数:
283