Langsung ke konten utama

Postingan

Menampilkan postingan dari Oktober, 2018

MEMPERSIAPKAN PENTAHO DATA INTEGRATION

https://help.pentaho.com/Documentation/5.2/0F0/0G0/020 Prepare Environment To prepare the computer on which you plan to install the BA design tool and plugins, complete these tasks. Install Java JRE or JDK . Set environment variables . Install Java JRE or JDK Make sure that the version of the Java Runtime Environment (JRE) or the Java Development Kit (JDK) that Pentaho needs to run is installed on your system. You do not need to uninstall other versions of Java if you already have them running on your system. These instructions explain how to check for your default version of Java that is running on your computer and where to get the required version if you need one. Check the supported technologies list to see which version of the JRE or JDK is needed for the software. If you have not done so already, log into the computer on which you plan to install the software. Ensure t...

Menghitung Sub Total Menggunakan WITH ROLLUP Pada Query MySQL

Pada MySQL, klausa  WITH ROLLUP  digunakan bersamaan dengan klausa  GROUP BY ,   WITH ROLLUP  dapat digunakan baik untuk menghitung total maupun sub total sesuai dengan kolom yang kita gunakan dalam klausa  GROUP BY . Kelebihan klausa ini adalah simpel dan dapat menghasilkan total dan subtotal hanya dalam satu query, sehingga membuat pekerjaan kita jauh lebih mudah dan sederhana. Misal, untuk menyelesaikan pembuatan total dan subtotal sebagaimana contoh sebelumnya, kita hanya perlu menambahkan WITH ROLLUP  pada akhir query, sehingga querynya menjadi seperti ini: SELECT thn_byr , id_pelanggan , id_produk , SUM ( jml_byr ) AS jml_byr FROM ` sales ` GROUP BY thn_byr , id_pelanggan , id_produk WITH ROLLUP ketika kita jalankan query tersebut (menggunakan HEIDI SQL), hasil yang kita peroleh adalah:   jika kita perhatikan, MySQL melakukan tiga fungsi penjumlahan berdasarkan kolom yang ada di group b...