gossip with code and date

Hi all
I have a PRODUCT (CODE, NAME, ID, DATE) table with millions of records, that have
inter - inventory of storage from 1 to 30 days, 100000 different products.
Months in the inter inventory comes different 110000 products, 9999 is newly (NEW) compared with recent months, 100000 is same as last monhts (NO CHANGE)
and it is deleted then last monhts (DEL). In the product table now I 210000, 100000 by 03/01/2012 dates and 110000 by 05/04/2012

are there solutions for query quickly giving comparison reports

Date new del nochange
03/01/2012
04/05/2012 9999 1 100000
05/06/2012 9970 203 98999
....... ... .... .....

12/10/2012...

concerning
Gordan

Hello

Maybe that's what you want:

with PRODUCT(ID,CODE,NAME,DT)
as
(
select 1,'P1','P1', to_date('01/03/2012','dd/mm/yyyy') from dual
union all select 2,'P2','P2', to_date('01/03/2012','dd/mm/yyyy') from dual
union all select 3,'P3','P3', to_date('01/03/2012','dd/mm/yyyy') from dual
union all select 4,'P4','P4', to_date('01/03/2012','dd/mm/yyyy') from dual
--
union all select 2,'P2','P2', to_date('05/04/2012','dd/mm/yyyy') from dual
union all select 3,'P3','P3', to_date('05/04/2012','dd/mm/yyyy') from dual
--
union all select 2,'P2','P2', to_date('06/05/2012','dd/mm/yyyy') from dual
union all select 4,'P4','P4', to_date('06/05/2012','dd/mm/yyyy') from dual
union all select 5,'P5','P5', to_date('06/05/2012','dd/mm/yyyy') from dual
-- end of sample data --
)
select
     dt
     ,new
     ,nvl( (lag(dtcnt) over (order by dt)) - nochange ,0) del
     ,nochange
from
(
     select
          dt
          ,sum(new) new
          ,sum(nochange) nochange
          ,avg(dtcnt) dtcnt
     from
     (
          select
               v.*
               ,case when trunc(prevdt,'mm')=add_months(trunc(dt,'mm'),-1) then 1 else 0 end nochange
               ,case when nvl(trunc(prevdt,'mm'),trunc(dt))!=add_months(trunc(dt,'mm'),-1) then 1 else 0 end new
          from (
               select
                    t.*
                    ,lag(dt) over (partition by id,code,name order by dt) prevdt
                    ,count(dt) over (partition by dt) dtcnt
               from product t
          ) v
     )
     group by dt
)
order by dt
/

Scott@my11g SQL>/

DT                         NEW        DEL   NOCHANGE
------------------- ---------- ---------- ----------
01/03/2012 00:00:00          4          0          0
05/04/2012 00:00:00          0          2          2
06/05/2012 00:00:00          2          1          1

There might be a simpler way to do...

You may also adapt the partition by clause to use ID, CODE and NAME in your actual data.

Tags: Database

