Need to filter the last tasks

I need to create an analysis that shows the number of tasks that took place yesterday, but since they ran twice they themselves were divided into two rows and two counts are presented. How to choose only the last race?
Ins.JPG

Please help me with this. Thanks in advance!

Hello

Try max (W insertdate by wid)

Concerning

K.

Tags: Business Intelligence

Similar Questions

  • I need to print the last value

    Hello
    in the Sub statement I need to print the last value
    means last 5555, I can print other values, but last value 5555 is I can't print
    Please help me
    SELECT REGEXP_SUBSTR('5454 4587454 547451 188745 5555','[^'||' '||']+'||' ',1,5)  p1 from dual;
    Thanks in advance
    David

    Karthick_Arp wrote:
    Like this

    with t
    as
    (
    select '5454 4587454 547451 188745 5555' str
    from dual
    )
    select regexp_substr(str, ' [[:digit:]]*$')
    from t
    

    Why leave space in front of her?

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select '5454 4587454 547451 188745 5555' str from dual)
      2  --
      3  select regexp_substr(str, '[0-9]+$')
      4* from t
    SQL> /
    
    REGE
    ----
    5555
    
    SQL>
    
  • Need to get the last value of the quarter

    Hi expert,

    I have data like this

    Amount DATE column column

    January $1 20

    |

    January 30, $50


    Fed 60 1
    |

    February 28, $80

    like that throughout the year


    I will provide the first promt and selects the 1st quarter. Then, it will show you Jan, Feb, March in the Date column and the respective amounts in the amount column.

    I need to put a formula into the amount column... So that I get the last day of the amonut of quarter.


    Any help is appreciated.

    Thank you
    V

    Published by: Vincent Krishna on May 25, 2011 06:43

    CASES WHERE 'Fiscal Date' = TIMESTAMPADD (SQL_TSI_DAY, TIMESTAMPADD (1), (SQL_TSI_QUARTER, 1, TIMESTAMPADD (SQL_TSI_DAY, DAY_OF_QUARTER (CURRENT_DATE) *-(1) CURRENT_DATE + 1))) THEN 'Fact - amount' END;

    Apply the filter above on your amount column.

    Thank you
    -Laurence.

  • What is the last task in an ora installation root

    Hello
    I installed the 11r2 db on a redhat box and ssh/xming failed just like Setup was about to run the final root task.
    I had rather trash not to install it and run the task manually. Would be a way to know what this last task from root of script? There are plenty of .sh files and no idea in the Setup log.
    Thank you
    Kevin

    At the end of the root.sh installation is executed and that can be found in $ORACLE_HOME. You can rerun that and that should give a clue which steps fail.

  • Need to retrieve the last line/record in a table

    Hello

    I have a requirement like getting the ending balance of the last record in the table and the same insertion in the opening balance of the immediatetly created the next record.

    In simple terms, I need to extract a value from the last line of the recording.

    For example, I use the query below

    Select rownum emp, empno, ename
    where rownum = (select count (rownum) from emp);

    But, the above query does not return all of the recording.

    Therefore, need help on this.

    Kind regards
    Shivakumar has

    Published by: shiva March 27, 2011 22:14

    Hello
    Strictly speaking there is no such LAST or FIRST folder until that order you them.
    But check the following:

    SELECT * FROM emp MINUS
    SELECT * FROM emp WHERE rownum<=(SELECT count(empno)-1 FROM emp);
    

    Kind regards
    Lakshmi.

  • Manager add-on said Java needs update, but the last Version already installed

    I have Java version SE7 U51 10.51.2.13 installed and works very well. Today, I 'upgraded' to 28.0 FF. Now Manager modules says Java is out of date, but when I go to the Java website, this is the latest version available. I downloaded the 32-bit and 64-bit versions in any case (even if I had already installed a month ago) and re-installed both. The FF Add-ons Manager always has the same caveat: "vulnerable species - Update now! Page Test in Java says I have the latest version, and it works.

    So what the devil?

    You can find the latest version of Java on Oracle's Web site.

    See the Platform Java > Java SE 8 (download the JRE 8)

    More quick is always download the full installer and uninstall the current version of Java before installing Java 8 version unless you need to keep the Java cache and downloaded applets.

  • You will need to expand the menu, task bars bars and icons on the desktop window.

    I need help re-sizing my bars Menu and the task and my icons to the desktop window. I'm not very good at re-sizing of these elements. I'm not good when it comes to a Web page in IE 8...

    Hello Deborah Wise.

    Check out the links that will help you change the resolution of the screen below. Resolution of the screen allows you to increase the size of the menu bar and the toolbar.

    Link:

    Change your screen resolution:http://windows.microsoft.com/en-US/windows7/Change-your-screen-resolution

    Make the text larger or smaller display:http://windows.microsoft.com/en-US/windows-vista/Make-the-text-on-your-screen-larger-or-smaller

    Change appear on the taskbar buttons:http://windows.microsoft.com/en-US/windows7/Change-how-buttons-appear-on-the-taskbar

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Need to get the last selected index to a button

    I have 3 buttons below the GRID: one to redirect to the edition, one page to redirect to the page of transfer and the other to redirect to the page of split. Because I wasn't able to find a way to have three buttons on each line of my cfgrid, I opted to put them below. Ticket helpdesk request concern.

    Naturally, when the user clicks one of these buttons, the system will be required to include the TICKETID in the url (as a parameter as TICKET = 346 where 346 will be the selected line, corresponding to this post). Everyone talks about the onChange and everyone talks about editable CFGRID controls but not many people seem to use the CFGRID controls in the way that I need! Is it just me or this component is really difficult when used with more needs? Anyway, I'm not here to argue about that, I just want to spend on this simple idea! Very easy to use bind in a form, but controls the CFGRID seems to have a wall for not having this facility even!

    All of the code that I have attached, examine the code in a Flash FORM.

    Thanks for any help!

    You know that programming can be a challenge sometimes when we try to get outside these examples gave everywhere. But, I still think that everything is possible and prove once again with this new problem, I got.

    I knew that somehwere in my head, is it possible to talk to the grid directly without establishing a remote connection to the network itself. You will find my solution residing on a function to call between cfformitem type = script.

    As all of these forums are analyzed regularly and be available from a GOOGLE search query (or one of your favorite search engine), I hope that this will help any programmer who are looking for this same challenge and finding not enough documentation to meet their needs. As you will see in the code, it is not so easy to pass the value to the specific column/line selected in your grid. In fact, once the solution is found, everything will be easier!

    Please note that my example also includes a filter at the top of the grid.

  • Need information about the last update of the Bios for Satellite L10

    Hello

    My computer is a Satellite L10-PSL10E.
    The Bios is Phoenix V1.60 dated 21/12/04.
    There is a new Bios (v2.80 - WIN dated 07/08/07) available on the Toshiba web site.
    What's new in this version?
    Allows to start on an external hard drive or usb key?

    Is it recommended to install updates if all works well on the computer?

    If everything works you don't need new BIOS. Be happy with good running operating system.

    If you want to boot from the external HARD drive to use the other operating system, it won't work.

  • Need to filter the data

    Version of Oracle, Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    Hi gurus

    I have the following data samples:

    Examples of data

    Select * from EMP;

    As with a REFERENCE

    (

    Select EMPNO 10, 100 DEPTNO, 'A' DOUBLE Categ

    Union of all the

    Select EMPNO 11, 100 DEPTNO, 'B' DOUBLE

    Union of all the

    Select 12 EMPNO, 100 DEPTNO, the DOUBLE ' C'

    Union of all the

    Select EMPNO 21, 200 DEPTNO, would be "of the DOUBLE

    Union of all the

    Select EMPNO 22, 200 DEPTNO, the DOUBLE "E"

    Union of all the

    Select EMPNO 23, 200 DEPTNO, 'F' of the DOUBLE

    )

    Select * reference

    order by 2;

    The query result

    EMPNO, DEPTNO, CATEG

    10 100 A

    11 100 B

    12 100 C

    21 200 D

    22 200 E

    23 200 F

    Required result

    EMPNO, DEPTNO, CATEG

    10 100 A

    11 100 B

    12 100 C

    21 200 D

    Rules

    I want to select all the data of deptno 100 but for deptno 200, I want only Categ = D...

    Is it possible to get this result using a where clause. I also got the result with the union, but I don't want the Union. Thanks in advance...

    Concerning

    Shu

    Can be

    Select *.

    reference

    where (deptno<>200 or (deptno = 200 and categ = has '))

  • How to view the last element in a dynamic table 1 d

    Hello..

    I want to display the value of the last element in a dynamic array 1 d... / I mean... If I stop the vi race, I need to display the last element of the array... How can I do this?

    and is it possible to use a button to start the vi... instead of using the Run button on the face before of the vi?

    An array of index!.  Size of table allows to determine the size of your array, subtract 1, that feed into the terminal array of Index index.

    You start the VI running somehow.  It can be assigned to run when opening.  Assuming that what you want is a way to type values in a front panel, press a GO button you created on the front panel, then have the real part of the VI to run.  You can use a structure of the event.  Or put a while loop at the beginning with a small wait next statement which basically just asks the GO button.  When you press this button, the Boolean value true stops the whole loop and allows the program to move on the main body of your program.

  • How to get the last message received in the Inbox?

    Currently I am using the following code to the list of messages in the Inbox.

    Folder[] folders = store.list(Folder.INBOX);Folder inbox = folders[0];Message[] msgs = inbox.getMessages();
    

    But, how could I do the last message that was received in my inbox at the moment?

    I have a lot of unread messages in my Inbox and I can even receive the same message from sender twice at the same time, but I need access to the last message you received.

    Thank you

    As I have a implements FolderListener, I need to get the last message of FolderEvent object. But, I tried to access the last Inbox message, which will not always be there!

    Thanks Deepesh

  • How to repeat the last random number

    Hi all!

    I have a timer and a random number (var myNumber: number = Math.ceil (Math.random () * 5);).

    I need to repeat the last random number, for example: 3-3, 4-4, 1-1, etc.

    Any suggestions?

    Thank you.

    use:

    kglad wrote:

    use:

     var myNum: Number;
    
    • var mySound: Sound = new Click();
    • var mySound2: Sound = new Sound2();
    • var fl_TimerInstance: timer = new Timer(1000, 30);
    • fl_TimerInstance.addEventListener (TimerEvent.TIMER, fl_TimerHandler);
    1. Count_It.addEventListener (MouseEvent.CLICK, Count_It);
    2. function Contalo(event: MouseEvent): void {}
    3. fl_TimerInstance.reset ();
    4. fl_TimerInstance.start ();
    5. }
    • function fl_TimerHandler(event: TimerEvent): void {}
    • If (event.currentCount % 2 == 1) {}
    • myNum = Math.ceil (Math.random () * 8);
    • trace (MyNum);
    • mySound.play ();
    • } else {}
    • mySound2.play ();
    • trace (MyNum);
    • }
    • }
  • Get the date of each month in the last year

    Hi all

    I need to find the last date of the month for the year.

    Example:

    I used to spend the date or such year 2012 or 01-01-2012(DD-MM-YYYY)

    SQL query should return the last date of the month as

    31/01/2012

    28/02/2012

    31/03/2012

    30/04/2012

    .

    .

    .

    .

    .

    12/31/2012

    For more top the requirement that I wrote the SQL code following

    select rownum as row_count,
    case when rownum=1 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as Jan_month,
    case when rownum=2 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as Feb_month,
    case when rownum=3 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as mar_month,
    case when rownum=4 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as apr_month,
    case when rownum=5 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as may_month,
    case when rownum=6 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as jun_month,
    case when rownum=7 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as jul_month,
    case when rownum=8 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as aug_month,
    case when rownum=9 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as sep_month,
    case when rownum=10 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as oct_month,
    case when rownum=11 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as nov_month,
    case when rownum=12 then last_day(to_date(add_months(trunc(to_date('01-01-2012','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end as dec_month
    
    
    from dual connect by level <= 12 order by rownum;
    
    
    
    
    

    Result

    Jan_MonthFeb_MonthMar_MonthApr_Monthmay_monthjun_monthjul_monthaug_monthsep_monthoct_monthnov_monthdec_month
    131/01/2014
    228/02/2014
    331/03/2014
    430/04/2014
    531/05/2014
    630/06/2014
    731/07/2014
    831/08/2014
    930/09/2014
    1031/10/2014
    1130/11/2014
    1212/31/2012

    Except the result:

    am result except as single line such as

    Jan_MonthFeb_MonthMar_MonthApr_Monthmay_monthjun_monthjul_monthaug_monthsep_monthoct_monthnov_monthdec_month
    31/01/201228/02/201231/03/201230/04/201231/05/201230/06/201231/07/201231/08/201230/09/201210/31/201230/11/201212/31/2012

    Kindly give me suggestion to archive more high result.

    Thanks and greetings

    Saami

    I agree with Marcus Pivot is the way to go on this subject... But on the other hand you almost solved yourself... it was just a max function for your results:

    ---------

    select
    max(case  when rownum=1 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as Jan_month,
    max(case  when rownum=2 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as Feb_month,
    max(case  when rownum=3 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as mar_month,
    max(case  when rownum=4 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as apr_month,
    max(case  when rownum=5 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as may_month,
    max(case  when rownum=6 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as jun_month,
    max(case  when rownum=7 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as jul_month,
    max(case  when rownum=8 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as aug_month,
    max(case  when rownum=9 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as sep_month,
    max(case  when rownum=10 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as oct_month,
    max(case  when rownum=11 then last_day(to_date(add_months(trunc(to_date('01-01-2014','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as nov_month,
    max(case  when rownum=12 then last_day(to_date(add_months(trunc(to_date('01-01-2012','DD-MM-YYYY'), 'YYYY'), level - 1), 'DD-MM-YY')) end) as dec_month
    from dual connect by level <= 12 order by rownum;
    

    AND to avoid hard-coding, you can also modify your query in the form:

    select
    max(case  when rownum=1 then last_day(to_date(to_char(rownum),'MM')) end) as Jan_month,
    max(case  when rownum=2 then last_day(to_date(to_char(rownum),'MM')) end) as Feb_month,
    max(case  when rownum=3 then last_day(to_date(to_char(rownum),'MM')) end) as mar_month,
    max(case  when rownum=4 then last_day(to_date(to_char(rownum),'MM')) end) as apr_month,
    max(case  when rownum=5 then last_day(to_date(to_char(rownum),'MM')) end) as may_month,
    max(case  when rownum=6 then last_day(to_date(to_char(rownum),'MM')) end) as jun_month,
    max(case  when rownum=7 then last_day(to_date(to_char(rownum),'MM')) end) as jul_month,
    max(case  when rownum=8 then last_day(to_date(to_char(rownum),'MM')) end) as aug_month,
    max(case  when rownum=9 then last_day(to_date(to_char(rownum),'MM')) end) as sep_month,
    max(case  when rownum=10 then last_day(to_date(to_char(rownum),'MM')) end) as oct_month,
    max(case  when rownum=11 then last_day(to_date(to_char(rownum),'MM')) end) as nov_month,
    max(case  when rownum=12 then last_day(to_date(to_char(rownum),'MM')) end) as dec_month
    from dual connect by level <= 12 order by rownum;
    

    Easy way: (without login)

    SELECT LAST_DAY (TO_DATE (ROWNUM, 'MM')) AS Jan_month,
           LAST_DAY (TO_DATE (ROWNUM + 1, 'MM')) AS Feb_month,
           LAST_DAY (TO_DATE (ROWNUM + 2, 'MM')) AS Mar_month,
           LAST_DAY (TO_DATE (ROWNUM + 3, 'MM')) AS Apr_month,
           LAST_DAY (TO_DATE (ROWNUM + 4, 'MM')) AS May_month,
           LAST_DAY (TO_DATE (ROWNUM + 5, 'MM')) AS Jun_month,
           LAST_DAY (TO_DATE (ROWNUM + 6, 'MM')) AS Jul_month,
           LAST_DAY (TO_DATE (ROWNUM + 7, 'MM')) AS Aug_month,
           LAST_DAY (TO_DATE (ROWNUM + 8, 'MM')) AS Sep_month,
           LAST_DAY (TO_DATE (ROWNUM + 9, 'MM')) AS Oct_month,
           LAST_DAY (TO_DATE (ROWNUM + 10, 'MM')) AS Nov_month,
           LAST_DAY (TO_DATE (ROWNUM + 11, 'MM')) AS Dec_month
      FROM DUAL
    

    See you soon,.

    Manik.

  • Select the last Date of multicolumn and its value adjustent cust_id

    I have a Table with 5 customer_id and 5 Dates with each belonging to its cust_id.

    I need to take the last, in my example would be CUSTID_5.  I know

    this with the GREATEST who select the CHANGE_DATE_5 (in my example), but

    How to choose the CUSTID_x? that goes along with the winning Date?

    create table test_tbl)

    number of custid_1

    date of change_date_1,

    number of custid_2

    date of change_date_2,

    number of custid_3

    date of change_date_3,

    number of custid_4

    date of change_date_4,

    number of custid_5

    date of change_date_5

    );

    INSERT INTO test_tbl

    (CUSTID_1, CHANGE_DATE_1, CUSTID_2, CHANGE_DATE_2, CUSTID_3, CHANGE_DATE_3, CUSTID_4, CHANGE_DATE_4, CUSTID_5, CHANGE_DATE_5)

    VALUES

    (111, sysdate, 222, sysdate + 1, 333, sysdate + 2, 444, sysdate + 3, 555, sysdate + 4);

    commit;

    Hello

    Here's one way:

    WITH unpivoted_data AS

    (

    SELECT custid, change_date

    , EVALUATE () OVER (ORDER BY change_date DESC) AS r_num

    OF test_tbl

    UNPIVOT ((custid, change_date)

    Label ((custid_1, change_date_1) AS 1)

    , (custid_2, change_date_2) AS 2

    , (custid_3, change_date_3) AS 3

    , (custid_4, change_date_4) AS 4

    , (custid_5, change_date_5) AS 5

    )

    )

    )

    SELECT custid, change_date

    Of unpivoted_data

    WHERE r_num = 1

    ;

    Having several columns for several occurrences of basically the same thing is a bad table.  This problem would be much simpler, but also more effective if each pair custid/change_date has been strored on a separate line.  In addition, you would not be limited to 5 pairs.

Maybe you are looking for