Pages
Labels
- Bisnis (1)
- CIT Scripts - Financore (5)
- Cokelat (3)
- MySQL (2)
- PHP (23)
- PT Comment Indonesia (10)
- SQL Query (2)
- SQL Server 2000 (4)
- SQL Server 2005 (4)
- Tips - Tricks Cokelat (2)
Archives
-
▼
2010
(41)
-
▼
August
(14)
- Kulit Cantik dengan Cokelat
- Serba Serbi Tentang Cokelat
- Cokelat Juga Setangguh Viagra
- Langkah Bangun Bisnis Sendiri
- Tips Mengetim Cokelat
- Agar Cokelat Tahan Lama
- Sekilas Administrasi Microsoft SQL Server 2005
- Piutang Pembiayaan Jatuh Tempo
- FPD 1-6 Survey
- COL998
- View COL998 Khusus
- View COL998
- Create Database AdventureWorksDW
- Attached Database AdventureWorksDB
-
▼
August
(14)
Link List
- Code Igniter Indonesia
- MySQL Reference Manuals
- MySQL Tutorial
- SQL Developer
- 9 Useful jQuery Calendar and Date Picker Plugins For Web Designers
- 10 Powerful AJAZ jQuery File Uploaders
- 35 Useful jQuery Plugins for Slideshows, Graphs and Text Effects
- 30 jQuery Calendar Date Picker Plugins
- jQuery
- Web Developers Notes
- SQL Copy MySQL Table
- Natural Cooking Club Indonesia
- Aneka Resep Praline - Sedap Sekejap
- Resep Cokelat
- Pastry and Bakery
- Peluang Bisnis Hotspot
- Billing Hospot
- JpGraph
- Zend Developer Zone
- MySQL Tutorials and Others
- W3 School
- Open Source Projects
select aa.thn_jual, aa.productcode, aa.productdesc, sum(aa.cusosarreal) as osarreal, sum(aa.jatuhtempo) as jatuhtempo, sum(aa.bln6) as bln6,
sum(aa.bln12) as bln12, sum(aa.bln18) as bln18, sum(aa.bln24) as bln24, sum(aa.bln30) as bln30, sum(aa.bln36) as bln36,
sum(aa.bln42) as bln42, sum(aa.bln48) as bln48
from
(select a.norek, a.nopin, a.realisasidate, datepart(year, a.realisasidate) thn_jual, a.agingday, a.productcode,
(select productdesc from genproduct where productcode = a.productcode) as productdesc, a.cusosarreal,
(case when a.agingday > 0 then a.cusosarreal else 0 end) jatuhtempo,
(case when a.agingday <= 0 then a.cusosarreal else 0 end) nonjatuhtempo,
dateadd(month, -1, dateadd(month, a.tenor, a.realisasidate)) enddate,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 0 and 6 then a.cusosarreal else 0 end) bln6,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 7 and 12 then a.cusosarreal else 0 end) bln12,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 13 and 18 then a.cusosarreal else 0 end) bln18,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 19 and 24 then a.cusosarreal else 0 end) bln24,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 25 and 30 then a.cusosarreal else 0 end) bln30,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 31 and 36 then a.cusosarreal else 0 end) bln36,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 37 and 42 then a.cusosarreal else 0 end) bln42,
(case when agingday <=0 and (a.tenor – a.tenorpaid) between 43 and 48 then a.cusosarreal else 0 end) bln48,
(case when agingday <=0 and (a.tenor – a.tenorpaid) > 48 then a.cusosarreal end) lbh48
from rptfinancore a with(nolock)
where a.closetype = ’0′
) aa
group by aa.thn_jual, aa.productcode, aa.productdesc
order by aa.thn_jual, aa.productcode
Labels: CIT Scripts - Financore