select a.id_mesin,sum(a.pemakaian_mesin * b.rate_jam)
from t_aktivitas_konvensional a,
r_mesin b
where a.id_mesin=b.id_mesin
and a.id_mesin='T1' and a.job_barang_id='2304601'
group by a.id_mesin
On 7/20/06, Antonius Didik HDS <[EMAIL PROTECTED]> wrote:
>
>
> Hi All
>
> Ada yang bisa bantu , saya ingin mengalikan hasil operasi 'sum' dengan
> variable seperti berikut
>
> SQL> select id_mesin, sum(pemakaian_mesin) from
> t_aktivitas_konvensional
> 2 where id_mesin='T1' and job_barang_id='2304601'
> 3 group by id_mesin;
>
> ID_MESIN SUM(PEMAKAIAN_MESIN)
> ---------- --------------------
> T1 9
>
> SQL> desc r_mesin;
> Name Null? Type
> ------------------------------- -------- ----
> ID_MESIN NOT NULL CHAR(10)
> NAMA_MESIN VARCHAR2(100)
> RATE_JAM NUMBER(10,2)
>
>
>
> bisakah kita mengalikan hasil 'sum(pemakaian_mesin)' dengan rate_jam
> pada table r_mesin?
> Tolong bantuannya?
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail Beta.
>
> [Non-text portions of this message have been removed]
>
>
>
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/PhFolB/TM
--------------------------------------------------------------------~->
--
-----------I.N.D.O - O.R.A.C.L.E---------------
Keluar: [EMAIL PROTECTED]
Website: http://indo-oracle.blogspot.com
Mirror: http://indooracle.wordpress.com
-----------------------------------------------
Bergabung dengan Indonesia Thin Client User Groups,
Terminal Server, Citrix, New Moon Caneveral, di:
http://indo-thin.blogspot.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indo-oracle/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/