How to generate 2,500 employees calendar for the month selected by Pl/sql

Gusy

I have an employee table which is contain about 2500 employees and every month we will have to generate a list of each employee, let assume that each employee will be last_day insert the records of the month in the calendar table.
, as January day total 31, it's average system will insert record 2500 * 31.
How can I generate table & what is the fastest way.

Please, need help to expand.


Thank you.

Hello

Hope that the below given SQL help, you get the solution

SELECT LAST_DAY(TO_DATE('01-'||LEVEL||'-2010','DD-MM-YYYY')) - TO_DATE('01-'||LEVEL||'-2010','DD-MM-YYYY') + 1 DAYS_IN_MONTH
FROM DUAL
CONNECT BY LEVEL <= 12;

* 009 *.

Tags: Database

Similar Questions

  • How do you add a google calendar for the web site of muse, the updates are synchronized

    How do you add a google calendar for the web site of muse, the updates are synchronized?

    You can add Google Calendar using iframe which Google provides if you go to calendar settings.

    Once you insert this code into the page of Muse by object > insert HTML, the calendar will be displayed on the page.

    https://support.Google.com/calendar/answer/41207?hl=en

    Thank you

    Sanjit

  • How to generate an automatic employee predefined in the old system?

    Hi all

    I have a requirement in which there is a separate sequence for employees, contractors and the plaintiffs.
    Now the problem is that my client has already set employees with a large number of employees in their old system presets.
    My question:

    (1) how can I make sure for automatic generation of employee numbers while defining the defintion of BG, IF they want new employee number genertaion in HRMS should not be after their last employee. ? For example, under the old system, they have to say 100 emp with the last emp in 20081. Now in HRMS they want this employee not from 20082, then a sequence later. * 101 th employee aura employee guess 20082 and thus of

    (2) for applicants and contractors a separate of footage that should be automatic.

    How do I get there?
    The pointers in this area will be extremely useful.

    concerning
    S

    You can use a quick formula to do it. I've already implemented it at my client-side.

    Oracle provides three fast formula by default which are as follows. Fast formulas must be changed.
    1 APL_NUMBER_GENERATION
    2 CWK_NUMBER_GENERATION
    3 EMP_NUMBER_GENERATION

    You will not be able to access or change this through your responsibility. (check through backend for these names).
    For access to this create a personal responsibility (set-up business group), then configure this resonsibilty and then change the text in the quick formula.

    (1) define the automatic numbering of auto manual
    (2) create a sequence for EMP_NUM and CWK_NUM
    (3) Create PL/SQL function
    (4) to activate the installation companies group
    (5) create new responsibility
    (6) set values of profile to the level of responsibility
    (7) create features of FF
    (8) create formulas of FF
    (9) to turn off the installation companies group

    -fast formula code
    The DEFAULT for Person_number IS ' '
    DEFAULT for Party_ID IS 0
    Person_ID for default IS 0
    The DEFAULT for National_ID IS ' '
    By DEFAULT for Date_Of_Birth IS ' 1900/01/01 00:00:00 ' (date)
    By DEFAULT for Hire_Date IS "01/01/1900 00:00:00 ' (date)"

    THE ENTRIES ARE
    Legislation_Code (text),
    Person_Type (text),
    Person_number (text),
    Party_id (Number),
    Person_id (Number),
    Date_of_birth (date),
    Start_date (date),
    National_ID (text)

    Next_number = '0'
    Invalid_msg = ' '

    If person_type = "EMP" then
    (
    Next_number = PBSO_PER_NO_GEN2 (Legislation_Code, Person_Type, Person_number, Party_id, Person_id, Date_of_birth, start_date, National_ID)

    l_mesg = 'Y '.

    )
    return Next_number

    -for CWk use person_type = "CWK' etc.

  • How to order a drop down for the months of the year

    I have a drop-down list for the months of the year, but I can't understand how to order properly (Jan, Feb, Mar, etc...). I can't create a static list, as I join another table. I have a lov_order column in my table of lov, but I can't use it in the query.

    Select the value d, DT_lov r
    WHERE name = 'MONTHS '.
    Oder by lov_order
    -does not accept

    Select the value d, DT_lov r
    WHERE name = 'MONTHS '.
    -order is APR, AUG, DEC, etc...

    Can you please specify?

    Thank you very much
    Laura

    We use different variations on it to generate lists of different date selection.

    Select to_char (add_months (trunc (sysdate, 'YYYY'), rownum-1), 'MY') d, rownum as r
    of object
    where rownum<=>

    Kind regards
    Brad

  • How to generate a value of 0 if the table does not value contain?

    Hello

    I have a nice select gives me these results:
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:01 36.6 01/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:02 63.4 02/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:03 73.2 03/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:04 78.6 04/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:05 98.8 05/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:06 2008-06-30.4
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:07 23.8 07/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:08 70.8 08/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:09 14 2008-09
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:10 60.4 10/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:11 46 11/2008

    You see, the month 12 is missing, because no data exists in the table. OK, that's normal.

    But I want to display the result 0 even if nothing in the table for the month 12. The result would be:
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:01 36.6 01/2008
    etc...
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:11 46 11/2008
    f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:12 0 2008-11

    I know that I have to generate a list of values for each month and join them.
    select add_months(to_date('01'||:P2_DATE_DEBUT, 'mm/yyyy'), level-1) dt from dual connect by level <= 12
    Could you please help me this?

    It's nice select I already have.
    SELECT 'f?p=&APP_ID.:2:&SESSION.:GET_DETAIL_REPORT:NO::P2_VALUE:' 
           || TO_CHAR(TRUNC(date1, 'MM'), 'MM') LINK, 
           To_CHAR(TRUNC(DATE1, 'MM'), 'MM/YYYY') valeur, 
           sum(valeur) "Cumul"
           FROM PL_MF_JOUR
    WHERE  cle = :P2_DEPT
    AND    DATE1
    BETWEEN to_date('01/01' || :P2_DATE_DEBUT || ' 00:00:00', 'DD/MM/YYYY HH24:MI:SS')
    AND     to_date('01/01' || :P2_DATE_DEBUT || ' 23:59:59', 'DD/MM/YYYY HH24:MI:SS') +364
    GROUP BY TRUNC(DATE1, 'MM')
    ORDER BY TRUNC(DATE1, 'MM')
    Kind regards

    Christian

    PS: your help is very appreciated every time, thank you.

    You need to generate your calendar of 12 months and then left outer join with it.

    Something like:

    WITH dts as (select to_date('01/'to_char(rownum,'fm99')||'/'||:P2_DATE_DEBUT,'DD/MM/YYYY') as dt
                 from dual connect by rownum <= 12)
    SELECT 'f?p=&APP_ID.:2:&SESSION.:GET_DETAIL_REPORT:NO::P2_VALUE:'
           || TO_CHAR(dt, 'MM') LINK,
           TO_CHAR(dt, 'MM/YYYY') valeur,
           sum(valeur) "Cumul"
    FROM dts LEFT OUTER JOIN PL_MF_JOUR ON (dt = TRUNC(DATE1,'MM')
                                       AND cle = :P2_DEPT
                                       AND DATE1
                                       BETWEEN to_date('01/01' || :P2_DATE_DEBUT || ' 00:00:00', 'DD/MM/YYYY HH24:MI:SS')
                                       AND     to_date('01/01' || :P2_DATE_DEBUT || ' 23:59:59', 'DD/MM/YYYY HH24:MI:SS')+364
                                       )
    GROUP BY dt
    ORDER BY dt
    

    NB. Untested (obviously)

  • I broke my screen, and now cannot drag to open it.  I have an alarm that don't go.  I also want to synchronize my phone before I take it buy a new one.  Is it possible to synchronize and watch my calendar for the next few days?

    I broke my screen, and now cannot drag to open it.  I have an alarm that don't go. I can let the battery die I know but I really want to be able to access and examine what are the texts I received today. I think that my ICloud is can be disabled. I also want to synchronize my phone before I take it buy a new one.  Is it possible to synchronize and watch my calendar for the next few days?

    Without entering your access code, it is not possible, unless your time is in iCloud. If this is the case, connect to iCloud.com to check your calendar.

    Good luck.

  • How can I add a separate apple for the iphone and ipad wife id

    How can I add a separate apple for the iphone and ipad wife id

    Hi, are the measures already implemented? If they are, you need to configure them again and establish a Apple ID at this time.

    Apple ID - Support official Apple

  • calendar for the week of jQuery does not work in the new version of firefox v42.0

    Hello
    Thanks for your reply.
    IAM develop on the issue that iam facing knowledge, events on the calendar for the week of jquery does not work in firefox version iam 42.0 faced to the problem that iam unable to change back or delete nominations that are displayed.
    For example if try clicking on one of the appointment generally a popup comes to change or to restore or remove the appointment but iam not getting that. But this feature does not work in lower versions of firefox (version 32.0 for example). Please check the jquery week calendar demo following URL looks like this:
    http://robmonie.github.IO/jQuery-week-calendar/full_demo/weekcalendar_full_demo.html

    I've just rescheduled lunch 12:00-12:15, so it seems to work on 42 Firefox on Windows.

    What is the latest version, where it has worked for you?

    Have you tested Mode Firefox safe to rule out the possibility of an extension conflict? See: Firefox in Safe Mode troubleshooting questions.

  • How to set up a personalized message for the prevention of the installation of the software via group policy in windows server 2012

    Hello

    I would like to know how to set up a personalized message for the prevention of the installation of the software via group policy in windows server 2012 R2.

    I released some software in my field to a distribution point and I of installation for few of them software restriction policies. But I don't want the default next message below:

    "The system administrator has set policies to prevent this installation." This installation is forbidden by system policy. Contact your system administrator. »

    Instead, I would like to set up a custom message. Please tell us how can I do same by using Group Policy, if not available, what are the alternatives that I can use.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Noobie here... How can I register my HP Touchpad for the guarantee

    Noobie here... How can I register my HP Touchpad for the guarantee. I have no ideal where to register my details... Then... Helppppppppp... lol

    When you connect to your hp webOS device information is returned to servers HP to register essentially the device for you. It has been since the registration for you. You will then receive an email which will help you to confirm your e-mail address to your profile and validate it.

  • How can I use my current windows7 for the new portable computer

    Original title:

    Windows 7

    Hello

    I bought the original windows7 and I currently use it in my laptop. I recently bought a new laptop and now I want this original windows 7 on my new laptop.

    How can I use my current windows7 for the new portable computer

    Please notify

    Concerning

    Run you where you are unable to activate code product. It gives you a list of phone numbers for Microsoft to ring.

  • How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Dear all

    How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Concerning

    Hi Imran,

    Can't do much about that because it depends on what authenticate you the VPN server and how the settings. But let me introduce you to the memory layout. Once you install and open a VPN client. Press it again and it opens up a new page for the VPN config.

    Example of configuration as it is attached. But it differs depending on the configuration of your vpn server.

    Once you create and save this profile. Your FCP file is stored.

    Please assess whether the information provided is useful.

    By

    Knockaert

  • How can I purchase Adobe Edge animate for a month? There is no option to choose anywhere.

    How can I purchase Adobe Edge animate for a month? There is no option to choose anywhere.

    I have never done this, but I read that when you subscribe to a regime of selected cloud, such as a program, you can select annual paid every month, or every month

    The monthly package can then be cancelled at any time without penalty... but this IS NOT automatic, you must cancel or you will be charged each month

  • How to reset or recover my password for the signing of an electronic document?

    How to reset or recover my password for the signing of an electronic document?

    Your only option is to remember. Adobe does not have a recovery tool or allow you to change it unless you know the current password.

  • How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    What is an actual field or just a piece of static text somewhere? Whatever it is, you can't do this using the Split Document command. You will need to use a script custom read the value of this 'field' and use it during extraction of pages in the file.

