一些子查询select empno, ename from emp where mgr in(select empno from emp where job='MANAGER');select * from dept where deptno not in (select distinct dept...
分类:
数据库 时间:
2014-11-27 12:43:05
阅读次数:
268
一些子查询select empno, ename from emp where mgr in(select empno from emp where job='MANAGER');select * from dept where deptno not in (select distinct dept...
分类:
数据库 时间:
2014-11-27 12:18:58
阅读次数:
125
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.Solution:The same as N-Quee...
分类:
其他好文 时间:
2014-11-26 23:56:59
阅读次数:
250
看来看一下表中的数据select * from t; 下一步来看一下group_concat函数的用法select ID,group_concat(Name) from t group by ID; 如果要消除重复项可以加distinct select ID,gro...
分类:
数据库 时间:
2014-11-26 18:08:50
阅读次数:
184
很明显的2 pointer问题。。。当满足条件的时候后面的指针加,不满足条件的时候前面的指针加,直到满足条件。。。class Solution {public: int lengthOfLongestSubstringTwoDistinct(string s) { int sta...
分类:
其他好文 时间:
2014-11-26 16:10:45
阅读次数:
336
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-11-26 14:01:07
阅读次数:
165
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th...
分类:
其他好文 时间:
2014-11-26 13:37:24
阅读次数:
123
任务目标:目标一:每名学生被多少位老师教过方法一:先DISTINCT,在计数-DISTINCT能偶对所有数据去重方法二:先分组-FOREACH嵌套-使用DISTINCT首先创建一份数据源文件[hadoop@hadoop1~]$catscore.txt
James,Network,Tiger,100
James,Database,Tiger,99
James,PDE,Yao,95
Vincent,Ne..
分类:
其他好文 时间:
2014-11-26 06:49:24
阅读次数:
201
1、根据表别名方式distinct去重插入insert into GG_XKZ_YLQXSCXKESL_SCDZ ( bzj, xkzid, sqid, jtdz, szsf, szqx, szjd, lxdh, yb, instnum, lastdate, datexc) select SYS_G...
分类:
其他好文 时间:
2014-11-24 17:05:14
阅读次数:
186
1.查询某个表被哪些存储过程(以下简称 SP)使用到:select distinct object_name(id) from syscomments where id in(select id from sysobjects where type ='P') and text like'%Tabl...
分类:
数据库 时间:
2014-11-24 16:46:04
阅读次数:
135