Change script from 30 to 10 minute intervals

Hello

How would the following script better changed to change the time intervals of 30 minutes 10 minutes slots

Select to_char (to_date (to_char (trunc (sysdate),' & APP_DATE_FORMAT') |: P3_EVENT_START_TIME_D,))

'& APP_DATE_FORMAT' | ' & APP_TIME_FORMAT. ") + ((i-1) /(24*2)).

APP_TIME_FORMAT. ») ||

' (' ||

case when I = 1 then ' 0 minutes

When I = 2 then 30 minutes

When I = 3 then 1 hr'

When I have 3 > then to_char ((i-1)/2) | « h »

end

|| ')' d,

(i-1) / 2 r

of wwv_flow_dual100

where < 50?

i order

select to_char( to_date( :P3_EVENT_START_TIME_D, '&APP_TIME_FORMAT.' ) + dsinterval, '&APP_TIME_FORMAT.' )
    || '('
    || case extract( hour from dsinterval )
        when 0 then ''
        when 1 then '1 hr '
        else extract( hour from dsinterval ) || ' hrs '
       end
    || extract( minute from dsinterval ) || ' mins '
    || ')' d
    , r
from ( select numtodsinterval( interval_in_minutes * ( level - 1 ), 'minute' ) dsinterval
            , interval_in_minutes * ( level - 1 ) / 60 r
       from ( select 10 interval_in_minutes from dual )
       connect by level <= 20
     )

Tags: Database

