Help in the calculation of the Total Cycle time in days

All,

How to calculate the total duration in days... I have the start date, Date added, Date of the assignment and the Date of the seller

Concerning

number of days between the Start Date and Date added:

TIMESTAMPDIFF (SQL_TSI_DAY, StartDate, AddedDate)

The same model for others...

Tags: Business Intelligence

Similar Questions

  • Question about the accuracy of the Total remaining time for battery in Power Meter

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

    The remaining computing power comes from the numere questioning power management drivers and is a fairly complex calculation based on current usage (the amount of energy is consumed), the capacity of the battery (what total capacity is left and how fully charged is battery) and can also vary depending on what else is plugged into the USB port of the computer , what accessories (memory, video card, etc.) are installed, how good or bad, the battery is to maintain a charge and so on.  There is no particular reason to believe that maybe outside the right-out-of-the-box everything two laptops will show the same calculation even if they are all the same brand and model.

    "Horky.Chen" wrote in the new message: * e-mail address is removed from the privacy... *

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

  • How can I set up the allocation of time per day?

    I have blocked the times of day that children cannot use the computer, but how do I set up within those available after a time limit?

    Hello

    The feature of time safely of the family has changed recently. For more information, please see this sticky post:

    How to work the allocation of time and curfew?

    Thank you!

  • Need help with the control of time in labview

    Hello eveybody.

    In the image as an attachment, there is a vi that I did to control the amp.

    I give the amplitude value DBL to the amplifier as 50V or 60V and it's there on the amplifier.

    They problem is that I need to control the amplitude with the calendar. I like continious 50V for 5 sec, then peaking suddenly 100V for 1 second or 1msec and so on.

    What should I do?

    Any help...!

    Thank you adigator

    I find the solution and now I got what I thought...

  • need help with the CVI real-time

    Hello

    I'm new to CVI real-time and need help related to this. I'll explain my scenario:

    1. I have a few configuration files (INI). Need to validate the files (the range... check etc.) when the application is started.

    2. when the user clicks on 'START' in the user interface on the host machine, I need to generate outputs (analog/discrete...) according to the settings in the config file and read a few entries of other instruments. (I/O such tasks that generate outputs/inputs, I intend to perform beside reading RT)

    3. from the user interface, user can also change the configuration files. If the user modifies the files, file validation must again be made. After editing files, if the user clicks on START, the need to take the new entry to perfom tasks I/O configuration files.

    4. I am NOT using reflective memory for my application.

    I am confused in the following area:

    1 file validation during startup, I have to perform on host and on the side of RT?

    2. If the configuration files are changed in the host side user, how I send the names of files to RT? I think that I should not send the file names, I need to read from the file and its contents, I need to move on to Rt.... Pls correct me, I'm not sure about this...

    3. If I send the contents of the file to the RT, how do I do... I have to use structures, means... ???

    Please guide me. Any help would be much appreciated.

    Kind regards

    Samantha

    Hey Samantha,.

    1 file validation during startup, I have to perform on host and on the side of RT?

    It depends on the full range of responsibilities for INI files. If they are necessary simply to change what the I/O are for, then you would be technically just validate the content of the file INI on the side of the RT. However, you could post on both sides if you wanted to. However, I would probably set up as I have send a validation to the target control, have the target run a component of the code that validates the INI content based on how I loaded it and then returns a message that says if it meets the requirements I specified. However, if you are concerned with unloading of this process on the user's desktop (to the contrary increase the performance of the RT controller), you may FTP the file to the rheostat and perform the process of validation of the side host.

    2. If the configuration files are changed in the host side user, how I send the names of files to RT? I think that I should not send the file names, I need to read from the file and its contents, I need to move on to Rt.... Pls correct me, I'm not sure about this...

    You can send them to the target by FTP. This can be done programmatically, by MAX, command or a Web browser window.

    3. If I send the contents of the file to the RT, how do I do... I have to use structures, means... ???

    It is basically addressed in answer to question two. You would not need another structure in your code of RT to manage the FTP receive component as this is handled by the FTP Client/server communication. However, in case you successfully FTP a file to the target, you should probably send a message between the host and the target so that the target can react accordingly and reload the file I/O values, run an inactive procedure, or do what you want.

    I hope this helps. Have a great day!

  • BlackBerry smartphones, need help on the slow loading time

    I hope someone can help me with a problem with my Storm.

    I have a lot of lag when opening a number of apps on my Storm. For example, the opening to the top of the music, the screen will freeze for about a minute before finally moving to the correct screen.

    I tried to remove a larger file (a movie) and it has no positive effect on this problem.

    Anyone have any suggestions to solve this problem?

    Thanks in advance.

    You have several icons that you can click on when you are on the homepage of the storm.  The only icons that I have now showing are:
    Messages

    SMS and MMS

    Voice dialing

    Applications

    Setup

    Downloads

    Games

    Instant Messaging

    I moved all the other stuff in my Applications or Setup file.  All you have to do is highlight the icon, then click on the butten beside the Green talk button.  You can just click on move to a folder and then it will ask you with what folder to put it in.  Once you bring it about 8 icons, remove the battery and reinstall it.  That will reset everything and you will free up some memory.

  • Ask for help with the query group by

    Hello
    I have the following table with values structure
    CREATE TABLE DUMMY
      (
        SR_NUMBER          VARCHAR2(100 CHAR),
        ASSIGNMENT_GROUP   VARCHAR2(100 CHAR),
        REASSIGNMENT_COUNT VARCHAR2(100 CHAR),
        CREATED DATE,
        CLOSED DATE,
        TARGET_DATE DATE
     )
     
     insert into dummy values('AAA','A','1','02-OCT-11','25-OCT-11','09-OCT-11');
     insert into dummy values('ABC','A','1','03-SEP-12','26-SEP-11','10-SEP-11');
     insert into dummy values('AVB','A','1','02-NOV-13','25-NOV-13','09-NOV-13');
     insert into dummy values('AFT','B','1','02-OCT-11','25-OCT-11','09-OCT-11');
     insert into dummy values('ACS','B','1','02-JAN-12','25-JAN-12','09-JAN-12');
     insert into dummy values('AVC','B','1','02-OCT-13','25-OCT-13','09-OCT-13');
     insert into dummy values('AAD','B','1','02-MAR-14','25-MAR-14','09-MAR-14');
     insert into dummy values('AAA','C','1','02-OCT-11','25-OCT-11','09-OCT-11');
    insert into dummy values('AAA','D','1','02-JUN-11','25-JUN-11','09-JUN-11');
    insert into dummy values('AAA','E','1','02-APR-12','25-APR-12','09-APR-12');
    insert into dummy values('AAA','A','1','02-FEB-13','25-FEB-13','09-FEB-13');
    
    ?
    I have the following requirement, the output should be:

    Number of ticket (sr_number)
    % of tickets inside the DL
    Number of tickets inside the DL
    Average cycle time (cycle time = closing date - date of creation)
    Total cycle time (cycle time = closing date - date of creation)
    Number of reallocations (sum)


    DL - (deadline) formula is, closed date < = target_date

    This should be displayed, grouped by year, then month, then the assignment group. The values must be in descending order (dates) is not sure that group in operation here.
    I am able to write the code base of the foregoing, but group from the year, month, and group assignment is pretty confusing to me.


    Can someone give me a voucher code...

    This may not give you exactly what you want, but if all goes well, it will give you something to work with:

    WITH tickets AS (
      SELECT TO_CHAR(created, 'YYYY') created_year,
             TO_CHAR(created, 'MM') created_month,
             assignment_group,
             COUNT(sr_number) ticket_count,
             AVG(closed - created) avg_cycle_time,
             SUM(closed - created) tot_cycle_time,
             COUNT(reassignment_count) reassign_count
       FROM dummy
       GROUP BY TO_CHAR(created, 'YYYY'),
                TO_CHAR(created, 'MM'),
                assignment_group
    ),
    dl_tickets AS (
      SELECT TO_CHAR(created, 'YYYY') created_year,
             TO_CHAR(created, 'MM') created_month,
             assignment_group,
             COUNT(sr_number) ticket_in_dl_count
        FROM dummy
        WHERE closed <= target_date
        GROUP BY TO_CHAR(created, 'YYYY'),
              TO_CHAR(created, 'MM'),
              assignment_group
    )
    SELECT t.created_year,
           t.created_month,
           t.assignment_group,
           t.ticket_count,
           NVL(dl.ticket_in_dl_count, 0) ticket_in_dl_count,
           NVL(dl.ticket_in_dl_count/t.ticket_count, 0) * 100 pct_ticket_in_dl_count,
           t.avg_cycle_time,
           t.tot_cycle_time,
           t.reassign_count
      FROM tickets t,
           dl_tickets dl
      WHERE t.created_year = dl.created_year (+)
      AND t.created_month = dl.created_month (+)
      ORDER BY created_year DESC, created_month DESC
    

    Published by: user1983440 on May 27, 2013 15:47 - added reassign_count

    Published by: user1983440 on May 27, 2013 15:54 - added ORDER BY

  • How to get the total runtime of a file of tkprof

    Hello

    I have a file tkprof. How can I get the total execution time. Through the file I guess than the sum of "Total expected" would give the total time in the section "elapsed time are waiting on the following events:

    . Sample tkprof is given below.
    SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
    
    SELECT POSTED_FLAG 
    FROM
     AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM 
      AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND 
      NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND 
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR 
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND 
      APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING'))) 
    
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute    442      0.08       0.13          0          0          0           0
    Fetch      963      0.22       4.72        350      16955          0         521
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total     1406      0.31       4.85        350      16955          0         521
    
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 173     (recursive depth: 1)
    Number of plan statistics captured: 1
    
    Rows (1st) Rows (avg) Rows (max)  Row Source Operation
    ---------- ---------- ----------  ---------------------------------------------------
             1          1          1  UNION-ALL  (cr=38 pr=3 pw=0 time=139 us)
             1          1          1   TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
             1          1          1    INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
             0          0          0   NESTED LOOPS  (cr=33 pr=3 pw=0 time=20897 us)
             0          0          0    NESTED LOOPS  (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
             1          1          1     TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
             0          0          0     INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
             0          0          0    TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
    
    
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                       350        0.15          4.33
      Disk file operations I/O                        3        0.00          0.00
      latch: shared pool                              1        0.17          0.17
    ********************************************************************************

    user13019948 wrote:
    Hello

    I have a tkprof file. How can I get the total execution time.
    call count cpu elapsed disk query current rows
    ------- ------ -------- ---------- ---------- ---------- ---------- ----------
    total 1406 0.31 4.85 350 16955 0 521

    TOTAL ELAPSED TIME is 4.85 seconds from line above

  • Automatically set to the Date and time does not

    Date and time settings on my iPad Air set them automatically does not work? When I turn it out it will allow me to choose a city (Knoxville).

    When I turn it on with (location settings) it just turns and turns?

    Any ideas?

    Hello and welcome to Apple Support communities,

    This problem may be caused by a number of things, most often the cause is the device not being able to contact the time server. Here are the instructions from Apple supported for this problem, as well as a link to the appropriate article.

    Follow these steps, after each step:

    1. Make sure you have the latest version of iOS.
    2. Automatically turn on set in settings > general > Date & time. This will automatically put your date and time based on your time zone.
    3. Make sure that your time zone is set correctly. Tap Settings > general > Date & time > time zone.

    If you still have any questions affecting your date, time, or time zone, you can automatically disable in the settings > general > Date & time and manually set the time and time zone. Or contact your carrier.

    The option to enable the value automatically may not be available in all countries or all shells.

    If the time on your iOS device does not go after a sync with your computer, the computer may be time wrong. Check the time on your computer in system preferences > Date & time. You can select "Set date and time automatically."

    Support the Article HT203483

    Get help with the date and time on your iPhone, iPad and iPod touch - Apple Support

    Of course, if the time of your carrier server cannot connect the other option is to manually set the date and time until the carrier server are again available.

    Hope you helps out.

    Kind regards

    Peter.

  • The sense of time in sql

    Hi all

    A simple matter of time spent in v$ sql.

    I know that this means that a total duration when a query runs.

    I think that

    time elapsed time = cpu + user + application_wait_time o wait times
    + concurrency_wait_time + cluster_wait_time + plsql_exec_time + java_exec_time

    of course, the passage of time could not be exactly the same with a sum of above things, because its value is the cumulative value.

    but I have a few weird data. its value is 130% of the amount. I have no idea whence the other 30%.

    its value is too big to ignore.

    does anyone have an idea?

    (this is a kernel environment)

    Thanks in advance...

    Hello
    If you draw the session (10046) an application, following will be the result in the file path for each SQL statement

    SELECT "COSTCODE","INSERTDATETIME","LOTID","SOURCELOTID","STAGE","SUPPLIERID"
    FROM
     "ACTL_PARTINFO_CUST" "A" WHERE "SUPPLIERID"='RD1' AND "INSERTDATETIME"=
      TO_DATE('2010-08-18 07:05:00', 'yyyy-mm-dd hh24:mi:ss') AND "STAGE"=:1 AND
      "LOTID" LIKE 'C%' AND "COSTCODE"='A' AND "SOURCELOTID" LIKE 'F%'
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute 300372      3.27      69.85          0          0          0           0
    Fetch   300371   1916.42    6551.42          0  100023544          0           0
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total   600744   1919.69    6621.27          0  100023544          0           0
    
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 61  (DWDB_REPORTING)
    
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                  300371        0.02          0.64
      SQL*Net message from client                300371        5.33       4860.35
      latch: cache buffers chains                  7199        0.38         49.62
      latch free                                     99        0.04          0.72
      latch: enqueue hash chains                      5        0.03          0.07
    

    Here you can see the total elapsed time next to the database including waiting events.

    Salman

  • How can I find what is access to the Internet on the iPad (which runs 4 times a day) and using my data while traveling plan? Thank you

    My iPad access the internet 4 times per day (9 am/pm and 3 am/pm) and I need to know what it is and fix it as it uses all my data plan when you travel. Thank you

    A possibility: go to settings > cell phone and scroll down to "cell using data for. Under each name of app, it will show the amount of data used by this application since the last reset. You can reset the statistics at any time by scrolling all the way to the bottom of this screen and tapping reset statistics.

  • I get "Trial Expired" notice several times a day, even if I connect and the software license

    I still have an annual subscription of Acrobat, for some reason, the subscription doesn't "stick". I have the 'licence' the software several times per day to continue to use the tool. I see others have this problem with the CC products. What is the solution permanent?

    Hi Shayne,

    What is the level of access you have on this computer. Are you the domain user or you have local Admin Access.

    Try to download and install Adobe application Manager and log in with your Adobe ID: http://www.adobe.com/appsmanager/

    Looks like the problem you're reporting there is permission with your computer problem.

    Do you have any firewall or network security in place?

    Kind regards

    Ajlan Huda.

  • Total connection time how to account with GANYMEDE.

    Hi, we have the following scenario, this company uses two methods for remote access (for employees only): through RAS connections, or by using VPN clients to connect to a 535 PIX over the Internet. We need to do accounting for the total connection time, in the case of RAS connections is easy, we run AAA GANYMEDE + between the RA and the ACS (ver 2.1) and check the start/end time. But with the Internet connection start/stop time reflects the total time for each connection by user i.e. telnet, snmp, ftp, etc. but what connections can be simultaneous (or not), so we can not just add every time total of connections to a single user, it could be greater than the actual time that this user has been really connected. So how could account us for in this case total connection time?

    Thanks in advance for your recommendations

    Unfortunately you don't have. Accounting for users in the PIX VPN is on the Board to design for some time now, but so far has not been implemented. You can check the status on bug ID CSCdu01327 for other updates.

  • total run time based on sql id?

    Hello

    I wrote under query to find out the total run time sql and total executions happened based on sql id for each date. Can you get it someone please let me know if the output below is correct?

    SQL> SELECT
      trunc(begin_interval_time, 'DD'),
      ROUND(sum(elapsed_time_delta)/1000000) "Total Execution Time (sec)",
      ROUND(sum(executions_delta)) "Total Execution"
      FROM dba_hist_sqlstat a
      JOIN dba_hist_snapshot b
      ON a.snap_id = b.snap_id
      WHERE sql_id        = '8acg09uq48jzk'
      AND executions_delta>0
      GROUP BY trunc(begin_interval_time, 'DD')
      ORDER by trunc(begin_interval_time, 'DD') DESC;
    
    
    TRUNC(BEG Total Execution Time (sec) Total Execution
    --------- -------------------------- ---------------
    01-AUG-14                        160          122078
    31-JUL-14                       9309         1822147
    30-JUL-14                       6667         1845014
    29-JUL-14                       6196         1873091
    28-JUL-14                     277268         1517005
    27-JUL-14                      78546          794048
    26-JUL-14                       1359         1166650
    25-JUL-14                       7665         1826915
    24-JUL-14                       6786         1907862
    23-JUL-14                       8132         2019695
    22-JUL-14                       6611         1948861
    
    
    TRUNC(BEG Total Execution Time (sec) Total Execution
    --------- -------------------------- ---------------
    21-JUL-14                       7980         2948449
    20-JUL-14                       3226         3554316
    19-JUL-14                       3405         3222148
    18-JUL-14                      10179         2478602
    17-JUL-14                       7950         1972643
    16-JUL-14                       8465         2054012
    15-JUL-14                       8483         2248688
    14-JUL-14                       8644         2243460
    13-JUL-14                        942         1478516
    12-JUL-14                        985         1075398
    
    
    

    Generate AWR report during the period of interest and you will get more information.

    Apart from that, what problem you ar trying to solve. Please explain that

    You can also use the following, because you are looking for particular sql

    awrsqrpt. SQL > for individual ssql

    awrsqrpti. SQL > for sql on a particular instance... (useful in case of CARS)

    Kind regards

    Harman

  • Help in the calculation code

    Hello

    for example, I have this table and I want to get the total discount

    Quantity

    Discount

    10

    2 "per unit".
    102
    102

    he so well 10 * 2 for the first row.

    10 * 2 for the second row.

    10 * 2 for the third row

    If the total discount well be 60

    now I have a piece of text in a shape and want to get the total discount

    then I go to the property palette and to his (method of calculation) = "summary".

    and wrote this code in (filed form)

    Sum(Quantity * discount)

    and it does not work

    so I will be grateful if someone could help me in this

    Thank you

    Be invoked another a details column disc_val and change its property palette make formula field as quantity * discount.

    Quantity

    Discount

    disc_val

    10

    2 "per unit". 20
    10 2 20
    10 2 20

    Create a text with the name of tot_disc_val element and replace his property as follows:

    method of calculation: summary

    text-to-speech function: sum

    block summaries:

    Article Summary: disc_val

Maybe you are looking for