码迷,mamicode.com
首页 >  
搜索关键字:distinct    ( 3361个结果
LeetCode--Subsets
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For exa...
分类:其他好文   时间:2015-01-13 10:35:09    阅读次数:181
LeetCode--Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 递推公式T(n) = T(n-1) + T(n-2); ...
分类:其他好文   时间:2015-01-12 17:39:19    阅读次数:227
07 高级分组
select /*+ gather_plan_statistics */ distinct dname, decode( d.deptno, 10, (select count(*) from scott.emp where deptno = 10), 20, (select count...
分类:其他好文   时间:2015-01-12 16:26:33    阅读次数:153
Rebuild Index
SELECT TableID=(SELECT distinct so.name FROM sys.objects so INNER JOIN sys.indexes ON so.object_id = si.object_id),si.name as Indexname ,convert(decim...
分类:其他好文   时间:2015-01-12 16:09:22    阅读次数:140
POJ 3687-Labeling Balls(逆序拓扑排序)
Labeling Balls Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 11256   Accepted: 3230 Description Windy has N balls of distinct weights from 1 unit to N un...
分类:编程语言   时间:2015-01-12 09:26:20    阅读次数:266
SQL(2)—增删改查2
简单查询:一、投影select * from 表名select 列1,列2... from 表名select distinct 列名 from 表名二、筛选select top 数字 列|* from 表名(一)等值与不等值select * from 表名 where 列名=值select * fr...
分类:数据库   时间:2015-01-11 08:29:21    阅读次数:158
SQL数据库的查询方法
简单查询:一、投影select * from 表名 select 列1,列2... from 表名 select distinct 列名 from 表名二、筛选select top 数字 列|* from 表名 (一)等值与不等值 select * from 表名 where 列名=值 select...
分类:数据库   时间:2015-01-10 23:33:35    阅读次数:279
数据库的查询方法
简单查询:一、投影select * from 表名select 列1,列2... from 表名select distinct 列名 from 表名二、筛选select top 数字 列|* from 表名(一)等值与不等值select * from 表名 where 列名=值select * fr...
分类:数据库   时间:2015-01-10 19:41:59    阅读次数:246
SQL:1999基本语法(学习笔记)
SQL:1999基本语法SELECT [DISTINCT] * | 列名称 [AS]别名,........FROM 表名称1 [别名1][CROSS JOIN表名称2 别名2]|[NATURAL JOIN表名称2 别名2][ JOIN表名称2 别名2 USING (关联列名称)][ JOIN表名称2...
分类:数据库   时间:2015-01-10 06:37:14    阅读次数:196
多表查询(学习笔记)
语法:SELECT [DISTINCT] * | 列名称 [AS]别名,........FROM 表名称1 [别名1],表名称2 [别名2],...[WHERE 条件(s)][ORDER BY 排序的字段 1,ASC| DESC,排序的字段2 ASC| DESC,....] 示例一 查询所有员工的信...
分类:其他好文   时间:2015-01-10 01:05:07    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!