Similar Questions

  • SQL query to group data by Code and dates

    Hello

    I have the following table structure

    col1 col2 col3
    January 21, 2012 tested Code1
    January 20, 2012 tested Code1
    June 1, 2012 tested Code1
    June 1, 2012 tested Code2
    code 3 tested June 4, 2012

    so now

    The output should be something like

    code week1 week semaine2 3 semaine4 week5 until the last 14 weeks from the date that we run
    code 1 1 0 0 0 0
    Code2 1 0 0 0 0
    code 3 0 1 0 0 0

    where 1, 0 is in fact the charges and no sum and the week in this case perhaps should since we are in the second week, he should be

    code... .week3 may semaine4 peut week1 jun week2june


    Was looking for suggestions on how to achieve this.

    I guess that this would require some kind of a pivot query?

    Thank you
    Sun

    Hello

    Here's how you can make this pivot in Oracle 10.2. (In fact, it will work in Oracle 9.1 or higher.)

    WITH  got_week_num  AS
    (
         SELECT  error_code, date_logged
         ,     1 + FLOOR ( ( TO_DATE (:end_dt_txt, 'DD-Mon-YYYY') - date_logged)
                         / 7
                     )     AS week_num
         FROM    data_analysis
         WHERE     date_logged     >= TO_DATE (:start_dt_txt, 'DD-Mon-YYYY')
         AND     date_logged     <  TO_DATE (:end_dt_txt,   'DD-Mon-YYYY') + 1
    )
    ,     all_weeks     AS
    (
         SELECT     LEVEL               AS week_num
         ,     TO_CHAR ( 1 + TO_DATE (:end_dt_txt, 'DD-Mon-YYYY')
                       - (7 * LEVEL)
                   , 'fmDD-Mon-YYYY'
                   )          AS heading
         FROM    dual
         CONNECT BY     LEVEL <= 1 + FLOOR ( ( TO_DATE (:end_dt_txt,   'DD-Mon-YYYY')
                                             - TO_DATE (:start_dt_txt, 'DD-Mon-YYYY')
                                  )
                                / 7
                                )
    )
    SELECT       NULL                                   AS error_code
    ,       MIN (CASE WHEN week_num =  1 THEN heading END)     AS week_1
    ,       MIN (CASE WHEN week_num =  2 THEN heading END)     AS week_2
    --       ...
    ,       MIN (CASE WHEN week_num =  5 THEN heading END)     AS week_5
    FROM       all_weeks
           --
         UNION ALL
                --
    SELECT       error_code
    ,       TO_CHAR (COUNT (CASE WHEN week_num =  1 THEN 1 END))     AS week_1
    ,       TO_CHAR (COUNT (CASE WHEN week_num =  2 THEN 1 END))     AS week_2
    --       ...
    ,       TO_CHAR (COUNT (CASE WHEN week_num =  5 THEN 1 END))     AS week_5
    FROM       got_week_num
    GROUP BY  error_code
                 --
    ORDER BY  error_code     NULLS FIRST
    ;
    

    Output:

    ERROR_CODE WEEK_1      WEEK_2      WEEK_5
    ---------- ----------- ----------- -----------
               4-Jun-2012  28-May-2012 7-May-2012
    a          3           0           0
    b          0           2           1
    c          0           0           1
    

    Once more, the number of columns, such as aliases, is hard-coded in the query.
    If you want the number of columns, or their aliases depends on the data in the table, then you need dynamic SQL. See {message identifier: = 3527823}

    Did you ever what defined a "week" is in this query?
    The query above makes week_1 end to the given date (: end_dt_txt). The first week (in other words, an ioncluding: start_dt_txt) may have less than 7 days.
    If you want all the weeks to start Monday (in which case, the first and the last few weeks may have less than 7 days) see stew solution, using TRUNC (date_logged, 'IW').

  • Is it possible to use the Apple Watch with bluetooth and data celular (for example in a remote area withouth wifi)?

    Apple Watch with bluetooth

    Hello

    Apple Watch can still be used in conjunction with the matched iPhone (which is based on cellular services) in places where there is no Wi - Fi network.

    The availability of some built-in and third-party applications can vary, depending on your cellular data settings and a network of cellular data speeds.

    If your question relates also to longer term, it is not currently possible to update the software on Apple Watch unless the paired iPhone is connected to a Wi - Fi network.

    Some built-in functions of Apple Watch can still be used even when the pair iPhone is not available via Bluetooth or Wi - Fi.

    More information:

    Bluetooth and Wi - Fi on Apple Watch

    Use Apple Watch without her sister iPhone - Apple Support

  • help with LAG () AND dates

    I have at this moment the following query
      SELECT "DATE",
              "CELL_SITE",
              "LASTV_ATTCNT",
              "LASTV_ATTCNT2",
              "LASTV_BLKCNT",
              "LASTV_DRPCNT",
              "V_ATT_CNT",
              "V_CUST_BLK_CNT",
              "V_DRP_CALL_CNT",
              "LASTD_ATTCNT",
              "LASTD_BLKCNT",
              "LASTD_DRPCNT",
              "D_ATT_CNT",
              "D_CUST_BLK_CNT",
              "D_DRP_CALL_CNT"          
         FROM (  SELECT DATE,
                       CELL_SITE,
                        LAG (SUM (V_ATT_CNT), 24)
                           OVER (PARTITION BY BSM_NM ORDER BY DATE)
                           AS "LASTV_ATTCNT",
                        LAG (SUM (V_CUST_BLK_CNT), 24)
                           OVER (PARTITION BY BSM_NM ORDER BY DATE)
                           AS "LASTV_BLKCNT",
                        LAG (SUM (V_DRP_CALL_CNT), 24)
                           OVER (PARTITION BY BSM_NM ORDER BY DATE)
                           AS "LASTV_DRPCNT",
                        LAG (SUM (D_ATT_CNT), 24)
                           OVER (PARTITION BY BSM_NM ORDER BY DATE)
                           AS "LASTD_ATTCNT",
                        LAG (SUM (D_CUST_BLK_CNT), 24)
                           OVER (PARTITION BY BSM_NM ORDER BY DATE)
                           AS "LASTD_BLKCNT",
                        LAG (SUM (D_DRP_CALL_CNT), 24)
                           OVER (PARTITION BY BSM_NM ORDER BY DATE)
                           AS "LASTD_DRPCNT",
                        SUM (V_ATT_CNT) AS "V_ATT_CNT",
                        SUM (V_CUST_BLK_CNT) AS "V_CUST_BLK_CNT",
                        SUM (V_DRP_CALL_CNT) AS "V_DRP_CALL_CNT",
                        SUM (D_ATT_CNT) AS "D_ATT_CNT",
                        SUM (D_CUST_BLK_CNT) AS "D_CUST_BLK_CNT",
                        SUM (D_DRP_CALL_CNT) AS "D_DRP_CALL_CNT"
                   FROM DMSN.DS3R_FH_1XRTT_FA_LVL_KPI
                  WHERE DATE >
                             (SELECT MAX (DATE) FROM DMSN.DS3R_FH_1XRTT_FA_LVL_KPI)
                           - 2
               GROUP BY DATE, CELL_SITE)
        WHERE DATE >=
                 (SELECT MAX (DATE) - NUMTODSINTERVAL (12, 'HOUR')
                    FROM DMSN.DS3R_FH_1XRTT_FA_LVL_KPI)
    What I've noticed, is that the LAG function is kind of what I want but not exactly. Let's say that I have given for the hours of 12: 00, 01:00, 02:00, 03:00 04:00, 05:00, 06:00, 07:00, 08:00, 09:00, 10:00, 11:00, 12:00 and the time is 12:00, the LAG function goes back to 12 h, which is what he should do.

    but lets say that I have given for 12 h, 01:00, 02:00, 03:00 04:00, 05:00, 07:00, 08:00, 09:00, 10:00, 11:00, 12:00, but it me MISSING at 06:00 (no data from 06:00). The lag function now back at 23:00 instead of 12 AM because the time 06:00 is missing.

    If I have data for 12: 00 01:00, 02:00, 03:00 04:00, 07:00, 08:00, 09:00, 10:00, 11:00, 12:00 and am MISSING 05:00 and 06:00, the data will return to 22:00 then and not only from 12: 00.

    Can I prevent this and always just come back in 12 hours?

    Published by: k1ng87 on April 25, 2013 13:27

    Hello

    k1ng87 wrote:

    ...
    LAG (SUM (V_ATT_CNT), 24)
    OVER (PARTITION BY BSM_NM ORDER BY DATE)
    AS "LASTV_ATTCNT",
    LAG (SUM (V_CUST_BLK_CNT), 24)
    OVER (PARTITION BY BSM_NM ORDER BY DATE)
    AS "LASTV_BLKCNT",
    LAG (SUM (V_DRP_CALL_CNT), 24)
    OVER (PARTITION BY BSM_NM ORDER BY DATE)
    AS "LASTV_DRPCNT",
    ...
    

    Since you want to so many columns of the same previous row, it would be probably easier and more effective to make a self-join, rather than so many functions of SHIFT.

    What I've noticed, is that the LAG function is kind of what I want but not exactly. Let's say that I have given for the hours of 12: 00, 01:00, 02:00, 03:00 04:00, 05:00, 06:00, 07:00, 08:00, 09:00, 10:00, 11:00, 12:00 and the time is 12:00, the LAG function goes back to 12 h, which is what he should do.

    You always pass 24 as 2nd argument offset; What does "Return the value of the line 24 of the precding." If there is a line for each hour, the current line is from 12:00, then wouldn't 24 ranks back would be from 12:00 yesterday, not 12 AM? Maybe you wanted to spend 12, not 24, as the second argument of LAG. I'll assume you really want the 24 line rom now on, but the technique is the same that that number either 24 or 12.

    but lets say that I have given for 12 h, 01:00, 02:00, 03:00 04:00, 05:00, 07:00, 08:00, 09:00, 10:00, 11:00, 12:00, but it me MISSING at 06:00 (no data from 06:00). The lag function now back at 23:00 instead of 12 AM because the time 06:00 is missing.

    If I have data for 12: 00 01:00, 02:00, 03:00 04:00, 07:00, 08:00, 09:00, 10:00, 11:00, 12:00 and am MISSING 05:00 and 06:00, the data will return to 22:00 then and not only from 12: 00.

    Can I prevent this and always just come back in 12 hours?

    A self-join would handle this automatically: it will look for the corresponding line, without regard for other lines may be present or absent.

    If you really had to do with the analytical functions, you can use MIN or FIRST_VALUE with a window of the range:

    RANGE BETWEEN  1 + (.5 / 24)  PRECEDING
          AND      1 - (.5 / 24)  PRECEDING
    

    DATE when you ORDER BY a column (do not call ' DATE'), the units are 1 day, so 1 + (.5/24) days ago is 24.5 hours; in other words, the window includes only DATES between 24.5 and 23.5 hours.

    If, for some reason, you really want to call LAG, so you could do an outer join to ensure that a row had been present for each of the previous 24 hours.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Update with Decode and Dates of business statement

    Hi all

    I need to write a statement of up to DATE using the date of business rule. In general, the due date is 30 days from the date of payment. If the due date falls on a Saturday or Sunday then the term of the loan is 32 days.
    I know that to test a day of week, I would need to use the function to_char in Oracle with the format of a '. I did some research and found that to test what the week falls on November 12, 2007, I would need to use the expression to_char('12-NOV-2007','D'). This function returns a number between 1 and 7. 1 represents Sunday, 2 Monday,..., 7 Saturday.

    What I really would need to do, is to write a single UPDATE statement using an expression with the Decode function and to_Char function:
    UPDATE book_trans SET due_dte = expression

    These are operations that will need to be updated:
    ISBN 0-07-225790-3 retrieved on November 15, 2007 per employee 101 (book_trans_id = 1)
    ISBN 0-07-225790-3 retrieved on November 12, 2007 by employee 151 (book_trans_id = 2)
    ISBN 0-201-69471-9 retrieved on 14 November 2007 by employee 175 (book_trans_id = 3)
    ISBN 0-12-369379-9 checked on November 16, 2007 by employee 201(book_trans_id=4)

    Manually, I calculated the maturity dte and writes the update to each book_trans_id statement:

    UPDATE book_trans SET due_dte is 17-dec-07' WHERE book_trans_id = 1;.
    UPDATE book_trans SET due_dte is 12-dec-07' WHERE book_trans_id = 2;.
    UPDATE book_trans SET due_dte is 14-dec-07' WHERE book_trans_id = 3;.
    UPDATE book_trans SET due_dte is 18-dec-07' WHERE book_trans_id = 4;.

    As you can see, it is very heavy and I just want to know how to integrate everything into a single Update statement:
    UPDATE book_trans SET due_dte = expression
    So if a due date falls on Saturday or Sunday, the loan period 32 days; day of week, length of the loan is 30 days.

    Advice or assistance will be greatly appreciated. Thank you!
    due_date := checkout_date + 30 + decode(to_char(checkout_date + 30,'DY'),'SAT',2,'SUN',1,0)
    

    Concerning

    Etbin

  • TTITLE with title and data

    Hello
    I want to put on the head of a report only a description and the date, but not "Page n" using TTITLE.
    Could you give me the proper syntax?
    "I know that by writing TTITLE CENTER 'REPORT' I get the REPORT on the head, but if I write TTITLE 'REPORT' I get ' Mon Mar 29 REPORT Pag. "' 1', while I would only" MON 29 Mar REPORT. "
    Is this possible?
    Thank you!

    Like this?

    PRAZY@11gR1> col TODAY noprint new_value CURDATE
    PRAZY@11gR1> select to_char(sysdate,'DD-Mon-YYYY') TODAY from dual;
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> ttitle left CURDATE center 'REPORT' skip 2
    PRAZY@11gR1> select * from emp;
    
    31-Mar-2010                                    REPORT
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT      ANALYST         7566 09-DEC-82       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 12-JAN-83       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    
    14 rows selected.
    
    Elapsed: 00:00:00.00
    

    or... just with a single query and with different date format.

    PRAZY@11gR1> col TODAY noprint new_value CURDATE
    PRAZY@11gR1> ttitle left CURDATE center 'REPORT' SKIP 2
    PRAZY@11gR1> select e.*,to_char(sysdate,'DD.Mon''YY') TODAY from emp e;
    
    31.Mar'10                                      REPORT
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT      ANALYST         7566 09-DEC-82       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 12-JAN-83       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    
    14 rows selected.
    
    Elapsed: 00:00:00.00
    

    Kind regards
    Prazy

  • Problem with forms and data replication

    Hello

    I made a couple of documents more early where I used forms and specificely textfields. The documents have two parts, one for teachers and one for students (a small certificate). The idea is to fill the data in a part of the document, and transfers this information to the corresponding field. It worked before, I just named the fields exactly the same thing.

    Now, I do another one of these documents and it doesn't work anymore - information does not already exist. Old documents, which worked before, does not work if I export them again... I think that the program has been updated since the old documents were made. Does anyone know how to fix this? And I apologize for the mistakes of language

    There seems to be a bug (feature? surely not!) in the last update of InDesign (2015.4) that if two fields in InDesign are defined to have the same name, they are renamed to export.

    This means that in Acrobat, these two fields will have different names.

    This is why the text field does not appear in the other field - to do this, they must have the same name and the latest version of InDesign broke it.

    Workaround for now is to rename the fields in Acrobat, so that they have the same name again. Then, you should find that the text is reproduced from one field to another as before.

    Ariel

  • I'm looking at my profile account with name and date of birth my account hacked was ein Arabic languag

    Also when my window of the page it says the Hotmail team. I deleted all my contacts in Messenger who was my contact.  The names strange people was that I left there.  I also knew this person use one of my email more old which starts * address email is removed from the privacy *.

    I am trying to view my account and I will not allow myself. I also close the account, it is always active until 270days. It's no good because the person who hacked it should my information.  Please help me.   Maria

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

  • How do you remove 2d copy of window XP Pro in bootcamp without damaging original XP Pro and data?

    Window XP pro in Bootcamp is size of 25 GB of Fusion Activated. By mistake, have also a second copy of Windows XP in Bootcamp is 5 GB. The two files are .vmwarevm. Lack of disk pace only allowed 32 GB size. Must remove copies of 5 GB of Window XP without original damaging with application and data window (25 GB). Error message "Sorry the operation cannot be completed because an unexpected error occurred (error code 1407) when you try to move to the trash. Help

    You must come to my Guickbooks and payroll.

    BillPTC wrote:

    Copyied the grazing of Window XP Pro.vmwarevm folder of Mac, he ran, deleted Bootcamp and had a heart attack because it could not find path. My mistake that I said that I had not moved the file but went to the last and she came back.

    That mistake has nothing to do with that said vs "I copied it", "I moved it" and entry into the library of Virtual Machine that shows the error, because there is no longer the path can be removed from the library Virtual Machine.  CTRL-click on the entry for the one who does not work, then select Remove.

    I exempt backup capsal Virtial Machine time under Documents.

    It seems to work.

    I can I have copied in the wrong place because you can't see the file under user/bill/document/virtual machine/folder.

    Not sure if thi is a problem.

    Well, if you are exempted from a folder and package kidnapped virtual is not in this folder, then of course, it is a problem because the packaging of the VM get backed up by Time Machine then I suggest that you correct the situation.

    Under Capssule time I deleted backup for Fusion App in your applications because I assume that the large 27 GB file is there.

    If not, where should I go to stop the time Capsule this large file to backup every hour.

    Why the hell you would make such an assumption!  The beam of Fusion.app from VMware is separate and outside the .vmwarevm Package and files/folders are backed up by using the same relative paths because they reside on the Macintosh hard drive.  The only way that a real Virtual Machine you created would be inside the VMware Fusion.app Bundle is if you put unfairly here.  All you have to do the Virtual Machine library is ctrl - click on the target of the Virtual Machine and select Show in Finder and the ctrl + click the target Virtual Machine package and select information and look where he is.  The last part of what I just said is nothing more basic file management.

    Still no undersyand why it works without Bootcamp and be applied to run the two without having to reboot to move backward. I question the manual I was for level 1 and updated version to version 2 have to be diferent.

    You don't need to use Boot Camp in the VMware Fusion installation order and create normal file based on Virtual Machines.  Boot Camp is part of OS X 10.5 and later versions and is independent and has nothing to do with VMware Fusion, except if you also want to start the native Windows Installer on the Boot Camp partition in a Machine virtual Raw disk.  Take a look at choose settings of VM of law because it might help you understand a little more.

  • my Apple Watch does not record the data of my activity on my iPhone. The application of the activity is implemented on my watch and twinned with phone and not yet to record data.

    my Apple Watch does not record the data of my activity on my iPhone. The application of the activity is implemented on my watch and twinned with phone and not yet to record data.

    HI - try the following steps:

    On your iPhone close application of activity and also, if it runs in the background, the health app (you can close open apps, including the app shows):

    -Double-click the Home button, and then drag upward on each of the app previews to close.

    It can help to restart your iPhone and your watch. Turn on both devices off the power together first, and then restart your iPhone before restarting your watch:

    -To switch off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off;

    -To switch on: press and hold the side button until you see the Apple logo.

    If this does not resolve the problem, try next disconnect and rematching of your watch:

    -L'app shows on your iPhone shows backups automatically, including a new when the unpairing via the application.

    -Choose to restore the watch (backup restore) when provided the opportunity during the whole.

    -Most of the data and settings will be restored, with a few exceptions (for example cards Pay Apple, access code).

    - Pairing your Apple Watch and Support Apple - iPhone

    - Set up your Apple Watch - Apple Support

  • Difference of dates with conditions and several lines

    Hello, I need to make a difference in the dates (seconds) from several lines of the eve of string comparison. FEA
    CREATE TABLE     evtmsg
    (       evt_date             DATE,
         message          VARCHAR2 (50)
    );
     
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 8:39:05', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02MCD-1 fail');
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 8:39:05', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02MAD-1 return');
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 8:39:05', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02MCD-1 return');
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 8:38:50', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02ZPD-1 fail');
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 8:38:50', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02MAD-1 fail');
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 8:38:38', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02MCD-1 fail');
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 5:40:36', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02MCD-1 return');
    INSERT INTO evtmsg (evt_date, message) VALUES (TO_DATE ('22/09/2010 5:40:22', 'DD/MM/YYYY HH24:MI:SS'), 'UTR 02MCD-1 fail');
    "I need to complete the following table with time for each difference '"UTR 02XXXXXX"between the failure and return substr (message, 1, 11) I think * UTR 02MCD-1 *.

    {code}
    CREATE TABLE test
    (DATE date1,
    date2 DATE,
    VARCHAR2 (50) MSG
    );
    {code}

    And accurate data, that I need to get and to insert in the test tables are as follows:
    {code}
    2010-09-22 05:40:22-2010-09-21 05:40:36 UTR 02MCD-1 time of failure = 14 seconds
    22/09/2010 08:38:38-21/09/2010 08:39:05 UTR 02MCD-1 time of failure = 27 seconds
    22/09/2010 08:38:50-2010-09-21 08:39:05 UTR 02MAD-1 hour of default = 15 seconds
    22/09/2010 08:38:50 - UTR 02ZPD-1 time of failure =
    22/09/2010 08:39:05 - UTR 02MCD-1 time of failure =

    {code}

    I'll do this task every morning for the eve and UTR returns always but sometimes for the next day (not usually, but sometimes it happens). I managed to do something like that, but I don't know how to do for multiple lines and get you substr UTR 02XXXXX for each of them.

    {code}
    DECLARE
    date of the value of start_time;
    date of finish_time;
    elapsed_time number (20);

    BEGIN

    Select evt_date
    in start_time
    of evtmsg
    "where message like ' % UTR % MAD % % of failure."

    Select evt_date
    in finish_time
    of evtmsg
    where message like ' % UTR % MAD % % return ';

    elapsed_time: = (finish_time - start_time) * 24 * 60 * 60;
    dbms_output.put_line (elapsed_time);
    END;
    {code}

    If I can replace MAD MCD I get several lines and does not work.

    Thank you.

    All you have to do is shared in the first select statement into its separate elements:

    SELECT   evt_date_fail
             evt_date_return,
             id,
             TO_CHAR(TO_CHAR(evt_date_return, 'SSSSS') - TO_CHAR(evt_date_fail, 'SSSSS') seconds
    FROM    (SELECT evt_date evt_date_fail,
                    LEAD(evt_date) OVER (partition by id ORDER BY id||TO_CHAR(evt_date, 'yyyymmddhh24miss')||CASE status WHEN 'return' THEN 1 ELSE 2 END) evt_date_return,
                    id,
                    status
             FROM  (SELECT evt_date,
                           SUBSTR(message, 1, 11) id,
                           SUBSTR(message, 13) status
                    FROM   evtmsg
                    WHERE  message LIKE 'UTR%'
                    AND    categ = 1
                    AND    TRUNC(evt_date) = TRUNC(SYSDATE - 1)))
    WHERE    status like '%fall%'
    ORDER BY evt_date_fail
    

    Also, you may need to change the CASE statement in the column that uses the LEAD function to replace the 'return' with its Spanish equivalent

  • I replaced my original Apple Watch with a watch of S2. When I install and associate the new shows, is there a way I can restore all applications, configuration information and data of the original of the new shows so I don't have to start from scratch?

    I replaced my original Apple Watch with a watch of S2. When I install and associate the new watch and my iPhone 7 more, is there any way I can restore all applications, configuration info and data between the original and the new shows, so I don't have to start from scratch?

    Try this procedure

    Cancel the twinning of your iPhone - Apple and Apple Watch Support

    Spend your Apple Watch a new iPhone - Apple Support

  • I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not download apps

    I am not able to download apps for my iPhone on the App Store. He just 'waiting '. But never starts the download. I tried with wifi and mobile data. The two are not downloading the applications Can u find out what's wrong? I use iPhone 5s

    I had the same problem. At the same time hold the screen lock button and the home button until your iPhone restarts. That solved the problem for me.

  • Since the last system upgraded my menu bar top with wifi and time, date etc etc is hidden unless I have sulk my cursor on it. Same thing with apps from shingles. How can I restore it is always there?

    Since the last system upgraded my menu bar top with wifi and time, date etc etc is hidden unless I have sulk my cursor on it. Same thing with apps from shingles. How can I restore it is always there? bar menus hidden-how do I restore?

    SystemPreferences-> Dock: automatically hide / show Dock

    SystemPreferences-> general: automatically hide / show menu bar

  • If I can restore iphone and data sync with iTunes to help uncertified lightning cable?

    Hello guys and girls... I was just curious to know if it is ok if I sync data and restore ios using non certified lightning cable which means I have a Chinese... itunes restores the iphone to ios 9.3.1 perfectly and allows you to synchronize all the music and videos files without saying errors... but is it ok for my iphone? It could damage my iphone or will I get ios works in my camera? My iphone gets too hot during loading and the use of the wifi too... sometimes average 2 times he said cable not taken in charge, but during the restoration and synchronization please help me... im confused... tq for playback

    Hi, I would not recommend using no real cables on Apple devices because they can cause problems. You get also the question of the products not authorized to appear on the screen which can be very annoying and it is because he has not got the necessary cable chip that its not true. The original cable is a little more expensive than the no real but its worth the investment that you don't buy new cables every few weeks. It will work with ITunes and transfer of data, but I wouldn't mind keen charging my iPhone/iPad with a as it is possible that they may cause damage. It's just not worth the risk.

Maybe you are looking for