select TIMESTAMPADD(SQL_TSI_DAY, -30, @{V_date}{date'2013-12-05'}) FROM "A1 Bc Analysis" where "D00 Day More"."Date2" = @{V_yesterday}{date'2013-12-05'}
select TIMESTAMPADD(SQL_TSI_DAY, -30, @{V_date}{date'2013-12-05'}) FROM "A1 Bc Analysis"
SELECT TIMESTAMPADD(SQL_TSI_DAY, -30, "D00 Day"."Date") FROM "A1 Bc Analysis" where "D00 Day More"."Date2" = @{V_date}{date'2013-12-10'}
(case when '@{V_peroid}{onemonth}'='onemonth' then TIMESTAMPADD(SQL_TSI_DAY, -30, @{V_date}{date'2013-12-01'})
when '@{V_peroid}{onemonth}'='twomonth' then TIMESTAMPADD(SQL_TSI_DAY, -60, @{V_date}{date'2013-12-01'}) else TIMESTAMPADD(SQL_TSI_DAY, -10, @{V_date}
{date'2013-12-01'}) end)
"D00 Day"."Date" < @{V_date}{date'2013-12-01'} and "D00 Day"."Date" > TIMESTAMPADD(SQL_TSI_DAY, -30, @{V_date}{date'2013-12-01'})
SELECT TIMESTAMPADD(SQL_TSI_DAY, -30, "D00 Day"."Date") FROM "A1 Bc Analysis" where "D00 Day More"."Date2" = @{V_date}{date'2013-12-10'}
SELECT TIMESTAMPADD(SQL_TSI_DAY, 0, "D00 Day"."Date") FROM "A1 Bc Analysis" where "D00 Day More"."Date2" = @{V_yesterday}{date'2013-12-05'}
Prom Week Peroid
dukang@maxthon.net
maxiaofei@maxthon.net
zhoujianguang@maxthon.net
cloud_data@maxthon.net
One Month
Two Month
Three Month
Six Month
Year
"D00 Day"."Date" < @{V_date}{date'2013-12-01'} and "D00 Day"."Date" >(
case when '@{V_peroid}{One Month}'='One Month' then TIMESTAMPADD(SQL_TSI_DAY, -30, @{V_date}{date'2013-12-01'})
when '@{V_peroid}{One Month}'='Two Month' then TIMESTAMPADD(SQL_TSI_DAY, -60, @{V_date}{date'2013-12-01'})
when '@{V_peroid}{One Month}'='Three Month' then TIMESTAMPADD(SQL_TSI_DAY, -60, @{V_date}{date'2013-12-01'})
when '@{V_peroid}{One Month}'='Six Month' then TIMESTAMPADD(SQL_TSI_DAY, -60, @{V_date}{date'2013-12-01'})
else TIMESTAMPADD(SQL_TSI_DAY, -5, @{V_date}{date'2013-12-01'}) end)
select "D03 Pn"."Pn" from "A1 Bc Analysis" where "D03 Pn"."Platform" = 'win' and "D03 Pn"."Insert From" in (select max("D03 Pn"."Insert From") from "A1 Bc
Analysis" where "D03 Pn"."Platform" = 'win')
Peroid
Week
Month
Three Month
Six Month
Year
1. 有哪些是目前质检体系发现不了的问题(发生过,只是 是没有事先察觉)
2. 哪些是管理层需要了解的但现有质检体系满足不了的
3. 现有的质检体系介绍,哪些规
select * from (
select t.platform as platform,
t.version_id as version_id,
t.version as oversion,
regexp_substr(t.version, '^[[:digit:]\.]') as bigver,
decode(regexp_substr(version, '^[[:digit:]\.]'),4,regexp_substr(version, '^[[:digit:]](\.[[:digit:]]+)+00$'),version) as version
from dim_version t
where regexp_substr(t.version, '^[[:digit:]](\.[[:digit:]]+)+$') is not null
and t.version != 'all'
)
where version is not null
select platform,pn,regexp_substr(t.pn, '^[[:alnum:]](\_)*([[:alnum:]]+)+$') ,pn_id from dim_pn t
select platform,
pn,
pn_id
from dim_pn t
where regexp_substr(t.pn, '^[[:alnum:]]*_*[[:alnum:]]*$') is not null and t.pn !='all'
select
distinct platform,regexp_extract(version,'^([1-4])\.',1), version
from
rc_pt
where
1=1
and accessDay >= '20130704'
and accessDay <= '20130704'
and datatype='first'
and product='online'
and platform in('anphone','win','anpad','')
and length(deviceid)=40
and regexp_extract(version,'^[1-4](\.)',1) != '.'
and version not rlike '(^[1-3]\.[0-9]+(\.[0-9]+){0,2}$)|(^4\.[0-9]{1,2}\.[0-9]{1,3}\.[1-9]{1,2}0?00$)';
select
distinct platform,regexp_extract(version,'^([1-4])\.',1), version
from
rc_pt
where
1=1
and accessDay >= '20130704'
and accessDay <= '20130704'
and datatype='first'
and product='online'
and platform in('win','mac','iphone','ipad','anpad','anphone')
and regexp_extract(version,'^[1-4](\.)',1) = '.'
and version rlike '(^[1-3]\.[0-9]+(\.[0-9]+){0,2}$)|(^4\.[0-9]{1,2}\.[0-9]{1,3}(\.[1-9]{1,2}0?00)?$)';
and length(deviceid)=40;
select
distinct platform,regexp_extract(version,'^([1-4])\.',1), version
from
rc_pt
where
1=1
and accessDay >= '20130704'
and accessDay <= '20130704'
and datatype='first'
and product='online'
and platform in('win','mac','iphone','ipad','anpad','anphone')
and version rlike '(^4\.[0-9]{1,2}\.[0-9]{1,2})|(^4\.[0-9]{1,2}\.[0-9]{1,2}\.[1-9]0?00$)'
and length(deviceid)=40;
select
distinct platform,regexp_extract(version,'^([1-4])\.',1), version
from
rc_pt
where
1=1
and accessDay >= '20130704'
and accessDay <= '20130704'
and datatype='first'
and product='online'
and platform in('win','mac','iphone','ipad','anpad','anphone')
and version REGEXP '^4(\.[0-9]{1,2}){1,2}(\.[1-9]{1,2}0?00$)?'
and length(deviceid)=40;
(^[1-3]\.[0-9]+(\.[0-9]+){0,2}$)|(^4\.[0-9]{1,2}\.[0-9]{1,3}(\.[1-9]{1,2}0?00$)?)
select
distinct platform,regexp_extract(version,'^([1-4])\.',1), version
from
rc_pt
where
1=1
and accessDay >= '20130704'
and accessDay <= '20130704'
and datatype='first'
and product='online'
and platform in('anphone')
and length(deviceid)=40
and version rlike '^[1-3](\.[0-9]+)+$';
(?(exp)yes|no)
^[1-9a-z]*_*[1-9a-z]*$
select
distinct platform,(case when platform='anphone' and (substr(pn,1,1)='1' or substr(pn,1,1)='2') then 'user-defined' else pn end) as pn
from
rc_pt
where
1=1
and accessDay >= '20130704'
and accessDay <= '20130704'
and datatype='oc'
and product='online'
and platform in('win','mac','iphone','ipad','anpad','anphone')
and length(deviceid)=40
and pn rlike '^[a-zA-Z0-9_]+$';
分享到:
相关推荐
给测试新人提供的简单的sql语句,一般都能用的上
创建数据库连接需要用到的SqlServer jar包
包含myemployees.sql、job_grades.sql、girl.sql三个sql文件,可直接导入数据库练习。
SQLQuery课堂用到笔记.sql
asp.net中常用到的SQL分页存储过程
04735数据库系统原理思维导图及用到的SQL语句
zabbix-sql, 有用的Zabbix SQL查询 Zabbix SQL repo这个 repo 包含一些Zabbix数据库的有用查询,主要用于清除旧的和/或者孤立的数据。重要说明:使用情况孤立数据旧数据集未使用的数据停止电子邮件泛滥LLD触发器重要...
sqlserver 快速查询存储过程或者视图中是否用到某个表或者字段。
綜合介紹了能用到的SQL语句的优化,主要是加快數據的查詢速度,機器性能的提高
MFC编写的图书管理系统,用到数据库MYSQL,实现的是一个图书管理的系统
pb12.5连接sqlserver2008应用不安装开发环境所需dll(pb+sqlserver) 在客户端不需安装pb12.5及sqlserver2008就可运行所开发的应用...压缩包里包含了 pb12.5用到的dll sqlserver2008要用的dll 启动sqlserver browse方法
SQL Prompt插件, 支持SQL2019+SSMS18.5,仅用于学习研究. 不得用于商业用处!
这些sql语句,足够你用了! 包括了基本所需的所有sql语句描述!
SQL经典语句集,包含了很多SQL中常用到的比较经典的语句。很适合初级中级程序员使用。
sql学习 索引取舍控制_删除系统从未用到的索引.sql
学习mycat所用到的一些sql语句
SQL掌用实例大收集包括了一些经常用到的sql操作
连接ms sql2000用到的三个jar包
MySQL,DB2,Oracle,SqlServer连接数据库用到的jar
SqlServer 2005数据库连接的代码和用到的jar包。