Dear Krisna, Berikut querynya : select data, data / (select sum(data) from dev_test1) hasil from dev_test1 order by no Mdh2an bermanfaat. Tx Amaulana
--- Pada Sab, 13/6/09, eko suprijantono <[email protected]> menulis: Dari: eko suprijantono <[email protected]> Topik: Re: [indo-oracle] Mohon bantuan masalah query... Kepada: [email protected] Tanggal: Sabtu, 13 Juni, 2009, 11:42 AM Dear Krishna, Cobain spt dibwh... select a.data,(a.data/ b.sumdata) from <table> a,(select sum(b.data) sumdata from <table> b where <where clause>) where <where clause> ____________ _________ _________ __ From: Raja Krishna <raja_...@yahoo. com> To: indo-oracle@ yahoogroups. com Sent: Friday, June 12, 2009 4:44:40 PM Subject: [indo-oracle] Mohon bantuan masalah query... mo minta tolong nih, gimana ya untuk membuat average dari sum coloumn. misal seperti ini, aku punya 4 record dari 1 table A No Data Hasil 1 2500 2 3200 3 400 4 5 dari sini aku mo select sehingga Field "Hasil" akan menghasilkan data seperti ini No Data Hasil 1 2500 0.40950041 2 3200 0.52416052 3 400 0.06552007 4 5 0.000819 dimana hasil dari record no: 1. rumusannya 2500 \ sum(data) 2. rumusannya 3200 \ sum(data) 3. rumusannya 400 \ sum(data) 4. rumusannya 5 \ sum(data) Atas bantuan temen2 saya ucapkan banyak terima kasih. thanks Regards, Krishna [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] Akses email lebih cepat. Yahoo! menyarankan Anda meng-upgrade browser ke Internet Explorer 8 baru yang dioptimalkan untuk Yahoo! Dapatkan di sini! http://downloads.yahoo.com/id/internetexplorer [Non-text portions of this message have been removed]

