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语句。 1. **SELECT语句**:这是最基础的查询语句,用于从数据库中检索数据。例如,`SELECT * FROM 表名` 可以获取表中的所有数据。如果只想获取特定列,可以指定列名,如 `...
【标题】"用到的SQL文件.zip"是一个包含多个SQL脚本的压缩包,主要用于MySQL数据库的学习和实践操作。这个压缩包提供了三个重要的SQL文件,分别是`myemployees.sql`、`job_grades.sql`和`girl.sql`。这些文件旨在...
这里提到的"创建数据库连接需要用到的SQL Server jar包"正是实现这一目标的关键。 SQL Server是由Microsoft公司开发的关系型数据库管理系统,广泛应用于企业级数据存储和管理。为了在Java环境中与SQL Server建立...
SQLQuery课堂用到笔记.sql
例如,添加新书时,可能需要用到INSERT INTO语句;查询书籍时,可以使用SELECT语句配合WHERE子句实现条件查询。 在图书管理系统中,SQL的运用至关重要。SQL(Structured Query Language)是一种标准化的语言,用于...
zabbix-sql, 有用的Zabbix SQL查询 Zabbix SQL repo这个 repo 包含一些Zabbix数据库的有用查询,主要用于清除旧的和/或者孤立的数据。重要说明:使用情况孤立数据旧数据集未使用的数据停止电子邮件泛滥LLD触发器重要...
这个名为"04735数据库系统原理思维导图及用到的SQL语句"的压缩包文件包含了对这一主题的两种不同展示方式:思维导图和SQL语句示例。 首先,我们来看“数据库系统原理.sql”。这是一个包含SQL语句的文件,可能包含了...
sqlserver 快速查询存储过程或者视图中是否用到某个表或者字段。
【SQL语句优化】在IT领域,SQL语句的优化对于提升数据库查询效率至关重要,特别是对于处理大量数据的系统。本文主要关注Oracle数据库中的SQL优化技巧。 首先,我们来看操作符优化。`IN`操作符虽然使代码更易读,但...
### ASP.NET中常用的SQL分页存储过程解析 在ASP.NET应用程序开发过程中,为了提高数据处理效率及用户体验,分页查询是必不可少的一项技术。通过合理的分页处理,不仅可以减少服务器资源的消耗,还能加快数据响应...
pb12.5连接sqlserver2008应用不安装开发环境所需dll(pb+sqlserver) 在客户端不需安装pb12.5及sqlserver2008就可运行所开发的应用...压缩包里包含了 pb12.5用到的dll sqlserver2008要用的dll 启动sqlserver browse方法
MySQL binlog2sql数据恢复用到的包。
当需要在两者之间进行数据迁移时,就需要用到专门的转换工具。标题提到的“mysql转化成sql server”和“sql转化成mysql工具”就是解决这个问题的关键。 首先,我们来讨论MySQL到SQL Server的转换。MySQL是一种开源...
4. **布尔逻辑与条件判断**:`AND`、`OR`、`CASE`等布尔逻辑关键字及条件判断语句在SQL注入中经常被用到。它们可以帮助攻击者构造更为精确的SQL查询。 5. **SQL注释与转义**:利用SQL注释(`--+`, `/*`, `#`)以及转义...
在实践中,我们经常会用到SQL的条件查询,如WHERE子句,可以过滤满足特定条件的记录。例如,`SELECT * FROM Customers WHERE Country='USA'`将返回所有来自美国的客户。更复杂的查询可以通过使用AND、OR、NOT等逻辑...
SQL语句汇总 SQL语句是数据库管理系统中使用的语言,用于管理关系数据库管理系统(RDBMS)。本文将对常用的SQL语句进行汇总,涵盖select、count、avg、sum、max、min等多种语句。 SELECT语句 SELECT语句用于从...
在检查SQL语法时,可能需要用到一些字符串处理或者异常处理的工具类,这个库就能提供这些功能。 要使用ANTLR来检查SQL语法,首先需要创建一个SQL语法规则文件(通常为.g或.gram文件),定义SQL语句的结构。然后,...
SQL经典语句集,包含了很多SQL中常用到的比较经典的语句。很适合初级中级程序员使用。
在"sql的一些源码"中,可能包含了如何使用子查询进行数据检索的示例。 1. **子查询在SELECT子句中的应用**:在SELECT语句中,子查询可以返回一个值或一系列值,这些值可以被外部查询用来计算或比较。例如,找出销售...
Java JDK 1.8 连接SQL Server数据库时,需要用到特定的驱动程序,这个驱动程序通常以JAR包的形式提供。在本例中,我们关注的JAR包是`sqljdbc42.jar`,它是微软官方提供的SQL Server JDBC驱动的一个版本,特别针对JDK...