Similar Questions

  • Grouping of the counts in 15-minute intervals

    This request includes the counties of action_table at the time. How would change it to consolidate the counts in 15-minute intervals instead? (... 01:00, 01:15, 01:30, etc.)
    Thank you in advance.

    SELECT COUNT (TO_CHAR (action_date, "mm/dd / yyyy:HH24 '")).
    To_char (action_date, "mm/dd / yyyy:HH24 '")
    Of action_table to
    The year WHERE the = '2009'
    AND action_status = 'PROCESSED '.
    AND at.action_date BETWEEN
    To_date (' 31 / 01/2010 ', "dd/mm/yyyy")
    AND TO_DATE (' 03 / 02/2010 ', "dd/mm/yyyy")
    GROUP OF TO_CHAR (action_date, "mm/dd / yyyy:HH24 '")

    The following query test

             
    
    SELECT COUNT (1),
           TO_CHAR (at.action_date , 'mm/dd/yyyy:HH24')||
            case
                when to_number(to_char(at.action_date,'mi')) between 0 and 15 then
                ':00'
                when to_number(to_char(at.action_date,'mi')) between 16 and 30 then
                ':15'
                when to_number(to_char(at.action_date,'mi')) between 31 and 45 then
                ':30'
                else
                ':45'
            end time
    FROM action_table at
    WHERE year = '2009'
    AND at.action_date = 'PROCESSED'
    AND at.action_date BETWEEN TO_DATE ('1/31/2010', 'mm/dd/yyyy')
                            AND TO_DATE ('2/3/2010', 'mm/dd/yyyy')
    GROUP BY TO_CHAR (at.action_date, 'mm/dd/yyyy:HH24')||
                  case
                      when to_number(to_char(at.action_date,'mi')) between 0 and 15 then
                      ':00'
                      when to_number(to_char(at.action_date,'mi')) between 16 and 30 then
                      ':15'
                      when to_number(to_char(at.action_date,'mi')) between 31 and 45 then
                      ':30'
                      else
                      ':45'
                  end; 
    
  • Conversion of scripts from one domain to another

    Back to the pre OpenScript versions (v8), there used to be a utility (under the Tools menu) to convert the scripts. This would be useful for example when migrating a script from one environment to another (for a script can be used in a production environment?) However, this feature is not currently available in recent versions.

    I realize, you can try to do a global find/replace in the Java code, but it doesn't seem to be as simple as replacing the root of the URL like this leaves the issues with dynamic variables is most recognized (I get losts of messages "Could not be resolved" if I try this exercise).

    Is there a simple way to edit a script of 'https://URLA/application' to 'http://URLB/application '?

    NOTE: In the example above I also changed from HTTPS to HTTP simple.

    In 9.2 under Tools, there is an option called URL set... You select this option and it will display the URL of the application and a text field where you can enter a variable name. Then you can select all instances of this URL and OpenScript will be replaced by the variable. Once done you will have code such as

    Initialize the Section
    getVariables () .set ("bilbobaggins", "http://www.scl.com",
    Variables.Scope.GLOBAL);

    and in the running section you would have something like

    Web.Window (2, "/ web: window [@index = '0' or @title =' about: blank']")
    . Navigate (' {{bilbobaggins, http://www.scl.com}} / OA_HTML/RF.jsp "" ");
    Web.Window (4, "/ web:window[@index='0" or @title = 'Login'] "")
    .waitForPage (null);

    Notice it will return the variable and also have the saved value. So if you want to play against another environment just to change the value of the variable and replay.

    Hope this helps

    Concerning

    Wayne.

    Published by: byrne_wayne on January 11, 2011 15:16

  • I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    I got a notification saying "password requirement: you must change your secret code in 56 minutes"I panicked and entered my access code using the little box? ". I ' t mess up?

    Yes. You may be victim of a scam, except if you are connected to your business with this requirement.

    Change your password immediately below:

    https://appleid.apple.com.

  • I have sporadic outages during anywhere from 1 to 5 minutes.  Everything started after I bought a new modem. TWC said, of course, that the modem is fine.  Any ideas?

    I have sporadic outages during anywhere from 1 to 5 minutes.  Everything started after I bought a new modem. TWC said, of course, that the modem is fine.  Any ideas?

    TWC does not yet support some routers, I hope they will be soon.

  • How can I change screen from vertical to horizontal orientation?

    How can I change screen from vertical to horizontal orientation? It will not work after you install the update.  I have an Iphone 5s.

    Swipe up from the bottom of the screen to bring up the control center. Then press the icon that looks like a padlock inside a circular arrow. -AJ

  • How can I change homepage from google to verginmedia?

    How can I change homepage from google to verginmedia?

    HI, JPF22,

    Open the page VirginMedia you want to use

    Tools > Internet Options > general tab

    To the title of the home page

    Click the current button

    Click OK

  • My expansion of screen changes radically from 33% to 250%.

    Is the subject there really.  Amd worsening slows down the way you are able to work.

    My computer is turned on, an application is run.  When I move the slider, my expansion of screen changes radically from 33% to 250%.

    As I was the one who asked this question, I send you this so you will know how it seems to have solved the problem. I use Google Chrome as my main browser and Internet Explorer my back-up.  My operating system is Vista.

    I updated to Chrome at the latested, I upgraded to Vista later.  I got the installer and driver for the touchpad.  I dropped the last of the mouse driver.  So I uninstalled the keyboard and the mouse.  I made sure he had not left on my machine except new software downloads.  I then installed the touchpad and its software.  Then I installed the mouse driver.  Again made sure all the old mouse software had disappeared, emptied the Recycle Bin and rebooted.

    The machine has been fine since.

    Hope this helps some of you.

  • Change language from Spanish to English on Vista Home Premium

    Title: can original I change the language from Spanish to English on visat home premium

    can I change language from Spanish to English on visat home premium

    laptop bought in Spain with vista home premium installed, how can I change the language I tried to change in the control panel?

    Hello

    None

    You cannot change languages in Vista Home Premium

    you need Ultimate or enterprise to do so

  • settings can continue to change for less bright display 20 minutes and never sleep, how to fix?

    settings can continue to change for less bright display 20 minutes and never sleep, how to fix? I took 1 hour, and it keeps changing back how to fix? I recently got a dynex keyboard and it has a sleep button I press the keyboard model number is DX-KBWM2.  How to fix?

    Hello Taperum,

    Thank you for the update on the question and sorry for a delayed response.

    If the problem still persists, there may be a chance that the problem is due to system files, so I suggest you to check the system files are they work very well or not and to check who are trying to run the (SFC) System File Checker tool.

    Scan SFC will be scans all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    • Go to Start, click all programs and open the Accessories.
    • Right-click on command prompt in the list programs, and then select run as administrator. If you are prompted for an administrator password or for confirmation, type your password, or click OK.
    • In the command prompt, type the following command and press ENTER:

    sfc/scannow

    For more information, refer to this link:

    http://support.Microsoft.com/kb/929833/en-us

    Get back to us with the result of the analysis so that we can offer you additional troubleshooting steps.

    Kind regards.

  • I changed computers from computer dell laptop for MacBook Pro andneed to donw load my Acrobat Pro on new computer

    I changed computers from computer dell laptop for MacBook Pro andneed to donw load my Acrobat Pro on new computer

    Hi haroldb52194010 ,

    Here to inform you if you have Acrobat Pro DC with license key, see this article for Exchange platform:- https://helpx.adobe.com/x-productkb/policy-pricing/exchange-product-language-os.html

    If you have Acrobat Pro Dc subscription, please refer to this article:- Download Adobe Acrobat DC (DC) | Company or VIP

    Would also like to inform you that DC only version is supported, if you any older version, then you must purchase the product for MAC OS closely by adobe on the seller.

    Kind regards

    Christian

  • Best way to run a script from a script

    Hello world

    I'm looking for running a script from an After Effects script, so far, there is aftereffects.executeScript (scriptContent) who use eval to run the script. The problem is that it uses eval so it is not really sure and he is slower. So I would like to know what is actually used when we file-> Script-> Run script file.

    As seen in the Javascript tool Guide CC page 168 in the section QAnywhere Corss-DOM.

    aftereffects.executeScript(theScriptContent); // Doesn't work with a script which as comments AND the script has access to my scope
    

    In addition, if there are comments like / * * / or / * / in the script I want to run, it no longer works.

    So, what is the best way to run a script from a script?

    If you want to evaluate a whole script file, you can use $.evalFile (file, timeout) - see description in ESTK object model viewer

    To evaluate a bit of code, you can use eval, that's for sure.

    Xavier

  • You can change the "From" email address (sender) so that the recipient will not ignore the email as spam?

    I want to change the 'From' (sender) email name and / or address so my recipients do not ignore my eSign as spam emails. It currently shows as coming from "Adobe Document Cloud Services eSign" <[email protected]>.  I would have preferred he be having my name and/or address e-mail partner so that the recipients do not forget it. Given that we have not sent the documents through this platform, historically, customers not expect an email from Adobe Document Cloud Services eSign. It is not convenient for e-mail clients before sending documents for signature, just to make sure they know to look for this e-mail and don't ignore it as spam. This would completely undermine the effectiveness of the use of this product.

    Hi Christine,

    When you start a transaction using eSign e-mail address will be the one you mentioned above, but it also displays the name of the sender. There is no provision to change the E-mail address of the sender.

    Thank you

    Abhishek

  • I subscribe to ICloud Creative pour a team of 2 people.  I was paying $ 114.95, taxes included. For two months, I pay $ 160,94 USD.  How to find l, subscription I had? can I make the change directly from my account?... .o

    I subscribe to ICloud Creative pour a team of 2 people.  I was paying $ 114.95, taxes included. For two months, I pay $ 160,94 USD.  How to find l, subscription I had? can I make the change directly from my account?... General do I contact Adobe?

    It's probably the passage of the special offer that lasts a full pot of for the price of one.

  • Is it possible to call an Applescript script from a jsx

    I can find lots of discussion around to call an applescript jsx script - but nothing on the other way round.  Is it possible to run a script from a script .jsx applescript?

    Yes, there are several ways to do this, please see...

    http://www.PS-scripts.com/BB/viewtopic.php?t=3109

Maybe you are looking for

  • Question about DVI on the Qosmio

    Is it possible to get a dvi to my Qosmio? I know the possibility with a dvi-pc-card, but a station host, port replicator, or something like that with dvi would be much better. Is not very importend, but it would be good to know if it is possible or n

  • Boot Camp can not install Windows because of the formatting?

    I have a 2012 MacBook Pro (500 GB to 8 GB memory storage) with the OS X 10.11.3. I try to install Windows 8 Pro (64-bit) using Boot Camp. When I restart my computer after creating the partition, I have two USB ins journal. They say Windows and the ot

  • Whenever I get a message I do not get a notification tone

    I don't get an alert tone when receiving messages or calls. So when someone calls I don't know if I'm looking at Skype and I don't know that I got a message until I see it in my bar tasks.

  • Laptop HP 1000: I can?

    Dear team I use 1000 HP laptop, seen processor of Pentium b960 but I need to upgrade the processor Core I family is it possible or not.

  • automatic creation of local variables

    Hello I have the impression that the idea I have is probably not possible, but I thought it wouldn't hurt to ask.  I connect CAN data using a cRIO and NI 9853 using the framework on the channel of convertion vi.  I have a selector of cases in which t