Issue date max back in 2009

Everyone knows about this problem?

Create the following new table and add the data...
CREATE TABLE ETL_LASTRUN
(
DATE OF CBX_TLEMSANI_2000TJE
)
/
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (DECEMBER 31, 2008 23:17:13 ',' DD/MM/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (DECEMBER 31, 2008 23:26:31 "," MM/DD/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (DECEMBER 31, 2008 23:36:35 ',' DD/MM/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (DECEMBER 31, 2008 23:46:23 ',' DD/MM/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (DECEMBER 31, 2008 23:56:30 "," MM/DD/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (JANUARY 1, 2009 00:06:36 ',' DD/MM/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (JANUARY 1, 2009 00:16:39 ',' DD/MM/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (JANUARY 1, 2009 00:26:30 "," MM/DD/YYYY HH24:MI:SS'));))
Insert into ETL_LASTRUN
(CBX_TLEMSANI_2000TJE)
Values
(TO_DATE (JANUARY 1, 2009 00:36:38 ',' DD/MM/YYYY HH24:MI:SS'));))
COMMIT;


Now, run the following query
SELECT MAX (to_char (CBX_tlemsani_2000tje, "MM/DD/YYYY HH24 '")) as CBX_tlemsani_2000tje FROM etl_lastrun

The results I get (using 10.2.0.1.0)
CBX_tlemsani_2000tje
=====
2008-12-31 23:56

Hello

This is because you take to_char max. try this instead:

select to_char(max(last_run), 'MM/DD/YYYY HH24:MI') as last_run
  from etl_lastrun

LAST_RUN
----------------
01/01/2009 00:36
1 row selected.

Best regards
Peter

Tags: Database

Similar Questions

  • Select Date Max with more than one result

    Hello;

    I need to write a query that returns the maximum date for a specific transaction that is not a problem, but my problem occurs when I have several transactions with the same date max trans.


    Can someone help me write something which will return only one record from a result set that has more than one record

    Example:

    TRAN_ID - LAW #-TRANS_DATE
    -272-1111111-29/10/1999 00:00:00
    -273-1111111-29/10/1999 00:00:00
    -274-1111111-29/10/1999 00:00:00
    -275-1111111-29/10/1999 00:00:00

    You are referring to your alias at the wrong level, try this:

    select * from (
    select account_transaction_id,
           account_number,
           max_days_in_arrears,
           trans_date,
           row_number() over(partition by account_number order by trans_date desc, account_transaction_id desc) as rn
      from account_transaction atr
     where max_days_in_arrears > 90
       and account_number in (100026, 121189, 100223)
       and trans_date = (select distinct max(trans_date)
                           from account_transaction
                          where account_number = atr.account_number
                            and max_days_in_arrears > 90)
     order by account_number, trans_date
    )
    where rn = 1;
    

    and use code tags please, so that your queries can still be read easily and quickly for us to understand.

    Published by: hoek on March 23, 2009 15:48

  • outer join while selecting the date max

    Hello
    Oracle 11g R2.

    I want to build a query that joins outside between 2 related tables, but selects only the date max if more than 1 record returned for a given customer. Here are the tables I and some records.

    create table customer (NumCli number, name varchar2 (100))
    create table orders (ordnum number, NumCli number, date orddate)

    insert into customers values (1, 'ABC')
    insert into customer values (2, 'DEF')
    insert into customer values (3, 'ABC')
    insert into customer values (4, 'DEF')

    insert into orders values (1, 1, sysdate)
    insert into orders values (2, 1, sysdate + 1)
    insert into orders values (3, 2, sysdate + 2)

    I created the following query, but it returns the two dates for NumCli = 1. I want to display the name of the client no matter if he has a prescription. But if there is more order, I want display the folder with the date max.

    Select a.custnum, b.SID, b.orddate
    client a, b of orders
    where a.custnum = b.custnum (+)
    and b.orddate (+) < = sysdate + 10 - additional criteria as part of the edition

    It is a simplified example of a more complex query, that I am trying to solve. If possible, could you please suggestion a request without the use of analytical functions or inline views?
    Thank you!!

    Published by: arizona9952 on April 4, 2013 22:05

    arizona9952 wrote:
    Thanks Jac. Any way to do this without a group of?

    Is there a particular reason not to use MAX?

    It will be difficult to find a maximum date without a group of... If it's ok for you to have everything available, you can use the correlated sub query...

    select a.custnum, a.name,
             (
               select b.orddate
               from   orders b
               where b.custnum = a.custnum
               and b.orddate <= sysdate + 10
               and rownum = 1 ) ordddate
    from customer a
    
  • Problem with date & time - guard back to 2009

    The date and time on my laptop keeps returning to a 2009 a whenever I have shut down my computer. This has only started happening recently and I don't know what started to happen.  Is there a simple solution to do this, in addition to having to put every time that I re - start.

    > The date and time on my laptop keeps returning to a 2009 a whenever I have shut down my computer.

    This indicates that your CMOS battery is NOT. It's time to replace it.

    What is CMOS battery:

    http://www.computer-hardware-explained.com/CMOS-battery.html

    How to replace the CMOS battery
    http://www.computerhope.com/issues/ch000239.htm

    * ATTENTION: then the battery itself is very good cheap, be careful if you decide to replace yourself.
    It is better to have another friend who knows also computer be with you together.

    The safest way is to pay the Department store. But it will cost you.
    Your call.

  • Issue date and time with the javascript scripts

    Hi all

    I need to maintain a bit of history on my pdf form, so I need to get the date and time when the user submits the form.  Currently, I am able to do this in FormCalc.

    var todayDate = Date()
    var todayTime = Time()
    var today = concat (Num2Date (todayDate, "MMMM DD, YYYY"), "", Num2Time (todayTime, "h: mm A") "");

    today will contain: April 28, 2009 14:23

    I want exactly the features in javascript.  I'm not able to get the same result.

    Please give me some code for the same in javascript snippet

    Deepak.

    Hi Deepak,

    This example should show you how you can recover each "piece" of the date in JavaScript and piece and then that their back together according to your needs.

    You will find several examples of scripts on the date formatting here: http://javascript.internet.com/time-date/

  • data max

    Hi all, I have the following data in the two tables.

    with the data as
    (
    Select ' 04.05.2010» dt, id 100, rate1 null, null, naturel2, null, null rate6, null, null brut8 rate7 rate5, ' AA + ' rate9 rate10 null, null interet11, rate12 null, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 12.02.2008» dt, 100 id, "A-" rate1, naturel2 null, null rate5 rate6 null, rate7 null, null, brut8, null rate9 rate10 null, null interet11, rate12 null, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 12.02.2008» dt, id 100, rate1 null, naturel2 ' A - 2', rate5 null, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the»
    Select ' 12.02.2008» dt, id 100, rate1 null, null naturel2, rate5 null, null rate6, rate7 null, null brut8, rate9 null, null rate10, 'A -' interet11, rate12 null, 'Xo3','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 11.25.2008» dt, 100 id, "A-" rate1, naturel2 null, null rate5 rate6 null, rate7 null, null, brut8, null rate9 rate10 null, null interet11, rate12 null, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 11.25.2008» dt, id 100, rate1 null, naturel2 ' A - 2', rate5 null, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, "Xo5','03.29.2010 09:53:38 ' T2D Union double all the»
    Select ' 11.25.2008» dt, id 100, rate1 null, naturel2, null, null rate5, 'F2' rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 11.25.2008» dt, id 100, rate1 null, null, naturel2, 'A -' rate5, rate6 null, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, "Xo5','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 10.31.2005» dt, 100 id, 'NR' rate1, naturel2 null, null rate5, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 10.31.2005» dt, id 100, rate1 null, naturel2 ' A - 2', rate5 null, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the»
    Select ' 10.31.2005» dt, id 100, rate1 null, naturel2, null, null rate5 rate6 null, null rate7, brut8 null, null rate9 rate10 null, null interet11, rate12 'A-1', 'Xo7','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 02.21.2005' dt, 100 id, 'NR' rate1, naturel2 null, null rate5, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, 'Xo8','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 02.21.2005' dt, id 100, rate1 null, naturel2 ' A - 2', rate5 null, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the»
    Select ' 02.21.2005' dt, id 100, rate1 null, naturel2, null, null rate5 rate6 null, 'NR' rate7, null brut8, rate9 null, null rate10, interet11 null, null rate12, "Xo9','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 12.02.2002» dt, 100 id, 'NR' rate1, naturel2 null, null rate5, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, 'Xo','03.29.2010 09:53:38 ' T2D Union double all the
    Select ' 12.02.2002» dt, id 100, rate1 null, naturel2 ' A - 2', rate5 null, null rate6, rate7 null, null brut8, rate9 null, null rate10, interet11 null, null rate12, "Xo0','03.29.2010 09:53:38 ' T2D Union double all the»
    Select ' 12.02.2002» dt, id 100, rate1 null, null, null rate5, null, null rate7 rate6 naturel2, brut8 ' P - 2', rate9 null, null rate10, interet11 null, null rate12, "Xo0','03.29.2010 09:53:38 ' double dt.

    ),
    data2 AS
    (
    Select ' 10.20.2009» dt, id 100 FROM dual;

    )

    I'm writing a query give me this output
    LIMIT1 DT RATING2 RATING5 RATING7 RATING8 RATING9 RATING10 RATING11 RATING12 RATING6
    02/12/2002 NR HAS-2 P-2 NULL NULL NULL NULL NULL NULL NULL
    21/02/2005 NR-2 A P-2 NR NULL NULL NULL NULL null NULL
    31/10/2005 A NR-2 P-2 of NR NULL NULL NULL NULL null a-1
    2008-11-25 A-A-2 A - F2 NR P-2 NULL NULL null a-1
    2008-12-02 A-A-2 A - F2 NR P-2 NULL NULL A-A-1
    10/20/2009-A-A-2 A - F2 NR P-2 NULL NULL A-A-1
    05/04/2010: A-A-2 A - F2 NR P-2 AA + A-A-1 NULL

    I tried to use max and group by, but it only gives me the max for the specific date. as you can see from the output above, 21/02/2005 in the data table has rating8 with null, but in the output above there P - 2. So basically when oracle gets to 21/02/2005 it will take the value of the previous date before max
    21/02/2005. in this case, it is 2002-12-02 and took the p-2 value.

    I need help to write a query for the above output. Thank you

    think you need a combination of the values top values last functions unfortunately I leave for the day and I do not understand everything understood but maybe someone could he finish for me

    with data1 as
    (
    select '04.05.2010' dt,100 id, null rate1, null rate2, null rate5, null rate6, null rate7, null rate8, 'AA+' rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '12.02.2008' dt, 100 id, 'A-' rate1, null rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '12.02.2008' dt, 100 id, null rate1, 'A-2' rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '12.02.2008' dt, 100 id, null rate1, null rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, 'A-' rate11, null rate12,'Xo3','03.29.2010 09:53:38' dt2 from dual union all
    select '11.25.2008' dt, 100 id, 'A-' rate1, null rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '11.25.2008' dt, 100 id, null rate1, 'A-2' rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo5','03.29.2010 09:53:38' dt2 from dual union all
    select '11.25.2008' dt, 100 id, null rate1, null rate2, null rate5, 'F2' rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '11.25.2008' dt, 100 id, null rate1, null rate2, 'A-' rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo5','03.29.2010 09:53:38' dt2 from dual union all
    select '10.31.2005' dt, 100 id, 'NR' rate1, null rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '10.31.2005' dt, 100 id, null rate1, 'A-2' rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '10.31.2005' dt, 100 id, null rate1, null rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, 'A-1' rate12,'Xo7','03.29.2010 09:53:38' dt2 from dual union all
    select '02.21.2005' dt, 100 id, 'NR' rate1, null rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo8','03.29.2010 09:53:38' dt2 from dual union all
    select '02.21.2005' dt, 100 id, null rate1, 'A-2' rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '02.21.2005' dt, 100 id, null rate1, null rate2, null rate5, null rate6, 'NR' rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo9','03.29.2010 09:53:38' dt2 from dual union all
    select '12.02.2002' dt, 100 id, 'NR' rate1, null rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo','03.29.2010 09:53:38' dt2 from dual union all
    select '12.02.2002' dt, 100 id, null rate1, 'A-2' rate2, null rate5, null rate6, null rate7, null rate8, null rate9, null rate10, null rate11, null rate12,'Xo0','03.29.2010 09:53:38' dt2 from dual union all
    select '12.02.2002' dt, 100 id, null rate1, null rate2, null rate5, null rate6, null rate7, 'P-2' rate8, null rate9, null rate10, null rate11, null rate12,'Xo0','03.29.2010 09:53:38' dt from dual
    
    ),
    data2 AS
    (
    select '10.20.2009' dt,100 id FROM dual
    
    )
    select id, dt,
    LAST_VALUE(ranking1 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking1,
    LAST_VALUE(ranking2 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking2,
    LAST_VALUE(ranking5 IGNORE NULLS)  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking5,
    LAST_VALUE(ranking6 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking6,
    LAST_VALUE(ranking8 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking8,
    LAST_VALUE(ranking9 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking9,
    LAST_VALUE(ranking10 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking10,
    LAST_VALUE(ranking11 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking11,
    LAST_VALUE(ranking12 IGNORE NULLS )  OVER (order by to_date(dt,'mm.dd.yyyy' ) ) ranking12
    
    from
    (select distinct data1.id, data1.dt,
           max(rate1) over (partition by data1.id, data1.dt) ranking1,
           max(rate2) over (partition by data1.id, data1.dt) ranking2,
           max(rate5) over (partition by data1.id, data1.dt) ranking5,
           max(rate6) over (partition by data1.id, data1.dt) ranking6,
           max(rate7) over (partition by data1.id, data1.dt) ranking7,
           max(rate8) over (partition by data1.id, data1.dt) ranking8,
           max(rate9) over (partition by data1.id, data1.dt) ranking9,
           max(rate10) over (partition by data1.id, data1.dt) ranking10,
           max(rate11) over (partition by data1.id, data1.dt) ranking11,
           max(rate12) over (partition by data1.id, data1.dt) ranking12
     from data1 , data2
     where data1.id = data2.id
     order by data1.id, to_date(data1.dt,'mm.dd.yyyy' ) )
     order by id, to_date(dt,'mm.dd.yyyy' )
    
  • MS Win 10 of BootCamp: date jumps back

    Hi all!

    Last year, I bought a Mac Mini (end of 2014) with OS X Yosemite and MS Win 8.1 on BootCamp = NO of PROBLEMS.

    Then I put to MS Win update August 10, 2015 = NO of PROBLEMS.

    Then I upgraded to OS X El Captain = NO of PROBLEMS.

    January 2016, a problem arose: the date and time to go back for a few weeks before.

    So, after the MSC and NVRAM resets, I reinstalled MS Win 10, but the problem doesn't go away.

    Now every day between 17:00 and 18:00, the time in MS Win 10 jumps on 25 February at 21:45.

    Any ideas to fix this?

    Thank you very much.

    Best regards.

    Alessandro

    Please see changed time after restarting Bootcamp system .

  • Failed to retrieve the DIAdem DataFinder research data, using data-finder toolkit LabVIEW 2009

    I am facing problem to retrieve the DIAdem Datafinder data.

    At first, I developed this project in LabVIEW 2010. But because of a problem that I met in LabVIEW 2010, I thougth to work on the project in LabVIEW 2009.

    Then, I reused the project that I created using LV 2010 using option economy for the previous version.

    When I tried to retrieve the data from the tiara using data finder toolkit. I got a 305505 warning. Please see the attached message of Warninig.

    But I have not seen this warning while I was working in LabVIEW 2010 and also, I was able to get the data from the tiara.

    Please suggest me a way to solve this problem.

    Hi Nanda,
    There is a bug when using the SDK use in combination with DataFinder Toolkit 2009.
    This bug is already fixed in LabVIEW 2010 and use SDK 2010. But as you said there is another question in LabVIEW 2010, forcing you to LV 2009.
    I suggest you use LabVIEW 2009 with use SDK 2009 and DataFinder Toolkit 2009 and instead to use the "Waveform.vi results" to read the search results, I would recommend to use the screw storage. I spread your example VI and it attached to this message. You will still see the dialog box to search for "lvStorage.dll" but it will automatically disappear and the VI works anyway because in this case LabVIEW will find the dll itself.
    My extended VI uses the '_openWithRoot.vi' to open a file with a different use than CT or PDM. This VI is also described in the following knowledge base article: http://zone.ni.com/devzone/cda/epd/p/id/4181
    With LabVIEW 2010 use support has been enhanced and fully integrated in the standard palette of storage screws. So in LabVIEW 2010, you can replace the "_openWithRoot.vi" with the 'Open Data Storage.vi' standard but with LabVIEW 2010, you can also use "Waveforms.vi results" to read the search results.

    I hope this helps.

    Kind regards
    Eva

  • Data on 'Back' button pressure only when the cursor is in the text field

    All,

    With the help of members of the forum, I understood how to use the 'Touch down?' event to send text series when the user presses the button «Back»  Is there any way I can limit this function so that the data is only sent when the cursor is in or on the correct text box AND the user presses the return key?

    Thank you very much.

    You will be most of the way, if you change the event handled in a key event down to the control of the string, rather than for all VI.  This way, you haven't really even to worry about key priorities.  You have control over the "Limit to the single line" value chain so the new line in fact will not be added to the string, but you will always have the event.

    The other problem is that you read the value of string outside of the structure of the event, so the value you write to the indicator will be flawed when it is written.  The string value is not actually until you press the Enter key.  The event fires at the point where you hit enter so that it uses the value that is on the line at the time, which is the value before you hit enter, then your indicator gets old.  There are several possible solutions.  A simple, but not necessarily good option must set "Update of value while typing" and assumes that the user will always wait for at least 10 ms between the last strike and enter.  Of course, if you increase the timeout value you may miss some characters, and there isn't really a need for a case of timeout to all in the structure of your event (just another case for the power button).  Putting control of the Terminal string inside the structure of the event does not solve the problem - again, the event occurs before the new value is treated - but, oddly enough, reading the value of a property within the structure of the event node works (while reading a local variable does not work).  It could also save a dynamic event that triggers the update based on the control indicator.  You can add a registry to offset Boolean to act as a flag and handle the case of the value has changed for the control of the chain as well.  In the case of the value has changed, if the Boolean value is set, updated to the indicator and always set to Boolean false.

    Sorry it's all rather complicated, there are quirks to LabVIEW treatment event.  Reliable the more straightforward approach is probably reading the control value of the string to a property node in the case of the event.  While property nodes are not generally recommended, especially for obtaining or the settting a value when the terminal is on the same side, in this case I think that it is the least complicated solution.

  • Date incorrecta desde Labview 2009 an Excel file

    WRONG FORUM.  PLEASE MOVE ON SPANISH FORUM. Thank you

    Hola. Estoy using el report generation Toolkit 1.0.1 para traspasar datos una tabla texting an Excel 2003 SP3.

    Dentro the hay una columna date tabla con formato DD/MM/YYYY HH: mmS (example 11/06/2009 09:35:12 where 6 are el dia y 11 is the my)

    Al usar easy Excel Table toda the tabla to pasa correctamente, pero if a date tiene el campo DD 13, hoja of excel appears invertida en menor (MM/DD/YYYY HH: mmS)

    No problema are no excel because if copio y pego esos campos of text directly no me los becomes. Lo me interesa are los the tabla of SMS texting me aparezcan en excel sin any cambio y por lo visto durante the export to hace alguna conversion.

    Esta are the tabla as quiero exportar

    El código Quebec uso como snipett:

    I hope someone can echarme una mano

    Gracias y a greeting

    Problem solved (well, sort of)

    With Excel 2000 date of export with the right format.

    In my case (excel 2003) I change the date format to "hh: MM/DD/MM/YYYY -S ' before export if excel interprets as pure text.

    THX.

  • My first system restore date is July 30, 2009, and I need a date of previous restoration to eliminate a virus! Help, please!

    I discovered a terrible virus named muwiropu.dll that I tried to get rid of weeks using a variety of anti-virus programs, nothing helps. It was 'created' July 6, 2009 according to its properties. At this point, I thought I should choose a "restore point" before this date - but the first 'date of the restoration', I see it as an option on my computer is on July 30, 2009. I tried to 'free' space to see if it could remedy the situation, but not drive. Other ideas to find somehow an earlier date to restore or to get rid of this virus? Basically, what I run, especially all the programs at startup, give me this error message (sometimes 25 times in a row): "the application or DLL"C:\Windows\system32\muwiropu.dll is not a valid Windows image. " Please check this against your installation diskette. "I don't know what to do to do this, go away!

    I read the messages on how to choose a date of system restore, but not how to find dates earlier than that displayed automatically.

    Eliza,
    I have fixed the thread in the original post and here's the URL: http://social.answers.microsoft.com/Forums/en-US/vistasecurity/thread/ba80504b-61f1-4d71-960f-b561798b7b42

    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problem with the Date Max filter in the mapping

    Hello

    I tried to put a filter on my mapping as mentioned below: -.

    TABLE_SOURCE. DATE > (SELECT NVL (MAX (DATE),'' 01-JAN-1900) OF TARGET_TABLE)

    I get the below mentioned, error in ODI 12 c performance: -.

    Aggregate expression is in the filter, but no aggregate expression in the select list of the query for target: TARGET_TABLE

    All I'm doing is making sure we receive only new records from the source. When I remove the NVL of the query, it works!

    Please help me solve the problem.

    Thank you and best regards,

    PV

    Hello

    Write your Condition of filter in this way:

    SRC_DATE > NVL ((select max (TRG_DATE) in TARGET_TABLE), January 1, 1900 "")



  • Obtain registration with the date max - rank question

    I use the statement below to get rank for records with the same data with max date. But I still see rank 1. Someone help me understand this?

    SELECT T.*,
           RANK() OVER(PARTITION BY T.UNIQUEID ORDER BY T.LOADDATE DESC) RNK
      FROM DEMO_TBL T
     ORDER BY T.STARTTIME ASC
    
    create table DEMO_TBL
    (
      NUMBERID  VARCHAR2(50),
      STARTTIME DATE,
      STOPTIME  DATE,
      TOTAL     NUMBER(19,10),
      UNIQUEID  NUMBER(10),
      LOADDATE  DATE
    );
    
    
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('01-07-2013', 'dd-mm-yyyy'), to_date('01-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 705.0000000000, 15353856, to_date('06-07-2013 12:58:57', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('02-07-2013', 'dd-mm-yyyy'), to_date('02-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 698.9950000000, 15353857, to_date('06-07-2013 12:57:08', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('03-07-2013', 'dd-mm-yyyy'), to_date('03-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 701.9970000000, 15353855, to_date('07-07-2013 12:58:17', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('04-07-2013', 'dd-mm-yyyy'), to_date('04-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.0020000000, 15353854, to_date('08-07-2013 13:00:07', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('05-07-2013', 'dd-mm-yyyy'), to_date('05-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 90.9970000000, 15353853, to_date('09-07-2013 12:59:35', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('06-07-2013', 'dd-mm-yyyy'), to_date('06-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.0060000000, 15353852, to_date('10-07-2013 12:56:36', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('07-07-2013', 'dd-mm-yyyy'), to_date('07-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.0020000000, 15353851, to_date('11-07-2013 13:02:47', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('08-07-2013', 'dd-mm-yyyy'), to_date('08-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.0010000000, 15353847, to_date('14-07-2013 13:01:26', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('08-07-2013', 'dd-mm-yyyy'), to_date('08-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.0010000000, 15353850, to_date('12-07-2013 12:55:28', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('09-07-2013', 'dd-mm-yyyy'), to_date('09-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 1015.4440000000, 15353842, to_date('23-07-2013 12:59:34', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('09-07-2013', 'dd-mm-yyyy'), to_date('09-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.0000000000, 15353849, to_date('14-07-2013 12:56:59', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('10-07-2013', 'dd-mm-yyyy'), to_date('10-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.0040000000, 15353848, to_date('14-07-2013 12:59:13', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('10-07-2013', 'dd-mm-yyyy'), to_date('10-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 1023.9450000000, 15353844, to_date('23-07-2013 12:59:02', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('11-07-2013', 'dd-mm-yyyy'), to_date('11-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 92.0010000000, 15353846, to_date('15-07-2013 12:57:14', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('11-07-2013', 'dd-mm-yyyy'), to_date('11-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 1019.0510000000, 15353841, to_date('23-07-2013 13:01:24', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('12-07-2013', 'dd-mm-yyyy'), to_date('12-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 1042.8390000000, 15353843, to_date('23-07-2013 12:59:34', 'dd-mm-yyyy hh24:mi:ss'));
    
    
    insert into DEMO_TBL (NUMBERID, STARTTIME, STOPTIME, TOTAL, UNIQUEID, LOADDATE)
    values ('11110008524705', to_date('12-07-2013', 'dd-mm-yyyy'), to_date('12-07-2013 23:59:59', 'dd-mm-yyyy hh24:mi:ss'), 91.9940000000, 15353845, to_date('16-07-2013 12:58:28', 'dd-mm-yyyy hh24:mi:ss'));
    

    you are looking to do this,

    SELECT T.*,
    max(t.starttime) OVER(PARTITION BY NUMBERID,STARTTIME,STOPTIME,TOTAL ORDER BY T.LOADDATE DESC) mx_strt_dt,
    max(t.stoptime) OVER(PARTITION BY NUMBERID,STARTTIME,STOPTIME,TOTAL ORDER BY T.LOADDATE DESC) mx_stop_dt
    
    FROM DEMO_TBL T
    ORDER BY T.STARTTIME ASC
    
  • How to get the different records for the date max.

    Hi all

    Here is the sample sql for sample table and data.

    Create table student (dept_id number(10), first_name varchar2(10),last_name varchar2(10),join_date date,years_attended number(10));

    insert into student values (1,'Ann','Coleman',to_date('3/7/1917','MM/DD/YYYY'),4);
    insert into student values (1,'Ann','Coleman',to_date('3/7/1916','MM/DD/YYYY'),5);
    insert into student values (2,'Rock','Star',to_date('1/1/1920','MM/DD/YYYY'),5);
    insert into student values (2,'Rock','Star',to_date('1/1/1921','MM/DD/YYYY'),6);
    insert into student values (3,'Jack','Smith',to_date('7/1/1900','MM/DD/YYYY'),3);

    insert into student values (3,'Jack','Smith',to_date('7/1/1901','MM/DD/YYYY'),4);

    commit;

    I need to get maximum date records when the name and dep_id corresponds to. I wrote the query below and it becomes the expected result, but I'm not sure it's quite effective.

    SELECT s.dept_id, s.first_name,s.years_attended

    FROM (SELECT dept, MAX (join_date) join_date

    STUDENT GROUP BY dept_id) x

    Student JOIN s ON x.dept_id = s.dept_id AND x.join_date = s.join_date;

    This above query returns records like below, and this is the goal.

    DEPT_ID NAME YEARS_ATTENDED

    1                         Ann                                4

    2                         Rock                              6

    3                         Jack                              4

    Can you please let me know the query SQL I wrote is effective or not? This sample table may have less data, but I'm dealing with millions of records.

    Hello

    Thanks for posting CREATE TABLE and INSERT statement. This really helps.

    Here's a solution. I also added a name that seems logical. In which case you can delete:

    Select dept_id, first_name, last_name

    , max (years_attended) Dungeon years_attended (last dense_rank order by join_date)

    the student

    Group of dept_id, first_name, last_name;

    DEPT_ID FIRST_NAME LAST_NAME YEARS_ATTENDED

    ---------- ---------- ---------- --------------

    1 Ann Coleman 4

    Rock 2 star 6

    3 Jack Smith 4

    Kind regards.

    Alberto

  • How to refresh data in backing bean-based component SelectOneChoice

    Hello.

    I use JD Studio Edition Version 11.1.1.5.0 on Weblogic 11.1.1.5

    I have the resulting page with SelectOneCoice fragment of the backing bean (used as filter)

    < af:selectOneChoice label = "#{projectBundle ['label.toolbar.spinbox.period']}" "

    valueChangeListener = "#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.onPeriodValueChangeListener} '"

    Binding = "#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.SOC2} '"

    ID = value = "#{pageFlowScope.ContentMainView.period"soc2"} ' autoSubmit ="true">"

    < f: selectItems value = "#{pageFlowScope.YearsListBean.yearItems} '"

    Binding = "#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.SI2}" id = "si2" / > "

    < / af:selectOneChoice >

    It supports bean which reads the data from the database and creates the list + adds value null

    package sk.web.view.bean;

    import java.util.ArrayList;

    import java.util.List;

    Import javax.faces.model.SelectItem;

    Import oracle.adf.model.binding.DCIteratorBinding;

    Import oracle.adf.share.logging.ADFLogger;

    Import oracle.jbo.Row;

    Import sk.web.view.common.utils.ADFUtils;

    /**

    * Class is supposed to provide a list of the years for the af:SelectOneChoice component.

    */

    public class YearsListBean {}

    private static final String PERIOD_ITERATOR_NAME = "PeriodView1Iterator"; Auto generated id

    private list < SelectItem > yearItems;

    public YearsListBean() {}

    Super();

    yearItems = new ArrayList < SelectItem > ();

    addYearsToList();

    }

    public void addYearsToList() {}

    DCIteratorBinding iter = null;

    ITER = ADFUtils.findIterator (PERIOD_ITERATOR_NAME);

    Rank [] rows = iter.getAllRowsInRange ();

    addYearItemToList ("", "");

    for (int i = 0; i < rows.length; i ++) {}

    Line = lines [i];

    log.info ("row [" + Integer.toString (i) + "]:" + rows [i].getAttribute("Year").toString ());

    addYearItemToList (rows [i].getAttribute("Year").toString (), rows [i].getAttribute("Year").toString ());

    }

    }

    public void clearYears() {}

    log.info ("called.");

    getYearItems () .clear ();

    }

    ' private void addYearItemToList (String strInYearLabel, String strInYearValue) {}

    SelectItem tObjItem = new SelectItem();

    Configuration object

    tObjItem.setLabel (strInYearLabel);

    tObjItem.setValue (strInYearValue);

    Add list ro

    yearItems.add (tObjItem);

    }

    public list < SelectItem > getYearItems() {}

    Get an output

    Return yearItems;

    }

    }

    When I insert the new record in the DB table, I want to see the new value in the filter. How to get there?

    I tryied to get the current instance of YearsListBean

    YearsListBean yearsList = (YearsListBean) FacesUtils.getManagedBean ("pageFlowScope.YearsListBean");

    Clear and then refill

    yearsList.clearYears ();

    yearsList.addYearsToList ();

    at the end I refresh view Add partial target

    AdfFacesContext.getCurrentInstance () .addPartialTarget (getSoc1 ());

    But this procedure does not work. Please help me find the working method.

    Thanks in advance.

    I found the bug in my code. I added partial target the wrong component. Now, refresh works fine.

Maybe you are looking for

  • I can't upgrade to watch OS 3

    I followed all the instructions on the Update software on your Apple Watch - Apple Support, but I always get the message "the 2.2.1 version is up-to-date. What to do?

  • How to get Windows key of the S55-A5279 Satellite?

    Hello world! I would like to know what kind of license WINDOWS of this machine.Is it possible to know, using the serial number of machine? I appreciate the response.Kind regards! (Sorry for my English, I'm not sure of what I wrote, I'm Spanish)

  • Dirty Scans of loading documents

    When I use the charger on top of the computer documents documents have streaks, the length of the page running. I don't have this problem when I scan from the flat bed. I get the same problem when I copy using the upper tray. How to clean it? David L

  • False promises...

    This morning I was browsing the web site of NOR and came across the "What's new in CVI" page here . As usual, the number of checkmarks increases with the version number , but I was surprised to see that the PID toolkit is supposed to belong to the CV

  • Clearing its IPSec on a PIX 515E

    Hello Is it possible to delete a particular IPSec security association to a PIX 515E Version 6.3 (1)? Concerning Lisbeth