maaf saya baru balas lagi.
table BOM% itu table apa yah ?
itu table dari Ora Apps yah ?  saya tidak menggunakan Ora Apps pak.
Saya sedang mencoba membuat sebuah procedure untuk perhitungan bonus. nah
untuk perhitungan bonus itu diperlukan jumlah hari kerja.

mis saya mao mencari jumlah hari kerja 1 aug 2005 - 31 aug 2005.
artinya saya mao mencari jumlah hari yang bukan hari sabtu dan minggu.

saya mencoba untuk tidak memakai table dummy maupun function untuk looping.

Ada ide dari para pakar Oracle ?




----- Original Message -----
From: "mg_simon" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 01, 2005 11:26 AM
Subject: [indo-oracle] Re: working day


> salam,
> saya ngak tau yg kamu mau itu seperti apa, soalnya di Oracle itu ada
> BOM working day, HR working day, etc..
> ini adalah contoh BOM working day (tgl produksi)
>
>   select Count(CALENDAR_DATE)
>   from   BOM_CALENDAR_DATES
>   where SEQ_NUM is not null
>   and  NEXT_SEQ_NUM is not null
>   and  PRIOR_SEQ_NUM is not null
>   and  prior_date=next_date
>   and  to_char(CALENDAR_DATE,'MON-YYYY')=to_char(:P_DATE,'MON-YYYY')
>   and  calendar_code=(Select calendar_code
>                       From   BOM_CALENDARS
>                       Where  calendar_code=(Select CALENDAR_CODE
>                                             From   MTL_PARAMETERS
>                                             Where
> ORGANIZATION_ID=:P_ORGANIZATION_ID));
>
>
> --- In [email protected], "daniel_d" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > saya sedang mencari sql statement untuk mencari working day dalam satu
> > bulan.
> > ada yang ide?
> >
> > Daniel
>
>
>
>
> --
> -----------I.N.D.O - O.R.A.C.L.E---------------
> Keluar: [EMAIL PROTECTED]
> Website: http://indo-oracle.blogspot.com
> -----------------------------------------------
>
> Bergabung dengan Indonesia Thin Client User Groups,
> Terminal Server, Citrix, New Moon Caneveral, di:
> http://indo-thin.vze.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.8.7/34 - Release Date: 6/29/2005
>
>



--
-----------I.N.D.O - O.R.A.C.L.E---------------
Keluar: [EMAIL PROTECTED]
Website: http://indo-oracle.blogspot.com
-----------------------------------------------

Bergabung dengan Indonesia Thin Client User Groups, 
Terminal Server, Citrix, New Moon Caneveral, di:
http://indo-thin.vze.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