select id_mesin,sum(PEMAKAIAN_MESIN)
from  t_aktivitas_konvensional
where id_mesin='T1'
and no_job ='2304601'
group by id_mesin

On 7/18/06, Antonius Didik HDS <[EMAIL PROTECTED]> wrote:
>    Saya ada masalah sbb , ada yang bisa bantu ?
>
>      Saya ingin menjumlahkan  jumlah pemakaian jam mesin, pada satu jenis  
> mesin, pada satu job dalam satu table ,
>
>      Sebagai gambaran table dan query saya sertakan  bagaiamana caranya 
> menghitung total pemakaian  jam pada mesin 'T1' dengan no_job '2304601'
>
>      Terimakasih atas bantuannya.
>
>  SQL>  desc  t_aktivitas_konvensional;
>       Name                             Null?    Type
>      ------------------------------- -------- ----
>                                       ID_AKTIVITAS_KONVENSIONAL       NOT 
> NULL CHAR(20)
>   ID_R_KALENDER_KERJA                        CHAR(20)
>   ID_SEKSI_IPP                                         CHAR(10)
>  JOB_NO                                                   CHAR(10)
>  JOB_BARANG_ID                                      CHAR(10)
>   ID_MESIN                                                CHAR(10)
>  PEMAKAIAN_MESIN                                  NUMBER(4,2)
>  MANPOWER_ID                                         CHAR(10)
>  PEMAKAIAN_MANPOWER                        NUMBER(4,1)
>
>      SQL> select id_aktivitas_konvensional from  t_aktivitas_konvensional 
> where  job_barang_id='2304601';
>          ID_AKTIVITAS_KONVENS
>      --------------------
>      Kon-01-08-2006-01
>      Kon-02-08-2006-01
>      Kon-03-08-2006-01
>
>      SQL>  select  PEMAKAIAN_MESIN from  t_aktivitas_konvensional where  
> job_barang_id='2304601';
>
>      PEMAKAIAN_MESIN
>      ---------------
>                    9
>                   10
>                    9
>
>      SQL>  select  id_mesin  from  t_aktivitas_konvensional where  
> job_barang_id='2304601';
>
>      ID_MESIN
>      ----------
>      T1
>      T2
>      T1
>
>      Sebagai gambaran table dan query saya sertakan  bagaiamana caranya 
> menghitung total pemakaian  jam pada mesin 'T1' dengan no_job '2304601'
>
>      Terimakasih atas bantuannya.
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
>  Get on board. You're invited to try the new Yahoo! Mail Beta.
>
> [Non-text portions of this message have been removed]
>
>
>
>
> --
> -----------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
>
>
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/
 


Kirim email ke