Maybe you are looking for

  • can I sell my old iphone 5s? or it is locked

    want to sell my iPhone 5s, I continue to be asked if iCloud is locked... I reset the phone to clear my info.  How do I know if it is locked?

  • Update files in CVI TDMS

    Hello world I'm new in the development of CVI. My current work is on TDMS inside CVI 8.5, I experienced help ICB on PDM and a white paper on the website of OR... My current requirement is that the user runs the application and see the data on the gra

  • RS232 received does not not for 67 bytes?

    I built a simple send and Recieve VI that implements RS232.  I have a problem when I send an order to wait 2.5 seconds (I tried several different waiting times, don't know if that is important here, I like it just here for my peace of mind), I have a

  • SERVER TERMINAL SERVER

    I have a member server windows Server 2003. I would like to install and configure this server as a server of terninal while I installed the terminal server server and confogure it correctly. and add user objects appropriate to the remote desktop grou

  • Windows does not start. even in Safe Mode.

    Error message is: load needed DLLs for kernel. In safe mode, I get this: multi (0) disk (0) rdisk (0) partition (2) \WINDOWS\system32\ntoskrul.exe multi (0) disk (0) rdisk (0) partition (2) \WINDOWS\system32\hal.dll multi (0) disk (0) rdisk (0) parti