cognos 年累计 同比年累计 DB2保存小数位2位
2013-07-03 16:26
274 查看
月末如 2008-01-31
#prompt('p_month','string')#
年累计
d_date between substr(#prompt('p_month','string')#,1,5)||'01-01' and #prompt('p_month','string')#
当月数据
a.d_date between substr(#prompt('p_month','string')#,1,8)||'01' and #prompt('p_month','string')#
同比年累计
date( substr(#prompt('p_month','string')#,1,5)||'01-01')-1 year and date(#prompt('p_month','string')#)-1 year
DB2保存小数位2位
cast( ROUND( DECIMAL( 12345, 20, 2)/100000000.00, 2) as decimal(13,2) )
#prompt('p_month','string')#
年累计
d_date between substr(#prompt('p_month','string')#,1,5)||'01-01' and #prompt('p_month','string')#
当月数据
a.d_date between substr(#prompt('p_month','string')#,1,8)||'01' and #prompt('p_month','string')#
同比年累计
date( substr(#prompt('p_month','string')#,1,5)||'01-01')-1 year and date(#prompt('p_month','string')#)-1 year
DB2保存小数位2位
cast( ROUND( DECIMAL( 12345, 20, 2)/100000000.00, 2) as decimal(13,2) )
相关文章推荐
- 解决使用DbContext保存Decimal数据时总是保留小数位2位问题
- hibernate3 struts1.2 保存blob图片到 db2 8.1
- IBM-DB2, Datastage, Cognos, SPSS
- 编写函数int stat(int a[],int n,int c[][2])。a指向的数组中保存了由n个1位整数组成的数列(n为偶数)。函数从前至后依次将a数组中每两个相邻元素拼成一个不超过2位的
- 汇编语言 2位十六进制数(字符),转换成数值保存到字节变量num(需要用逻辑左移指令或乘法指令)
- 实数小数后只保存2位,实现方法
- Cognos 8.3 + DB2
- DB2中,先四舍五入在保存4位小数点的方法
- 编写函数int stat(int a[],int n,int c[][2])。a指向的数组中保存了由n个1位整数组成的数列(n为偶数)。函数从前至后依次将a数组中每两个相邻元素拼成一个不超过2位
- Entity FrameWork 实体属性为decimal时默认只保存2位小数
- Entity FrameWork 4.3 实体属性为decimal时默认只保存2位小数
- cognos8.3 sample在DB2里的安装
- java多种保存2位小数的对比
- linux下db2和cognos需配置的文件有哪些
- 使用 Hibernate 将 Java 对象持久保存到 IBM DB2 通用数据库中
- 输入数字时时验证,到小数位2位
- Cognos报表参数值保存到Excel
- 二、 编写函数int stat(int a[],int n,int c[][2])。a指向的数组中保存了由n个1位整数组成的数列(n为偶数)。函数从前至后依次将a数组中每两个相邻元素拼成一个不超过2位
- 编写函数int stat(int a[],int n,int c[][2])。a指向的数组中保存了由n个1位整数组成的数列(n为偶数)。函数从前至后依次将a数组中每两个相邻元素拼成一个不超过2位的
- Cognos报表参数值保存到Excel