格式化 金额,日期

LOAD t_AR_receivable.LE_ID,
[t_AR_receivable.LCY CODE],
t_AR_receivable.SYSTEM,
date(num#(t_AR_receivable.#DataDateTime, ‘#.##0,0‘, ‘,‘, ‘.‘)) ,
date(num#(t_AR_receivable.#DataDate, ‘#.##0,0‘, ‘,‘, ‘.‘)) ,
t_AR_receivable.FID as FID,
t_AR_receivable.FBILLNO as SALES_GROSS_SALES.process_id,
t_AR_receivable.FCUSTOMERID as FCUSTOMERID,
date(num#(t_AR_receivable.FCREATEDATE, ‘#.##0,0‘, ‘,‘, ‘.‘)) AS SALES_GROSS_SALES.date,
t_AR_receivable.FCURRENCYID as FCURRENCYID ,
t_AR_receivable.FSALEERID as FSALEERID
FROM
[C:\Users\thinkpad\Desktop\QLIKVIEW\SalesGrossSales\t_AR_receivable.qvd]
(qvd);

Inner join

LOAD T_AR_RECEIVABLEENTRY.LE_ID,
[T_AR_RECEIVABLEENTRY.LCY CODE],
T_AR_RECEIVABLEENTRY.SYSTEM,
T_AR_RECEIVABLEENTRY.#DataDateTime,
T_AR_RECEIVABLEENTRY.#DataDate,
T_AR_RECEIVABLEENTRY.FID AS FID,
T_AR_RECEIVABLEENTRY.FENTRYID AS FENTRYID,
T_AR_RECEIVABLEENTRY.FMATERIALID AS FMATERIALID,
T_AR_RECEIVABLEENTRY.FSEQ AS SALES_GROSS_SALES.process_pos_nr,
num#(T_AR_RECEIVABLEENTRY.FALLAMOUNTFOR, ‘####,##‘, ‘,‘, ‘.‘) AS SALES_GROSS_SALES.amount,
num#(T_AR_RECEIVABLEENTRY.FPRICEQTY, ‘####,##‘, ‘,‘, ‘.‘) AS SALES_GROSS_SALES.qty

FROM
[C:\Users\thinkpad\Desktop\QLIKVIEW\SalesGrossSales\T_AR_RECEIVABLEENTRY.qvd]
(qvd);

left join

LOAD T_BD_CUSTOMER.LE_ID,
[T_BD_CUSTOMER.LCY CODE],
T_BD_CUSTOMER.SYSTEM,
T_BD_CUSTOMER.#DataDateTime,
T_BD_CUSTOMER.#DataDate,
T_BD_CUSTOMER.FCUSTID as FCUSTOMERID,
T_BD_CUSTOMER.FNUMBER AS SALES_GROSS_SALES.customer.id
FROM
[C:\Users\thinkpad\Desktop\QLIKVIEW\SalesGrossSales\T_BD_CUSTOMER.qvd]
(qvd);

Left Join
LOAD T_BD_CURRENCY.LE_ID,
[T_BD_CURRENCY.LCY CODE],
T_BD_CURRENCY.SYSTEM,
T_BD_CURRENCY.#DataDateTime,
T_BD_CURRENCY.#DataDate,
T_BD_CURRENCY.FCURRENCYID AS FCURRENCYID ,
T_BD_CURRENCY.FCODE AS SALES_GROSS_SALES.currency
FROM
[C:\Users\thinkpad\Desktop\QLIKVIEW\SalesGrossSales\T_BD_CURRENCY.qvd]
(qvd);

Left join

LOAD T_BD_MATERIAL.LE_ID,
[T_BD_MATERIAL.LCY CODE],
T_BD_MATERIAL.SYSTEM,
T_BD_MATERIAL.#DataDateTime,
date(num#(T_BD_MATERIAL.#DataDate, ‘#.##0,0‘, ‘,‘, ‘.‘)) AS T_BD_MATERIAL.#DataDate,
T_BD_MATERIAL.FMATERIALID as FMATERIALID,
T_BD_MATERIAL.FNUMBER as SALES_GROSS_SALES.article.id
FROM
[C:\Users\thinkpad\Desktop\QLIKVIEW\SalesGrossSales\T_BD_MATERIAL.qvd]
(qvd);

Left join

LOAD T_BD_OPERATORENTRY.LE_ID,
[T_BD_OPERATORENTRY.LCY CODE],
T_BD_OPERATORENTRY.SYSTEM,
T_BD_OPERATORENTRY.#DataDateTime,
T_BD_OPERATORENTRY.#DataDate,
T_BD_OPERATORENTRY.fentryid as FENTRYID,
T_BD_OPERATORENTRY.FSTAFFID as SALES_GROSS_SALES.sales.representative_id
FROM
[C:\Users\thinkpad\Desktop\QLIKVIEW\SalesGrossSales\T_BD_OPERATORENTRY.qvd]
(qvd);
Left join

LOAD T_BD_STAFF_L.LE_ID,
[T_BD_STAFF_L.LCY CODE],
T_BD_STAFF_L.SYSTEM,
T_BD_STAFF_L.#DataDateTime,
T_BD_STAFF_L.#DataDate,
T_BD_STAFF_L.FSTAFFID as SALES_GROSS_SALES.sales.representative_id,
T_BD_STAFF_L.FNAME as SALES_GROSS_SALES.sales.representative.Code
FROM
[C:\Users\thinkpad\Desktop\QLIKVIEW\SalesGrossSales\T_BD_STAFF_L.qvd]
(qvd);

原文地址:https://www.cnblogs.com/RogerLu/p/11471361.html

时间: 2024-10-16 01:57:29

格式化 金额,日期的相关文章

C#格式化金额

c#用format把999999999格式化成999,999,999.00的格式 c#用format把普通数字格式化成金额的格式 分享到:      更多 ------解决方案-------------------- 999999999.ToString("N")      // ==〉 999,999,999.00 999999999.ToString("C")     //  ==〉 ¥999,999,999.00 ------解决方案-------------

格式化json日期'/Date(-62135596800000)/'

日期经过json序列化之后,变成了'/Date(-62135596800000)/'字符串,在显示数据时,我们需要解释成正常的日期. Insus.NET和js库中,写了一个jQuery扩展方法: $.extend({ JsonDateParse: function (value) { if (value == '/Date(-62135596800000)/') return '' var dt = new Date(parseInt(value.replace("/Date(", &

PHP 日期格式化和日期计算以及获取当前周、月头尾日期

PHP 日期格式化和日期计算以及当获取前周.月头尾日期 PHP 日期格式化示例代码: /** * 格式化时间 * $type:类型 * $strDate:需要处理的时间字符串 * * 年份 Y:四位年份 y:两位年份 * 月份 m: 两位数字月份 n: 一位数字月份 M:英文月 * 日期 d:两位数字日期 j:一位数字日期 D:英文日期 * 时:H .分:i .秒:s **/ public function GetFormatDate($type = 1,$strDate=''){ $time

js 格式化时间日期函数小结

下面是脚本之家为大家整理的一些格式化时间日期的函数代码,需要的朋友可以参考下. 代码如下: Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(

Android - 格式化显示日期

格式化显示日期 本文地址:http://blog.csdn.net/caroline_wendy Android,可以格式化设置地址,使用DateFormat类,具体可以查询英文文档. 其中,大写字母,表示英文,小写字母,表示数字,4个大写字母表示全称,3个大写字母表示简称. 代码: TextView dateTextView = (TextView)convertView.findViewById(R.id.crime_list_item_dateTextView); DateFormat d

php 格式化金额

1 /** 2 * 格式化金额 3 * 4 * @param int $money 5 * @param int $len 6 * @param string $sign 7 * @return string 8 */ 9 function format_money($money, $len=2, $sign='¥'){ 10 $negative = $money > 0 ? '' : '-'; 11 $int_money = intval(abs($money)); 12 $len = int

格式化angularjs日期'/Date(-62135596800000)/'

在实现在angularjs时,发现经序列化后的日期需要格式化显示. 翻看以前的博客,似乎有写过一篇有关js方面的解决办法<格式化json日期'/Date(-62135596800000)/'>http://www.cnblogs.com/insus/p/6746862.html 但是,此代码块在angularjs并不能直接可以使用.不过我们知道angularjs有filter过滤,所以参考上面js的代码来稍作修改一下即可: {{t.CreatedDate.replace('/Date(',''

输入框内格式化金额、银行卡号

我们在项目中经常遇到需要格式化的金额数和银行卡号,一般我们常见的有两种表现形式:输入框内格式化和输入框外格式化.这里我主要把我在项目中遇到的输入框内部格式化的,代码亮出来,框外的格式化相对简单一点. 页面代码: <div class="wrap"> <input type="text" id="bankCard" placeholder="输入银行卡号"> </div> <div cl

php Smarty date_format [格式化时间日期]

Example 5-8. date_format[日期格式] index.php: 复制代码代码如下: $smarty = new Smarty; $smarty->assign('yesterday', strtotime('-1 day')); $smarty->display('index.tpl'); index.tpl: {$smarty.now|date_format} {$smarty.now|date_format:"%A, %B %e, %Y"} {$sm

php格式化金额函数分享

/**  * 格式化金额 *  * @param int $money  * @param int $len  * @param string $sign  * @return string  */ function format_money($money, $len=2, $sign='¥'){     $negative = $money > 0 ? '' : '-';     $int_money = intval(abs($money));     $len = intval(abs($