Merging updates

I need to reinstall Acrobat 9.  I have the various update files through 9.5.3 but would like ot avoid updating 1 by 1.  Is there a way to slipstream these update files?

There is a way, but I am not sure of the site that discusses the process -- it may be the SDK forum. You might search the knowledge base, but I could not find it. Here are two links that give you some thoughts on such work:
http://forums.adobe.com/thread/510149
http://forums.adobe.com/message/3975686
Good luck.

Similar Messages

  • Corellated update AND merge(update only)

    Hi ,
    I have few corellated updates in my code , which i though ,i can replace with 10g new Merge update only stmt.
    But to my surprise , the sql using merge is showing more cost and using full table scan.
    Please find below the sql stmts. below(example). Am using Oracle 10.2.0.1
    create table t1 as select * from all_objects where rownum<10000;
    create table t2 as select * from t1 where rownum<10000-200;
    create unique index t1_objId_ind on t1(object_id);
    create unique index t2_objId_ind on t2(object_id);
    --Corellated updated query
    update t1 set t1.object_name= (select upper(t2.object_name) from t2 where t1.object_id=t2.object_id)
    where T1.OBJECT_ID IN (SELECT t2.object_id from t2);Explan for above update stmt.
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |              |  9139 |   383K|    37   (9)| 00:00:01 |
    |   1 |  UPDATE                      | T1           |       |       |            |          |
    |   2 |   NESTED LOOPS               |              |  9139 |   383K|    37   (9)| 00:00:01 |
    |   3 |    TABLE ACCESS FULL         | T1           |  9138 |   267K|    35   (3)| 00:00:01 |
    |*  4 |    INDEX UNIQUE SCAN         | T2_OBJID_IND |     1 |    13 |     0   (0)| 00:00:01 |
    |   5 |   TABLE ACCESS BY INDEX ROWID| T2           |     1 |    30 |     2   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    |*  6 |    INDEX UNIQUE SCAN         | T2_OBJID_IND |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - access("T1"."OBJECT_ID"="T2"."OBJECT_ID")
       6 - access("T2"."OBJECT_ID"=:B1)I wanted to eliminate the corellated update , So i wrote using MERGE as below
    MERGE INTO T2
    USING T1
    ON (t1.object_id=t2.object_id)
    WHEN MATCHED THEN update
      SET T2.OBJECT_NAME=UPPER(T1.OBJECT_NAME);Explan for above MERGE stmt.
    | Id  | Operation            | Name | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | MERGE STATEMENT      |      |  9139 |   303K|       |   201    (2)| 00:00:03 |
    |   1 |  MERGE               | T2   |       |       |       |            |          |
    |   2 |   VIEW               |      |       |       |       |            |          |
    |*  3 |    HASH JOIN         |      |  9139 |  2391K|  1256K|   201   (2)| 00:00:03 |
    |   4 |     TABLE ACCESS FULL| T1   |  9138 |  1142K|       |    35   (3)| 00:00:01 |
    |   5 |     TABLE ACCESS FULL| T2   |  9671 |  1322K|       |    34   (3)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       3 - access("T1"."OBJECT_ID"="T2"."OBJECT_ID")Cost is 201 , but for the corellated update the cost is 37.
    Any idea , how should i re-write the MERGE stmt.?
    Edited by: kumar on Jun 16, 2011 4:41 PM

    First "cost" is just a number and you should not compare or tune to get the best "cost" in an execution plan.
    What counts ist elapsed time => IO, CPU...
    In 11g the "cost" for the merge is better (and also the CPU time is far off to be close to the truth!)
    9799 rows updated
    78ms elapsed
    Plan hash value: 580992724
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |              |  9641 |   404K| 28964  (34)| 00:05:48 |
    |   1 |  UPDATE                      | T1           |       |       |            |          |
    |   2 |   NESTED LOOPS               |              |  9641 |   404K|    41   (3)| 00:00:01 |
    |   3 |    TABLE ACCESS FULL         | T1           | 10866 |   318K|    40   (0)| 00:00:01 |
    |*  4 |    INDEX UNIQUE SCAN         | T2_OBJID_IND |     1 |    13 |     0   (0)| 00:00:01 |
    |   5 |   TABLE ACCESS BY INDEX ROWID| T2           |     1 |    30 |     2   (0)| 00:00:01 |
    |*  6 |    INDEX UNIQUE SCAN         | T2_OBJID_IND |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - access("T1"."OBJECT_ID"="T2"."OBJECT_ID")
       6 - access("T2"."OBJECT_ID"=:B1)
    Note
       - dynamic sampling used for this statement (level=2)
    commited
    16ms elapsed
    9799 rows merged
    125ms elapsed
    Plan hash value: 2009158753
    | Id  | Operation            | Name | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | MERGE STATEMENT      |      |  9641 |   320K|       |   251   (1)| 00:00:04 |
    |   1 |  MERGE               | T2   |       |       |       |            |          |
    |   2 |   VIEW               |      |       |       |       |            |          |
    |*  3 |    HASH JOIN         |      |  9641 |  3088K|  1720K|   251   (1)| 00:00:04 |
    |   4 |     TABLE ACCESS FULL| T2   |  9640 |  1600K|       |    39   (0)| 00:00:01 |
    |   5 |     TABLE ACCESS FULL| T1   | 10866 |  1676K|       |    40   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - access("T1"."OBJECT_ID"="T2"."OBJECT_ID")
    Note
       - dynamic sampling used for this statement (level=2)In your example, the elapsed time (thanks for the it!) is 78ms for the update and 125ms for the MERGE. (ORACLE 11g on and old PC) .
    So "should you rewrite" the MERGE? No idea how. I assume you want to change from UPDATE to MERGE and see if it's worth?
    Here it's not. But, your example just uses 2MB of data. And the difference from my point view is not MERGE or UPDATE it's NL against HASH join with that tiny amount of data.
    So generally I use MERGE because of speed and because I have more control over the query. For updating 2MB of data, it's not worth it. For updating GBytes the stuff I worked on it was faster (and better to control).

  • Verify merge/ update

    We have a stored procedure that merges/updates a subset of data from one table into another for a particular identier. For example, the data from table 1 with a PNOTE value of 991 is being merged with data from table 2 with a PNOTE value of 650. How do I verify the data from table 1 was merged with the data from table 2? I can't do a count because some records are inserted and others updated. I need to grab the data from the first subset and make sure it ended up in the second subset. Any help would be greatly appreciated.

    I was able to find the solution. You have to query table 1 based on PNOTE value and then very that record set doesn't exist in table 2 using the primary keys.
    This takes the subset from table 1 and verifies it doesn't exist in the updated subset in table 2.
    select t1.* from table1 t1 where pnote = 650 and not exists
    (select t2.* from table2 t2 where pnote = 991 and
    t1.pk1 = t2.pk1 and
    t1.pk2 = t2.pk2)
    If the records were merged correctly the record set should be empty.

  • Merge update source table and delete from target table problem

    Hello Friends, 
    I am a newbie in SQL Server world and I am in a situation where I need to delete the bunch of records from the TARGET table using the values from the SOURCE table. 
    The TARGET table has close to 400 Million records, so I need to delete the records in small batches of about ~10,000 rows.
    I figured out a way to delete in batches by refering the following 2 posts
    http://sqlperformance.com/2013/03/io-subsystem/chunk-deletes
    http://dba.stackexchange.com/questions/1750/methods-of-speeding-up-a-huge-delete-from-table-with-no-clauses
    I think my best option to delete and update in 1 pass would be through using Merge statement, so for that I constructed following SQL.
    MERGE dbo.table1 AS TARGET
    USING 
    SELECT File_name FROM dbo.table2
    WHERE  FILE_DESC = 'EDI'
    AND [Processed_date] < DATEADD (WEEK, -10, Getdate ()) AS SOURCE
    ON (TARGET.File_name = SOURCE.File_name)
    WHEN MATCHED THEN DELETE (FROM THE TARGET)
    WHEN MATCHED 
        THEN UPDATE SET SOURCE.PROCESS_delete_date = GETDATE()
    But, when executed, it throws following error and I am struggling to figure out what is wrong with the above syntax. 
    Msg 156, Level 15, State 1, Line 3
    Incorrect syntax near the keyword 'SELECT'.
    Msg 156, Level 15, State 1, Line 5
    Incorrect syntax near the keyword 'AS'.
    Can any expert please help a newbie as I learn the new way.
    Thanks a lot.

    Visakh, we can have more than 1 matched clause in merge as per the Microsoft sql statement, but we need to add a condition along with the match. thanks for your prompt response on this query. your query is logically fine but when executed, it throws
    following error. Msg 156, Level 15, State 1, Line 2 Incorrect syntax near the keyword 'DELETE'. Msg 102, Level 15, State 1, Line 8 Incorrect syntax near ')'. remember, my server machine is 2005 version & my work machine is 2012. dont know why your query
    is not working.
    MERGE is available only from 2008 onwards
    Yes you're correct but again not more than two  MATCHED clauses even if you specify condition
    see MSDN documentation below
    WHEN MATCHED THEN <merge_matched>
    Specifies that all rows of target_table that match the rows returned by <table_source> ON <merge_search_condition>, and satisfy any additional search condition, are either updated or deleted according to the <merge_matched> clause.
    The MERGE statement can have at most two WHEN MATCHED clauses. If two clauses are specified, then the first clause must be accompanied by an AND <search_condition> clause
    from
    http://msdn.microsoft.com/en-us/library/bb510625.aspx
    Also I guess Composable DML which used is also not present in 2005
    So in your case you can try this instead
    DECLARE @DELETED_FILES table
    File_Name varchar(100)
    DELETE t
    OUTPUT DELETED.File_Name INTO @DELETED_FILES
    FROM dbo.table1 t
    INNER JOIN dbo.table2 s
    ON t.File_name = s.File_name
    WHERE s.FILE_DESC = 'EDI'
    AND s.[Processed_date] < DATEADD (WEEK, -10, Getdate ())
    UPDATE r
    SET r.Process_Delete_Date = GETDATE()
    FROM dbo.table2 r
    INNER JOIN @DELETED_FILES AS p
    ON p.File_Name = r.File_Name
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Help on MERGE - update or insert problem

    Dear Everybody,
    I've a DB with 3 tables to serve for Staff Time Attendance purpose, table tbl_TimeSheetIn(EmpCode, CardID, DateClock, TimeClock)  using for input RAW text file exported from TimeMachine, the same for tbl_TimeSheetOut (EmpCode, CardID, DateClock, TimeClock).
    Noted that we may have over 2 record with same EmpCode, CardID, DateClock (but different TimeClock) due to Staff can have admin shift or split shift (in, out 2 times/day).
    Then I will import them to table tbl_TimeSheet(EmpCode, CardID, DateWork, TimeIn, TimeOut) for reporting purpose.
    Firstly I insert all the records in tbl_TimeSheetIn to tbl_TimeSheet, it was import successful. Then when I using MERGE to update (if exist records with same CardID and TimeIn then update TimeOut to tbl_TimeSheet) / or insert (if not exist).
    The MS SQL Server 2008 R2 told me that error : "sql merge cannot update the same row of the target table multiple times..."
    Please help me to overcome.
    Thanks.

    Dear All,
    I'm not really clear on your answers, please correct me if I'm posting wrong:
    1/ Table TimeSheet SQL create:
    CREATE TABLE [dbo].[tbl_Timesheet](
        [EmpCode] [varchar](15) NOT NULL,
        [FullName] [varchar](255) NULL,
        [CardID] [varchar](50) NULL,
        [DateWork] [datetime] NULL,
        [ShiftCode] [varchar](15) NULL,
        [TimeIn] [varchar](50) NULL,
        [TimeOut] [varchar](50) NULL,
        [TimeIn1] [varchar](50) NULL,
        [TimeOut1] [varchar](50) NULL,
        [GetData] [bit] NULL,
        [Machine] [varchar](2) NULL,
        [DayWork] [numeric](18, 0) NULL,
        [TimeWork] [decimal](18, 2) NULL,
        [OT] [decimal](18, 2) NULL,
        [OTCheck] [bit] NULL,
        [TimeOverKind] [varchar](50) NULL,
        [PH] [bit] NULL,
        [SplitShift] [bit] NULL,
        [NightHours] [numeric](18, 0) NULL,
        [NightShift] [bit] NULL,
        [PersonCreate] [varchar](50) NULL,
        [DateCreate] [datetime] NULL,
        [PersonUpdate] [varchar](50) NULL,
        [DateUpdate] [datetime] NULL,
        [PersonDelete] [varchar](50) NULL,
        [DateDelete] [datetime] NULL,
        [Status] [char](1) NULL,
        [RepairNight] [bit] NULL
    ) ON [PRIMARY]
    2/ Insert into table TimeSheet:
    INSERT INTO [galaxy].[dbo].[tbl_Timesheet]
               ([EmpCode]
               ,[FullName]
               ,[CardID]
               ,[DateWork]
               ,[ShiftCode]
               ,[TimeIn]
               ,[TimeOut]
               ,[TimeIn1]
               ,[TimeOut1]
               ,[GetData]
               ,[Machine]
               ,[DayWork]
               ,[TimeWork]
               ,[OT]
               ,[OTCheck]
               ,[TimeOverKind]
               ,[PH]
               ,[SplitShift]
               ,[NightHours]
               ,[NightShift]
               ,[PersonCreate]
               ,[DateCreate]
               ,[PersonUpdate]
               ,[DateUpdate]
               ,[PersonDelete]
               ,[DateDelete]
               ,[Status]
               ,[RepairNight])
         VALUES
               (<EmpCode, varchar(15),>
               ,<FullName, varchar(255),>
               ,<CardID, varchar(50),>
               ,<DateWork, datetime,>
               ,<ShiftCode, varchar(15),>
               ,<TimeIn, varchar(50),>
               ,<TimeOut, varchar(50),>
               ,<TimeIn1, varchar(50),>
               ,<TimeOut1, varchar(50),>
               ,<GetData, bit,>
               ,<Machine, varchar(2),>
               ,<DayWork, numeric(18,0),>
               ,<TimeWork, decimal(18,2),>
               ,<OT, decimal(18,2),>
               ,<OTCheck, bit,>
               ,<TimeOverKind, varchar(50),>
               ,<PH, bit,>
               ,<SplitShift, bit,>
               ,<NightHours, numeric(18,0),>
               ,<NightShift, bit,>
               ,<PersonCreate, varchar(50),>
               ,<DateCreate, datetime,>
               ,<PersonUpdate, varchar(50),>
               ,<DateUpdate, datetime,>
               ,<PersonDelete, varchar(50),>
               ,<DateDelete, datetime,>
               ,<Status, char(1),>
               ,<RepairNight, bit,>)
    GO
    3/ Create table TimeSheetIN: (the table TimeSheetOUT is the same structure)
    CREATE TABLE [dbo].[tbl_TimeSheetIn](
        [EmpCode] [varchar](50) NULL,
        [FullName] [varchar](255) NULL,
        [CardID] [varchar](50) NULL,
        [Shift] [varchar](50) NULL,
        [In] [varchar](50) NULL,
        [DateClock] [datetime] NULL,
        [TimeClock] [nvarchar](50) NULL,
        [Machine] [nvarchar](50) NULL,
        [SplipShift] [bit] NULL,
        [NightShift] [bit] NULL,
        [Status] [bit] NULL
    ) ON [PRIMARY]
    4/ Sample TIME-IN RAW data saved by TimeMachine:
    The first and last "01" is meaning 01= TimeMachineIN, 02 = TimeMachineOUT
    The second "08/08/2014-hour:minute" is the timestamp.
    The third field "056754" is the Card ID that swiped to the TimeMachine.
    01-08/08/2014-03:45-056754-000-01
    01-08/08/2014-04:42-040728-000-01
    01-08/08/2014-04:51-057669-000-01
    01-08/08/2014-04:55-031901-000-01
    01-08/08/2014-05:04-043041-000-01
    01-08/08/2014-05:06-000009-000-01
    01-08/08/2014-05:06-000009-000-01
    01-08/08/2014-05:06-000009-000-01
    01-08/08/2014-05:07-053475-000-01
    01-08/08/2014-05:07-052484-000-01
    01-08/08/2014-05:10-052903-000-01
    01-08/08/2014-05:14-003793-000-01
    01-08/08/2014-05:14-041943-000-01
    01-08/08/2014-05:17-054198-000-01
    01-08/08/2014-05:22-063167-000-01
    01-08/08/2014-05:22-063167-000-01
    01-08/08/2014-05:22-011222-000-01
    01-08/08/2014-05:24-063456-000-01
    01-08/08/2014-05:25-003774-000-01
    01-08/08/2014-05:26-013766-000-01
    01-08/08/2014-05:28-050486-000-01
    01-08/08/2014-05:28-004848-000-01
    01-08/08/2014-05:28-002451-000-01
    01-08/08/2014-05:30-003081-000-01
    01-08/08/2014-05:31-042905-001-01
    01-08/08/2014-05:32-052972-001-01
    01-08/08/2014-05:33-052784-001-01
    01-08/08/2014-05:33-006167-001-01
    01-08/08/2014-05:34-059076-001-01
    01-08/08/2014-05:35-062392-001-01
    01-08/08/2014-05:35-055203-001-01
    01-08/08/2014-05:39-008412-001-01
    01-08/08/2014-05:40-001304-001-01
    01-08/08/2014-05:40-000425-001-01
    01-08/08/2014-05:40-041020-001-01
    01-08/08/2014-05:40-004425-001-01
    01-08/08/2014-05:41-005730-001-01
    01-08/08/2014-05:41-000150-001-01
    01-08/08/2014-05:41-039497-001-01
    01-08/08/2014-05:42-020359-001-01
    01-08/08/2014-05:44-002768-001-01
    01-08/08/2014-05:46-008554-001-01
    01-08/08/2014-05:47-062433-001-01
    01-08/08/2014-05:49-057113-001-01
    01-08/08/2014-05:50-008897-000-01
    01-08/08/2014-05:51-063289-000-01
    01-08/08/2014-05:52-063094-000-01
    01-08/08/2014-05:52-056876-000-01
    01-08/08/2014-05:56-000623-000-01
    01-08/08/2014-05:57-057709-000-01
    01-08/08/2014-05:58-059140-000-01
    01-08/08/2014-05:59-060519-000-01
    01-08/08/2014-05:59-043165-000-01
    01-08/08/2014-06:01-031229-000-01
    01-08/08/2014-06:04-051997-000-01
    01-08/08/2014-06:07-028859-000-01
    01-08/08/2014-06:10-032838-000-01
    01-08/08/2014-06:10-002286-000-01
    01-08/08/2014-06:11-058050-000-01
    01-08/08/2014-06:12-001798-000-01
    01-08/08/2014-06:15-030404-000-01
    01-08/08/2014-06:18-059036-000-01
    01-08/08/2014-06:21-058131-000-01
    01-08/08/2014-06:22-018613-000-01
    01-08/08/2014-06:23-054936-000-01
    01-08/08/2014-06:26-033243-000-01
    01-08/08/2014-06:26-054015-000-01
    01-08/08/2014-06:27-063110-000-01
    01-08/08/2014-06:28-055311-000-01
    01-08/08/2014-06:28-034760-000-01
    01-08/08/2014-06:31-061295-000-01
    01-08/08/2014-06:32-058615-000-01
    01-08/08/2014-06:33-000102-000-01
    01-08/08/2014-06:33-021545-000-01
    01-08/08/2014-06:33-054996-000-01
    01-08/08/2014-06:34-048489-000-01
    01-08/08/2014-06:36-014041-000-01
    01-08/08/2014-06:36-048227-000-01
    01-08/08/2014-06:40-065214-000-01
    01-08/08/2014-06:43-007016-000-01
    01-08/08/2014-06:45-023272-000-01
    01-08/08/2014-06:46-032925-000-01
    01-08/08/2014-06:47-025179-000-01
    01-08/08/2014-06:48-064937-000-01
    01-08/08/2014-06:50-050279-000-01
    01-08/08/2014-06:51-049712-000-01
    01-08/08/2014-06:52-033507-000-01
    01-08/08/2014-06:55-041976-000-01
    01-08/08/2014-06:55-005446-000-01
    01-08/08/2014-06:56-063172-000-01
    01-08/08/2014-06:58-063867-000-01
    01-08/08/2014-07:01-019547-000-01
    01-08/08/2014-07:01-019547-000-01
    01-08/08/2014-07:02-016590-000-01
    01-08/08/2014-07:02-056763-000-01
    01-08/08/2014-07:03-027498-000-01
    01-08/08/2014-07:07-051058-000-01
    01-08/08/2014-07:10-051587-001-01
    01-08/08/2014-07:10-053394-001-01
    01-08/08/2014-07:11-045334-001-01
    01-08/08/2014-07:13-038671-001-01
    01-08/08/2014-07:13-005557-001-01
    01-08/08/2014-07:14-064639-001-01
    01-08/08/2014-07:14-032678-001-01
    01-08/08/2014-07:15-061645-001-01
    01-08/08/2014-07:16-003595-001-01
    01-08/08/2014-07:17-050347-001-01
    01-08/08/2014-07:17-053350-001-01
    01-08/08/2014-07:17-014524-001-01
    01-08/08/2014-07:18-010926-001-01
    01-08/08/2014-07:18-048403-001-01
    01-08/08/2014-07:18-050532-001-01
    01-08/08/2014-07:19-047985-001-01
    01-08/08/2014-07:20-061195-001-01
    01-08/08/2014-07:21-061436-001-01
    01-08/08/2014-07:21-016390-001-01
    01-08/08/2014-07:22-016390-001-01
    01-08/08/2014-07:22-016390-001-01
    01-08/08/2014-07:22-057759-001-01
    01-08/08/2014-07:23-054787-001-01
    01-08/08/2014-07:23-059724-001-01
    01-08/08/2014-07:24-052044-001-01
    01-08/08/2014-07:24-049546-001-01
    01-08/08/2014-07:24-027477-001-01
    01-08/08/2014-07:26-048695-001-01
    01-08/08/2014-07:27-046872-001-01
    01-08/08/2014-07:27-050108-001-01
    01-08/08/2014-07:27-059403-001-01
    01-08/08/2014-07:27-013749-001-01
    01-08/08/2014-07:27-060240-001-01
    01-08/08/2014-07:27-056000-001-01
    01-08/08/2014-07:27-038821-001-01
    01-08/08/2014-07:27-050474-001-01
    01-08/08/2014-07:28-061648-001-01
    01-08/08/2014-07:28-057240-001-01
    01-08/08/2014-07:31-061966-001-01
    01-08/08/2014-07:32-051497-001-01
    01-08/08/2014-07:32-054737-001-01
    01-08/08/2014-07:32-052703-001-01
    01-08/08/2014-07:32-064745-001-01
    01-08/08/2014-07:33-054460-001-01
    01-08/08/2014-07:33-054737-001-01
    01-08/08/2014-07:34-055981-001-01
    01-08/08/2014-07:35-055981-001-01
    01-08/08/2014-07:35-055981-001-01
    01-08/08/2014-07:35-045137-001-01
    01-08/08/2014-07:35-051481-001-01
    01-08/08/2014-07:35-051481-001-01
    01-08/08/2014-07:36-065152-001-01
    01-08/08/2014-07:37-058405-001-01
    01-08/08/2014-07:37-029877-001-01
    01-08/08/2014-07:37-052475-001-01
    01-08/08/2014-07:37-051129-001-01
    01-08/08/2014-07:37-045677-001-01
    01-08/08/2014-07:38-041931-001-01
    01-08/08/2014-07:38-050680-001-01
    01-08/08/2014-07:38-040996-001-01
    01-08/08/2014-07:38-059372-001-01
    01-08/08/2014-07:39-027264-001-01
    01-08/08/2014-07:39-003033-001-01
    01-08/08/2014-07:39-014569-001-01
    01-08/08/2014-07:40-063698-001-01
    01-08/08/2014-07:40-003634-001-01
    01-08/08/2014-07:43-007651-001-01
    01-08/08/2014-07:43-045060-001-01
    01-08/08/2014-07:44-038222-001-01
    01-08/08/2014-07:44-047332-001-01
    01-08/08/2014-07:45-006906-001-01
    01-08/08/2014-07:45-006906-001-01
    01-08/08/2014-07:45-046651-001-01
    01-08/08/2014-07:45-039297-001-01
    01-08/08/2014-07:48-045246-001-01
    01-08/08/2014-07:48-053924-001-01
    01-08/08/2014-07:50-003076-001-01
    01-08/08/2014-07:51-055873-001-01
    01-08/08/2014-07:52-050955-001-01
    01-08/08/2014-07:52-001166-001-01
    01-08/08/2014-07:52-035073-001-01
    01-08/08/2014-07:52-055622-001-01
    01-08/08/2014-07:53-027282-001-01
    01-08/08/2014-07:53-048704-001-01
    01-08/08/2014-07:54-004748-001-01
    01-08/08/2014-07:55-038200-001-01
    01-08/08/2014-07:55-051753-001-01
    01-08/08/2014-07:56-054934-001-01
    01-08/08/2014-07:56-061067-001-01
    01-08/08/2014-07:57-057270-001-01
    01-08/08/2014-07:57-060981-001-01
    01-08/08/2014-07:57-023918-001-01
    01-08/08/2014-07:58-047387-001-01
    01-08/08/2014-08:00-052597-001-01
    01-08/08/2014-08:00-045822-001-01
    01-08/08/2014-08:00-048454-001-01
    01-08/08/2014-08:01-050857-001-01
    01-08/08/2014-08:02-033425-001-01
    01-08/08/2014-08:02-063120-001-01
    01-08/08/2014-08:03-018354-001-01
    01-08/08/2014-08:03-047112-001-01
    01-08/08/2014-08:08-058460-001-01
    01-08/08/2014-08:20-005220-001-01
    01-08/08/2014-08:30-004555-001-01
    01-08/08/2014-08:32-017684-001-01
    01-08/08/2014-08:35-017731-001-01
    01-08/08/2014-08:39-002712-001-01
    01-08/08/2014-08:44-047975-001-01
    01-08/08/2014-08:46-057662-001-01
    01-08/08/2014-08:46-063944-001-01
    01-08/08/2014-08:55-059774-000-01
    01-08/08/2014-09:03-010054-000-01
    01-08/08/2014-09:10-020059-000-01
    01-08/08/2014-09:14-042237-000-01
    01-08/08/2014-09:18-022890-000-01
    01-08/08/2014-09:28-023631-000-01
    01-08/08/2014-09:31-015077-000-01
    01-08/08/2014-09:34-008631-000-01
    01-08/08/2014-09:36-049989-000-01
    01-08/08/2014-09:38-060644-000-01
    01-08/08/2014-09:42-057517-000-01
    01-08/08/2014-09:43-027757-000-01
    01-08/08/2014-09:45-052521-000-01
    01-08/08/2014-09:46-049662-000-01
    01-08/08/2014-09:48-032028-000-01
    01-08/08/2014-09:49-001324-000-01
    01-08/08/2014-09:49-056744-000-01
    01-08/08/2014-09:49-028800-000-01
    01-08/08/2014-09:55-005286-000-01
    01-08/08/2014-10:03-054784-000-01
    01-08/08/2014-10:07-019507-000-01
    01-08/08/2014-10:08-025898-000-01
    01-08/08/2014-10:14-060406-000-01
    01-08/08/2014-10:14-007510-000-01
    01-08/08/2014-10:16-059298-000-01
    01-08/08/2014-10:20-034286-000-01
    01-08/08/2014-10:21-034091-000-01
    01-08/08/2014-10:21-045028-000-01
    01-08/08/2014-10:28-055300-000-01
    01-08/08/2014-10:33-005604-000-01
    01-08/08/2014-10:38-005905-000-01
    01-08/08/2014-10:38-064865-000-01
    01-08/08/2014-10:41-025212-000-01
    01-08/08/2014-10:48-041915-000-01
    01-08/08/2014-10:51-051505-000-01
    01-08/08/2014-10:53-019945-000-01
    01-08/08/2014-11:07-041655-000-01
    01-08/08/2014-11:19-014515-000-01
    01-08/08/2014-11:26-049413-000-01
    01-08/08/2014-11:27-062044-000-01
    01-08/08/2014-11:28-049233-000-01
    01-08/08/2014-11:42-026640-000-01
    01-08/08/2014-11:47-064359-000-01
    01-08/08/2014-11:48-007078-000-01
    01-08/08/2014-11:52-048103-000-01
    01-08/08/2014-11:53-014852-000-01
    01-08/08/2014-12:01-026113-000-01
    01-08/08/2014-12:01-008824-000-01
    01-08/08/2014-12:01-052499-000-01
    01-08/08/2014-12:04-041278-000-01
    01-08/08/2014-12:31-005443-000-01
    01-08/08/2014-12:32-053289-000-01
    01-08/08/2014-12:36-060865-000-01
    01-08/08/2014-12:39-030586-000-01
    01-08/08/2014-12:41-055094-000-01
    01-08/08/2014-12:48-050863-000-01
    01-08/08/2014-12:49-036761-000-01
    01-08/08/2014-12:51-053258-000-01
    01-08/08/2014-12:55-046322-000-01
    01-08/08/2014-13:00-058606-000-01
    01-08/08/2014-13:04-029842-000-01
    01-08/08/2014-13:05-008027-000-01
    01-08/08/2014-13:07-064275-000-01
    01-08/08/2014-13:07-055346-000-01
    01-08/08/2014-13:08-006385-000-01
    01-08/08/2014-13:09-010322-000-01
    01-08/08/2014-13:14-009055-000-01
    01-08/08/2014-13:16-021256-000-01
    01-08/08/2014-13:17-007973-000-01
    01-08/08/2014-13:21-024016-000-01
    01-08/08/2014-13:23-015629-000-01
    01-08/08/2014-13:23-048406-000-01
    01-08/08/2014-13:26-049452-000-01
    01-08/08/2014-13:27-057269-000-01
    01-08/08/2014-13:27-018685-000-01
    01-08/08/2014-13:28-005590-000-01
    01-08/08/2014-13:31-000381-000-01
    01-08/08/2014-13:31-033454-000-01
    01-08/08/2014-13:35-063564-000-01
    01-08/08/2014-13:35-032226-000-01
    01-08/08/2014-13:35-048433-000-01
    01-08/08/2014-13:36-042137-000-01
    01-08/08/2014-13:38-060938-000-01
    01-08/08/2014-13:39-041270-000-01
    01-08/08/2014-13:40-064443-000-01
    01-08/08/2014-13:40-055690-000-01
    01-08/08/2014-13:40-000687-000-01
    01-08/08/2014-13:41-055236-000-01
    01-08/08/2014-13:43-058536-000-01
    01-08/08/2014-13:43-062012-000-01
    01-08/08/2014-13:43-062012-000-01
    01-08/08/2014-13:44-056544-000-01
    01-08/08/2014-13:45-046377-000-01
    01-08/08/2014-13:47-051446-000-01
    01-08/08/2014-13:47-010440-000-01
    01-08/08/2014-13:48-031836-000-01
    01-08/08/2014-13:48-031836-000-01
    01-08/08/2014-13:51-054780-000-01
    01-08/08/2014-13:51-054780-000-01
    01-08/08/2014-13:53-057966-000-01
    01-08/08/2014-13:55-054056-000-01
    01-08/08/2014-13:59-037241-000-01
    01-08/08/2014-14:00-055587-000-01
    01-08/08/2014-14:00-061113-000-01
    01-08/08/2014-14:02-012158-000-01
    01-08/08/2014-14:03-023550-000-01
    01-08/08/2014-14:04-003850-000-01
    01-08/08/2014-14:05-034102-000-01
    01-08/08/2014-14:07-004271-000-01
    01-08/08/2014-14:09-051288-000-01
    01-08/08/2014-14:11-023683-000-01
    01-08/08/2014-14:11-042140-000-01
    01-08/08/2014-14:13-063106-000-01
    01-08/08/2014-14:15-029901-000-01
    01-08/08/2014-14:22-052273-000-01
    01-08/08/2014-14:22-043073-000-01
    01-08/08/2014-14:25-001497-000-01
    01-08/08/2014-14:25-042960-000-01
    01-08/08/2014-14:28-049727-000-01
    01-08/08/2014-14:30-046112-000-01
    01-08/08/2014-14:31-059973-000-01
    01-08/08/2014-14:32-014674-000-01
    01-08/08/2014-14:33-032273-000-01
    01-08/08/2014-14:33-063760-000-01
    01-08/08/2014-14:34-004670-000-01
    01-08/08/2014-14:35-058519-000-01
    01-08/08/2014-14:37-003641-000-01
    01-08/08/2014-14:38-064434-000-01
    01-08/08/2014-14:38-033137-000-01
    01-08/08/2014-14:38-033137-000-01
    01-08/08/2014-14:38-063678-000-01
    01-08/08/2014-14:39-002798-000-01
    01-08/08/2014-14:41-058884-000-01
    01-08/08/2014-14:41-005746-000-01
    01-08/08/2014-14:42-048181-000-01
    01-08/08/2014-14:46-045659-000-01
    01-08/08/2014-14:46-054010-000-01
    01-08/08/2014-14:47-011094-000-01
    01-08/08/2014-14:50-001699-000-01
    01-08/08/2014-14:58-007854-000-01
    01-08/08/2014-15:15-055981-000-01
    01-08/08/2014-15:33-046290-000-01
    01-08/08/2014-15:39-035301-000-01
    01-08/08/2014-16:16-041655-000-01
    01-08/08/2014-16:16-051505-000-01
    01-08/08/2014-16:18-050966-000-01
    01-08/08/2014-16:19-055651-000-01
    01-08/08/2014-16:20-027757-000-01
    01-08/08/2014-16:25-023631-000-01
    01-08/08/2014-16:27-003052-000-01
    01-08/08/2014-16:27-015077-000-01
    01-08/08/2014-16:28-049989-000-01
    01-08/08/2014-16:32-002895-000-01
    01-08/08/2014-16:45-058424-000-01
    01-08/08/2014-16:49-027264-000-01
    01-08/08/2014-16:55-064582-000-01
    01-08/08/2014-16:57-034286-000-01
    01-08/08/2014-16:58-032028-000-01
    01-08/08/2014-17:14-056744-000-01
    01-08/08/2014-17:18-013766-000-01
    01-08/08/2014-17:27-025898-000-01
    01-08/08/2014-17:27-007510-000-01
    01-08/08/2014-17:30-050108-000-01
    01-08/08/2014-17:33-059298-000-01
    01-08/08/2014-17:49-045028-000-01
    01-08/08/2014-17:54-034091-000-01
    01-08/08/2014-21:03-047660-000-01
    01-08/08/2014-21:07-050663-000-01
    01-08/08/2014-21:14-064154-000-01
    01-08/08/2014-21:16-059488-000-01
    01-08/08/2014-21:17-058243-000-01
    01-08/08/2014-21:25-059314-000-01
    01-08/08/2014-21:25-053258-000-01
    01-08/08/2014-21:28-018754-000-01
    01-08/08/2014-21:29-049408-000-01
    01-08/08/2014-21:29-049408-000-01
    01-08/08/2014-21:30-014785-000-01
    01-08/08/2014-21:35-060117-000-01
    01-08/08/2014-21:40-000256-000-01
    01-08/08/2014-21:40-000256-000-01
    01-08/08/2014-21:40-000256-000-01
    01-08/08/2014-21:42-048110-000-01
    01-08/08/2014-21:46-055346-000-01
    01-08/08/2014-21:46-051083-000-01
    01-08/08/2014-21:47-008129-000-01
    01-08/08/2014-21:47-008129-000-01
    01-08/08/2014-21:54-002058-000-01
    01-08/08/2014-21:54-050422-000-01
    01-08/08/2014-21:56-013855-000-01
    01-08/08/2014-21:59-052616-000-01
    01-08/08/2014-22:01-006197-000-01
    01-08/08/2014-22:01-060957-000-01
    01-08/08/2014-22:02-031397-000-01
    01-08/08/2014-22:03-054986-000-01
    01-08/08/2014-22:04-056055-000-01
    01-08/08/2014-22:04-045991-000-01
    01-08/08/2014-22:12-064878-000-01
    01-08/08/2014-22:15-032722-000-01
    01-08/08/2014-22:16-063895-000-01
    01-08/08/2014-22:31-058007-000-01
    01-08/08/2014-22:43-017464-000-01
    5/ Sample TIME-OUT Raw data saved by TimeMachine:
    02-08/08/2014-00:02-043073-000-02
    02-08/08/2014-00:02-001497-000-02
    02-08/08/2014-00:03-053573-000-02
    02-08/08/2014-00:05-052929-000-02
    02-08/08/2014-00:07-035301-000-02
    02-08/08/2014-00:07-035301-000-02
    02-08/08/2014-00:11-041278-000-02
    02-08/08/2014-00:16-001699-000-02
    02-08/08/2014-00:21-023272-000-02
    02-08/08/2014-00:29-055867-000-02
    02-08/08/2014-00:33-063678-000-02
    02-08/08/2014-00:34-003052-000-02
    02-08/08/2014-00:34-010054-000-02
    02-08/08/2014-00:34-063760-000-02
    02-08/08/2014-00:53-011094-000-02
    02-08/08/2014-00:58-058424-000-02
    02-08/08/2014-01:15-055921-000-02
    02-08/08/2014-01:19-055651-000-02
    02-08/08/2014-06:17-026526-000-02
    02-08/08/2014-06:23-050663-000-02
    02-08/08/2014-06:25-053258-000-02
    02-08/08/2014-06:31-018008-000-02
    02-08/08/2014-06:34-002058-000-02
    02-08/08/2014-06:40-050422-000-02
    02-08/08/2014-06:40-059314-000-02
    02-08/08/2014-06:40-059314-000-02
    02-08/08/2014-06:48-048110-000-02
    02-08/08/2014-06:48-060117-000-02
    02-08/08/2014-06:51-052005-000-02
    02-08/08/2014-06:54-058243-000-02
    02-08/08/2014-06:54-049408-000-02
    02-08/08/2014-06:59-023134-000-02
    02-08/08/2014-07:08-056055-000-02
    02-08/08/2014-07:30-013855-000-02
    02-08/08/2014-07:31-060957-000-02
    02-08/08/2014-07:33-054986-000-02
    02-08/08/2014-07:33-006197-000-02
    02-08/08/2014-07:34-034788-000-02
    02-08/08/2014-07:39-063895-000-02
    02-08/08/2014-07:39-029825-000-02
    02-08/08/2014-07:40-058007-000-02
    02-08/08/2014-07:41-031397-000-02
    02-08/08/2014-07:41-064878-000-02
    02-08/08/2014-07:42-045991-000-02
    02-08/08/2014-07:43-031053-000-02
    02-08/08/2014-07:47-002308-000-02
    02-08/08/2014-07:52-032722-000-02
    02-08/08/2014-08:40-008660-000-02
    02-08/08/2014-11:17-013766-000-02
    02-08/08/2014-11:50-018354-000-02
    02-08/08/2014-12:33-056754-000-02
    02-08/08/2014-13:32-050108-000-02
    02-08/08/2014-13:33-052597-000-02
    02-08/08/2014-14:02-023631-000-02
    02-08/08/2014-14:03-032028-000-02
    02-08/08/2014-14:05-015077-000-02
    02-08/08/2014-14:11-056744-000-02
    02-08/08/2014-14:11-040728-000-02
    02-08/08/2014-14:12-020359-000-02
    02-08/08/2014-14:14-027757-000-02
    02-08/08/2014-14:15-049989-000-02
    02-08/08/2014-14:16-062433-000-02
    02-08/08/2014-14:18-000150-000-02
    02-08/08/2014-14:20-052784-000-02
    02-08/08/2014-14:21-003081-000-02
    02-08/08/2014-14:23-041943-000-02
    02-08/08/2014-14:26-002768-000-02
    02-08/08/2014-14:27-055203-000-02
    02-08/08/2014-14:32-059076-000-02
    02-08/08/2014-14:32-062392-000-02
    02-08/08/2014-14:32-052972-000-02
    02-08/08/2014-14:33-007510-000-02
    02-08/08/2014-14:33-045028-000-02
    02-08/08/2014-14:33-034091-000-02
    02-08/08/2014-14:34-025898-000-02
    02-08/08/2014-14:34-063456-000-02
    02-08/08/2014-14:34-043041-000-02
    02-08/08/2014-14:34-034286-000-02
    02-08/08/2014-14:35-034091-000-02
    02-08/08/2014-14:35-059298-000-02
    02-08/08/2014-14:42-063289-000-02
    02-08/08/2014-14:42-056876-000-02
    02-08/08/2014-14:42-052484-000-02
    02-08/08/2014-14:44-008897-000-02
    02-08/08/2014-14:45-005604-000-02
    02-08/08/2014-14:46-002286-000-02
    02-08/08/2014-14:46-063167-000-02
    02-08/08/2014-14:46-063167-000-02
    02-08/08/2014-14:47-004425-000-02
    02-08/08/2014-14:47-052824-000-02
    02-08/08/2014-14:48-003793-000-02
    02-08/08/2014-14:48-042905-000-02
    02-08/08/2014-14:48-057669-000-02
    02-08/08/2014-14:50-057113-000-02
    02-08/08/2014-14:50-057113-000-02
    02-08/08/2014-14:51-000623-000-02
    02-08/08/2014-14:52-051997-000-02
    02-08/08/2014-14:52-054936-000-02
    02-08/08/2014-14:54-006167-000-02
    02-08/08/2014-14:55-008412-000-02
    02-08/08/2014-14:59-005446-000-02
    02-08/08/2014-15:01-064275-000-02
    02-08/08/2014-15:01-050486-000-02
    02-08/08/2014-15:03-043165-000-02
    02-08/08/2014-15:04-063110-000-02
    02-08/08/2014-15:05-000102-000-02
    02-08/08/2014-15:05-006385-000-02
    02-08/08/2014-15:05-053258-000-02
    02-08/08/2014-15:07-000425-000-02
    02-08/08/2014-15:08-048489-000-02
    02-08/08/2014-15:10-033507-000-02
    02-08/08/2014-15:13-030404-000-02
    02-08/08/2014-15:14-058050-000-02
    02-08/08/2014-15:15-055981-000-02
    02-08/08/2014-15:15-008554-000-02
    02-08/08/2014-15:16-054015-000-02
    02-08/08/2014-15:16-005730-000-02
    02-08/08/2014-15:16-057709-000-02
    02-08/08/2014-15:16-058131-000-02
    02-08/08/2014-15:17-041020-000-02
    02-08/08/2014-15:17-001304-000-02
    02-08/08/2014-15:18-049546-000-02
    02-08/08/2014-15:18-051505-000-02
    02-08/08/2014-15:18-041655-000-02
    02-08/08/2014-15:19-061295-000-02
    02-08/08/2014-15:19-001798-000-02
    02-08/08/2014-15:20-001798-000-02
    02-08/08/2014-15:20-054198-000-02
    02-08/08/2014-15:20-034760-000-02
    02-08/08/2014-15:21-014041-000-02
    02-08/08/2014-15:21-048227-000-02
    02-08/08/2014-15:21-055311-000-02
    02-08/08/2014-15:21-059140-000-02
    02-08/08/2014-15:21-021545-000-02
    02-08/08/2014-15:22-004848-000-02
    02-08/08/2014-15:22-002451-000-02
    02-08/08/2014-15:27-023272-000-02
    02-08/08/2014-15:29-063839-000-02
    02-08/08/2014-15:32-053475-000-02
    02-08/08/2014-15:33-028859-000-02
    02-08/08/2014-15:34-050279-000-02
    02-08/08/2014-15:36-003774-000-02
    02-08/08/2014-15:36-025179-000-02
    02-08/08/2014-15:36-032925-000-02
    02-08/08/2014-15:36-032838-000-02
    02-08/08/2014-15:37-000009-000-02
    02-08/08/2014-15:37-000009-000-02
    02-08/08/2014-15:37-000009-000-02
    02-08/08/2014-15:37-047387-000-02
    02-08/08/2014-15:38-052903-000-02
    02-08/08/2014-15:39-063839-000-02
    02-08/08/2014-15:42-063094-000-02
    02-08/08/2014-15:47-033243-000-02
    02-08/08/2014-15:47-033243-000-02
    02-08/08/2014-15:49-007016-000-02
    02-08/08/2014-15:56-064937-000-02
    02-08/08/2014-15:57-063172-000-02
    02-08/08/2014-15:59-059036-000-02
    02-08/08/2014-16:02-031229-000-02
    02-08/08/2014-16:07-038200-000-02
    02-08/08/2014-16:10-056763-000-02
    02-08/08/2014-16:13-045060-000-02
    02-08/08/2014-16:20-018613-000-02
    02-08/08/2014-16:20-018613-000-02
    02-08/08/2014-16:28-014569-000-02
    02-08/08/2014-16:28-053394-000-02
    02-08/08/2014-16:28-054787-000-02
    02-08/08/2014-16:30-032678-000-02
    02-08/08/2014-16:30-050347-000-02
    02-08/08/2014-16:36-038671-000-02
    02-08/08/2014-16:41-031901-000-02
    02-08/08/2014-16:42-027477-000-02
    02-08/08/2014-16:44-051587-000-02
    02-08/08/2014-16:45-056653-000-02
    02-08/08/2014-16:45-056653-000-02
    02-08/08/2014-16:46-061645-000-02
    02-08/08/2014-16:54-058615-000-02
    02-08/08/2014-16:56-051497-000-02
    02-08/08/2014-16:59-019547-000-02
    02-08/08/2014-17:00-061067-000-02
    02-08/08/2014-17:01-038222-000-02
    02-08/08/2014-17:01-047332-000-02
    02-08/08/2014-17:02-064745-000-02
    02-08/08/2014-17:02-060240-000-02
    02-08/08/2014-17:02-060240-000-02
    02-08/08/2014-17:02-053350-000-02
    02-08/08/2014-17:03-014524-000-02
    02-08/08/2014-17:04-038821-000-02
    02-08/08/2014-17:04-057240-000-02
    02-08/08/2014-17:05-052475-000-02
    02-08/08/2014-17:05-057662-000-02
    02-08/08/2014-17:05-065152-000-02
    02-08/08/2014-17:05-003076-000-02
    02-08/08/2014-17:06-061436-000-02
    02-08/08/2014-17:06-061436-000-02
    02-08/08/2014-17:06-050474-000-02
    02-08/08/2014-17:06-061966-000-02
    02-08/08/2014-17:07-011222-000-02
    02-08/08/2014-17:07-011222-000-02
    02-08/08/2014-17:07-033425-000-02
    02-08/08/2014-17:07-056000-000-02
    02-08/08/2014-17:07-056000-000-02
    02-08/08/2014-17:07-056000-000-02
    02-08/08/2014-17:07-061648-000-02
    02-08/08/2014-17:08-045822-000-02
    02-08/08/2014-17:09-050955-000-02
    02-08/08/2014-17:11-004748-000-02
    02-08/08/2014-17:11-061195-000-02
    02-08/08/2014-17:13-046872-000-02
    02-08/08/2014-17:13-046872-000-02
    02-08/08/2014-17:13-046872-000-02
    02-08/08/2014-17:13-059372-000-02
    02-08/08/2014-17:13-058405-000-02
    02-08/08/2014-17:13-040996-000-02
    02-08/08/2014-17:13-040996-000-02
    02-08/08/2014-17:14-013749-000-02
    02-08/08/2014-17:14-039297-000-02
    02-08/08/2014-17:14-055873-000-02
    02-08/08/2014-17:14-051753-000-02
    02-08/08/2014-17:14-045246-000-02
    02-08/08/2014-17:14-059724-000-02
    02-08/08/2014-17:15-063120-000-02
    02-08/08/2014-17:15-063120-000-02
    02-08/08/2014-17:16-057270-000-02
    02-08/08/2014-17:16-052044-000-02
    02-08/08/2014-17:17-053924-000-02
    02-08/08/2014-17:17-023918-000-02
    02-08/08/2014-17:18-005220-000-02
    02-08/08/2014-17:18-060981-000-02
    02-08/08/2014-17:18-045137-000-02
    02-08/08/2014-17:19-027282-000-02
    02-08/08/2014-17:19-054996-000-02
    02-08/08/2014-17:21-047975-000-02
    02-08/08/2014-17:21-047975-000-02
    02-08/08/2014-17:22-047112-000-02
    02-08/08/2014-17:22-054460-000-02
    02-08/08/2014-17:23-055622-000-02
    02-08/08/2014-17:25-051129-000-02
    02-08/08/2014-17:25-016590-000-02
    02-08/08/2014-17:25-048403-000-02
    02-08/08/2014-17:26-048454-000-02
    02-08/08/2014-17:26-063698-000-02
    02-08/08/2014-17:28-017684-000-02
    02-08/08/2014-17:29-010054-000-02
    02-08/08/2014-17:29-010054-000-02
    02-08/08/2014-17:29-002712-000-02
    02-08/08/2014-17:31-017731-000-02
    02-08/08/2014-17:31-017731-000-02
    02-08/08/2014-17:31-064639-000-02
    02-08/08/2014-17:32-050857-000-02
    02-08/08/2014-17:33-051481-000-02
    02-08/08/2014-17:34-058460-000-02
    02-08/08/2014-17:34-063867-000-02
    02-08/08/2014-17:35-047985-000-02
    02-08/08/2014-17:35-042237-000-02
    02-08/08/2014-17:38-022890-000-02
    02-08/08/2014-17:42-045677-000-02
    02-08/08/2014-17:43-041931-000-02
    02-08/08/2014-17:44-004555-000-02
    02-08/08/2014-17:48-052703-000-02
    02-08/08/2014-17:49-048695-000-02
    02-08/08/2014-17:50-055981-000-02
    02-08/08/2014-17:50-055981-000-02
    02-08/08/2014-17:56-035073-000-02
    02-08/08/2014-17:56-065214-000-02
    02-08/08/2014-17:57-029877-000-02
    02-08/08/2014-17:58-039497-000-02
    02-08/08/2014-17:58-039497-000-02
    02-08/08/2014-17:59-046651-000-02
    02-08/08/2014-17:59-046651-000-02
    02-08/08/2014-17:59-001166-000-02
    02-08/08/2014-17:59-059403-000-02
    02-08/08/2014-18:00-049712-000-02
    02-08/08/2014-18:02-016390-000-02
    02-08/08/2014-18:04-060519-000-02
    02-08/08/2014-18:05-052521-000-02
    02-08/08/2014-18:05-063944-000-02
    02-08/08/2014-18:05-054737-000-02
    02-08/08/2014-18:05-003033-000-02
    02-08/08/2014-18:18-049662-000-02
    02-08/08/2014-18:19-010926-000-02
    02-08/08/2014-18:25-048704-000-02
    02-08/08/2014-18:25-050532-000-02
    02-08/08/2014-18:31-008631-000-02
    02-08/08/2014-18:31-057759-000-02
    02-08/08/2014-18:31-055300-000-02
    02-08/08/2014-18:32-020059-000-02
    02-08/08/2014-18:34-028800-000-02
    02-08/08/2014-18:36-057517-000-02
    02-08/08/2014-18:40-006906-000-02
    02-08/08/2014-18:45-003595-000-02
    02-08/08/2014-18:46-059774-000-02
    02-08/08/2014-18:53-060644-000-02
    02-08/08/2014-18:59-007651-000-02
    02-08/08/2014-19:05-001324-000-02
    02-08/08/2014-19:06-049233-000-02
    02-08/08/2014-19:12-025212-000-02
    02-08/08/2014-19:13-005905-000-02
    02-08/08/2014-19:18-005286-000-02
    02-08/08/2014-19:40-045334-000-02
    02-08/08/2014-19:40-005557-000-02
    02-08/08/2014-19:40-003634-000-02
    02-08/08/2014-19:56-027498-000-02
    02-08/08/2014-20:06-060406-000-02
    02-08/08/2014-20:12-014852-000-02
    02-08/08/2014-20:22-005590-000-02
    02-08/08/2014-20:29-026640-000-02
    02-08/08/2014-20:29-054784-000-02
    02-08/08/2014-20:45-014515-000-02
    02-08/08/2014-20:46-064359-000-02
    02-08/08/2014-20:47-007078-000-02
    02-08/08/2014-20:47-062044-000-02
    02-08/08/2014-20:50-050863-000-02
    02-08/08/2014-20:57-049413-000-02
    02-08/08/2014-21:01-019507-000-02
    02-08/08/2014-21:06-015077-000-02
    02-08/08/2014-21:07-032028-000-02
    02-08/08/2014-21:09-023631-000-02
    02-08/08/2014-21:09-041278-000-02
    02-08/08/2014-21:10-053289-000-02
    02-08/08/2014-21:10-049989-000-02
    02-08/08/2014-21:11-034286-000-02
    02-08/08/2014-21:16-048103-000-02
    02-08/08/2014-21:24-013766-000-02
    02-08/08/2014-21:40-000256-000-02
    02-08/08/2014-21:45-064582-000-02
    02-08/08/2014-21:50-050108-000-02
    02-08/08/2014-21:57-048433-000-02
    02-08/08/2014-22:00-030586-000-02
    02-08/08/2014-22:01-046322-000-02
    02-08/08/2014-22:03-029842-000-02
    02-08/08/2014-22:03-029842-000-02
    02-08/08/2014-22:04-034091-000-02
    02-08/08/2014-22:04-027757-000-02
    02-08/08/2014-22:04-045028-000-02
    02-08/08/2014-22:04-007510-000-02
    02-08/08/2014-22:04-056744-000-02
    02-08/08/2014-22:05-025898-000-02
    02-08/08/2014-22:09-024016-000-02
    02-08/08/2014-22:11-059298-000-02
    02-08/08/2014-22:11-048406-000-02
    02-08/08/2014-22:11-021256-000-02
    02-08/08/2014-22:14-008027-000-02
    02-08/08/2014-22:15-000687-000-02
    02-08/08/2014-22:16-064865-000-02
    02-08/08/2014-22:17-018685-000-02
    02-08/08/2014-22:17-018685-000-02
    02-08/08/2014-22:17-036761-000-02
    02-08/08/2014-22:19-046377-000-02
    02-08/08/2014-22:19-033454-000-02
    02-08/08/2014-22:20-005443-000-02
    02-08/08/2014-22:23-052499-000-02
    02-08/08/2014-22:31-058536-000-02
    02-08/08/2014-22:31-041270-000-02
    02-08/08/2014-22:31-060938-000-02
    02-08/08/2014-22:35-007973-000-02
    02-08/08/2014-22:38-063564-000-02
    02-08/08/2014-22:39-056544-000-02
    02-08/08/2014-22:42-064443-000-02
    02-08/08/2014-22:42-015629-000-02
    02-08/08/2014-22:42-032226-000-02
    02-08/08/2014-22:42-042140-000-02
    02-08/08/2014-22:42-060865-000-02
    02-08/08/2014-22:44-061113-000-02
    02-08/08/2014-22:45-004271-000-02
    02-08/08/2014-22:48-062012-000-02
    02-08/08/2014-22:48-062012-000-02
    02-08/08/2014-22:52-055690-000-02
    02-08/08/2014-22:52-051446-000-02
    02-08/08/2014-22:54-059973-000-02
    02-08/08/2014-22:55-037241-000-02
    02-08/08/2014-22:56-034102-000-02
    02-08/08/2014-22:56-054056-000-02
    02-08/08/2014-22:56-026113-000-02
    02-08/08/2014-22:58-049452-000-02
    02-08/08/2014-22:58-031836-000-02
    02-08/08/2014-22:58-031836-000-02
    02-08/08/2014-22:58-031836-000-02
    02-08/08/2014-22:59-029901-000-02
    02-08/08/2014-22:59-055587-000-02
    02-08/08/2014-22:59-054056-000-02
    02-08/08/2014-22:59-058606-000-02
    02-08/08/2014-22:59-055236-000-02
    02-08/08/2014-23:00-010440-000-02
    02-08/08/2014-23:00-054780-000-02
    02-08/08/2014-23:00-054780-000-02
    02-08/08/2014-23:01-023683-000-02
    02-08/08/2014-23:02-041915-000-02
    02-08/08/2014-23:03-023550-000-02
    02-08/08/2014-23:03-019945-000-02
    02-08/08/2014-23:04-005746-000-02
    02-08/08/2014-23:04-007854-000-02
    02-08/08/2014-23:04-007854-000-02
    02-08/08/2014-23:04-051288-000-02
    02-08/08/2014-23:05-049727-000-02
    02-08/08/2014-23:06-041655-000-02
    02-08/08/2014-23:06-051505-000-02
    02-08/08/2014-23:06-063106-000-02
    02-08/08/2014-23:07-057269-000-02
    02-08/08/2014-23:10-057966-000-02
    02-08/08/2014-23:11-009055-000-02
    02-08/08/2014-23:11-055094-000-02
    02-08/08/2014-23:12-045659-000-02
    02-08/08/2014-23:14-058884-000-02
    02-08/08/2014-23:17-054010-000-02
    02-08/08/2014-23:20-012158-000-02
    02-08/08/2014-23:21-010322-000-02
    02-08/08/2014-23:23-042137-000-02
    02-08/08/2014-23:23-014674-000-02
    02-08/08/2014-23:23-046112-000-02
    02-08/08/2014-23:23-058519-000-02
    02-08/08/2014-23:23-004670-000-02
    02-08/08/2014-23:23-042960-000-02
    02-08/08/2014-23:24-052273-000-02
    02-08/08/2014-23:28-002798-000-02
    02-08/08/2014-23:28-032273-000-02
    02-08/08/2014-23:28-033137-000-02
    02-08/08/2014-23:28-033137-000-02
    02-08/08/2014-23:31-043073-000-02
    02-08/08/2014-23:31-001497-000-02
    02-08/08/2014-23:34-064434-000-02
    02-08/08/2014-23:39-041976-000-02
    02-08/08/2014-23:39-001699-000-02
    02-08/08/2014-23:46-008824-000-02
    02-08/08/2014-23:46-048181-000-02
    02-08/08/2014-23:52-063760-000-02
    As per Mr. Celko recommend in way of naming table (tbl_xxxx), this is what we be teached in school, cheers.
    And I'm sorry if my info provide is not clear enough for you all to testing. Please treat me like your student, cheers.
    Thank you.

  • Merge - update table@dblink

    Hi all,
    my need is to perform merge:
    1) update table2@dblink only when some column(s) is/are different than in local table1
    2) insert rows into table2@dblink when not present.
    (2) works fine.
    (1) works strange. It was tested successfully at test server where both table1 and table2 are local. It just doesn't work at production server where table2 is remote (using dblink), it doesn't report any error, but values just are not updated.
    Query code:
    merge into remote.table2@dblink rr
    using
    select
      ID                       ,
      NAME                   
    from local.table1
    ) hh
    on ( hh.id = rr.id )
    when matched
               then update set
                       rr.NAME                     =  hh.NAME
                    where
                       rr.NAME                     <> hh.NAME
    when not matched then insert (
                                  rr.ID                       ,
                                  rr.NAME
                           values (
                                  hh.ID                       ,
                                  hh.NAME
                                  );Oracle version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    (the same on local and remote servers).
    The content of table:
    ID
    NAME
    1
    Germany
    2
    Spain
    3
    Italy
    4
    Portugal
    4 rows selected.Please, help me.

    Looks like Bug:
    Bug 9816678 - Merge on a remote table using local table gives wrong results. [ID 9816678.8]
    Fixed in 11.2.0.3 ...

  • Error facing in MERGE :Updating 2 Tables

    Hi ,
    I am getting Error while trying the update 2 tables:
    MERGE INTO  table_b dst
       USING  (
    SELECT  
    header_id,line_id,detail_id,group_id
       FROM      table_a
                      )               src
        ON     ( 
                    dst.header_id = src.header_id
               AND  dst.line_id = src.line_id
               AND  dst.detail_id = src.detail_id
        WHEN MATCHED THEN UPDATE  SET  det.GROUP_ID  = src.group_id
    N.B:GROUP_ID is preent in both tables (table_a,table_b)
    Error while issuing the Command
    Error at Command Line:14 Column:35
    Error report:
    SQL Error: ORA-00904: "DET"."GROUP_ID": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:   
    *Action:

    921311 wrote:
    Hi ,
    I am getting Error while trying the update 2 tables:
    MERGE INTO  table_b dst
       USING  (
    SELECT 
    header_id,line_id,detail_id,group_id
       FROM      table_a
                      )               src
        ON     (
                    dst.header_id = src.header_id
               AND  dst.line_id = src.line_id
               AND  dst.detail_id = src.detail_id
        WHEN MATCHED THEN UPDATE  SET  det.GROUP_ID  = src.group_id
    N.B:GROUP_ID is preent in both tables (table_a,table_b)
    Error while issuing the Command
    Error at Command Line:14 Column:35
    Error report:
    SQL Error: ORA-00904: "DET"."GROUP_ID": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:  
    *Action:
    I'm sure you're just as capable of looking at your code as I am, and it took me only 1 second to spot
    you have aliased the table table_b as dst but referred to it as det.

  • Update vs Merge - Updating one table based on values in another

    Hello
    I have two tables lets say TAB_A and TAB_B. I altered table B to include a new column from table A
    I wrote a merge statement as follows to merge the data
    MERGE INTO TAB_A
    USING TAB_B
    ON (TAB_A.SECURITYPERSONKEY=TAB_B.SECURITYPERSONKEY)
    WHEN MATCHED THEN
      UPDATE SET TAB_A.PPYACCOUNT=TAB_B.PPYACCOUNT;
    I know INSERT is for inserting new records
    UPDATE to my knowledge is to modify currently existing records (loosely)
    MERGE is one I rarely used, until this particular scenario.
    The code works perfectly fine, but I was wondering how could I write an update statement? Or in this scenario should I even be using an update statement?

    The MERGE is good and performs well, although it malfunctions (sometimes updating data wrongly) if the destination is a view with INSTEAD OF triggers.
    The UPDATE with similar performance to the MERGE depends on SECURITYPERSONKEY being a unique or primary key on TAB_B. It is:
    update (select TAB_A.PPYACCOUNT a_PPYACCOUNT, TAB_B.PPYACCOUNT b_PPYACCOUNT
            from TAB_A JOIN TAB_B on TAB_A.SECURITYPERSONKEY=TAB_B.SECURITYPERSONKEY)
    SET A_PPYACCOUNT=B_PPYACCOUNT;
    This can set multiple columns. It also currently doesn't work on a view with INSTEAD OF triggers.
    Frank's update also works with multiple columns (eg also updating col2 and col2), with this syntax:
    UPDATE  tab_a
    SET     (ppyaccount, col2, col3) = (
                             SELECT  ppyaccount, col2, col3
                             FROM   tab_b
                             WHERE  securitypersonkey  = tab_a.securitypersonkey
    WHERE   EXISTS       (
                             SELECT  ppyaccount
                             FROM    tab_b
                             WHERE   securitypersonkey  = tab_a.securitypersonkey

  • Merge, Update, or Insert?

    Hey all,
    I am new to using Oracle and SQL database codes in general. I am wondering what kind of statement to use for the problem I am about to explain. I will probably have coding questions down the road, which I will post in the correct part of the forum, but I thought that posting this general question would be appropriate in this forum.
    My problem:
    I have a TMP table which contains specific columns that were taken from the source. (Source had 85 columns, this TMP table has around 20). So, now I need to insert the data from the TMP table to different table. For example, the temp table is called TMP_SUPP_MASTER. The table we are moving this information into is TBL_SUPP_MASTER. In the TMP table there are columns like ADR_ST_LN_1, ADR_ST_LN_2, ADR_ST_LN_3, ADR_ST_LN_4...but in the TBL there is just ADDR_ST. Therefore, I need to combine those 4 columns into 1.
    That was one part of the problem, another part involves inserting a single value into every row under the ORG_ID column name. The ORG_ID is not part of TMP, but is in TBL.
    The last part of the problem is we have a lot of SUPP_CD (supplier codes), which are the primary keys. Well the code is built to include a facility ID followed by a "root" supplier code. Each facility ID and "root" supplier code is unique, so we are keeping those codes, but also making a column that has just the "root" supplier code. There are multiple "root" supplier codes that match up, so we are creating a parent/child relationship with those codes and having a column that marks them as 'P' or 'C'. P = parent, C = child. So I need to also insert that.
    On top of all that, we will have new information coming in that needs to be updated to the table (so I'm assuming it's a merge).
    Can anyone point me in the right direction to figure out this problem? I would really appreciate it. I don't need any codes, but just a simple opinion.
    Thank you all!

    991769 wrote:
    Can anyone point me in the right direction to figure out this problem? I would really appreciate it. I don't need any codes, but just a simple opinion.Well, coffee is good for figuring out problems... ;-)
    Performance is determined by the size of a workload and how fast it can be moved. The biggest chunk of most database workloads is I/O. I/O workloads are also slow to move.
    So the basic principal for performance is to do the least amount of I/O as possible.
    If you have an UPDATE using table TMP for getting the new values to update table PROD1, and you have an INSERT using table TMP for getting new data into table PROD2, this means 2 I/O workloads on TMP.
    If both workloads read the entire TMP table, they are pretty much identical and results in a double workload for the same data. In this case a MERGE hitting TMP once, and then feeding updates to PROD1 and inserts to PROD2, will be a far smaller and far more effective workload.
    So when tackling a problem with SQL, try and keep the I/O to only that what is necessary to achieve the goal - and guard against hitting the same rows of data with multiple passes.

  • Merge update insert into with exception

    I m opening a new thread for the same question i had posted earlier....
    create Table test(
    col1 varchar2(200),
    col2 varchar2(200),
    col3 varchar2(200),
    id varchar2(200),
    job_id varchar2(10)
    create Table test1(
    col1 varchar2(200),
    col2 varchar2(200),
    col3 varchar2(200),
    id varchar2(200),
    job_id varchar2(10)
    create Table test2(
    col1 varchar2(200),
    col2 varchar2(200),
    col3 varchar2(200),
    id varchar2(200),
    job_id varchar2(10)
    create Table err_tbl(
    col1 varchar2(200),
    col2 varchar2(200),
    col3 varchar2(200),
    id varchar2(200),
    job_id varchar2(10)
    ===============================================================
    merge into test t
    using (select distinct col1, col2, col3,id, job_id
    from test1
    where job_id = curr_job_id -- cur_job_id is variable which is declared in the procedure to sysdate
    union
    select distinct col1, col2, col3,id, job_id
    from test2
    where job_id = curr_job_id --cur_job_id is variable which is declared in the procedure to sysdate
    ) ss
    on (t.id = ss.id
    AND t.job_id = ss.job_id)
    when matched then update
    set t.col1 = ss.col1,
    t.col2 = ss.col2,
    t.col3 = ss.col3
    when not matched then insert into
    ( t.col1,
    t.col2,
    t.col3,
    t.id,
    t.job_id
    )Values
    ( ss.col1,
    ss.col2,
    ss.col3,
    ss.id,
    ss.jobid,
    exception
    when others then
    insert into err_tbl (
    col1,
    col2,
    col3,
    id,
    job_id )
    values ( ss.col1,
    ss.col2,
    ss.col3,
    ss.id,
    ss.jobid,
    Above, all i m trying to do is Updating or inserting into TEST table, and if there is any Duplicate records or any bad records then making use of exception i m INSERTING into ERR_TBL
    i get error with the merge insert update code ....
    The error i get is --- "ss.col1" column is not allowed here
    Any idea guys ????
    Hey one more quick question ....Can we use exception in merge insert update block ???

    user642297 wrote:
    I m opening a new thread for the same question i had posted earlier....
    Any idea guys ????
    Hey one more quick question ....Can we use exception in merge insert update block ???Did you learn nothing nothing from [Your other thread|http://forums.oracle.com/forums/thread.jspa?messageID=3810396&#3810396]
    (Maybe that's why you never bothered to close it)
    It looks like you did learn something, since you ended up saying
    Thanks alex...i think i got the answer.....so i cannot use exception handler in merge statement...
    Thank you so much!!!What beats me is that yu post the exact same question again, when you already got the answer
    ?:|
    Peter

  • How I can do this update....merge ?

    I have this query
    select GORADID_ADID_CODE from GORADID a
    where exists
    (select * from goradid_cvt  b
    where a.goradid_pidm = b.goradid_pidm
    and a.GORADID_ADID_CODE <> b.goradid_adid_code  ) I need to do an update the GORADID_ADID_CODE on the table GORADID
    needs to be update with the GORADID_ADID_CODE from the table goradid_cvt
    I know a pl\sql precedure will do it , I know how to do it, but I just want to write a little code like merge, perhaps
    The query can be change to
    select GORADID_ADID_CODE from GORADID_cvt a
    where exists
    (select * from goradid   b
    where a.goradid_pidm = b.goradid_pidm
    and a.GORADID_ADID_CODE <> b.goradid_adid_code  )

    Actually this does not work
    I have in the table GORADID
    GORADID_PIDM     GORADID_ADDITIONAL_ID     GORADID_ADID_CODE     GORADID_USER_ID     GORADID_ACTIVITY_DATE     GORADID_DATA_ORIGIN
    1210136     United States     CTZ1                      Conversion                                                                      03/06/2012 16:25:12                     Recruitment Plus
    1210136     United States     CTZ2                      James                                                                       03/07/2012 10:43:10     Jamesin the CVT table GORADID_cvt
    GORADID_PIDM     CONVERT_PIDM     GORADID_ADDITIONAL_ID     CONVERT_ADDITIONAL_ID     GORADID_ADID_CODE     CONVERT_ADID_CODE     GORADID_USER_ID     CONVERT_USER_ID
    1210136     B0020     United States     United States     CTZ2     CTZ2     James     James
    1210136     B0020     Australia                        Australia                         CTZ1     CTZ1     James     JamesI need to ended with an update exactly as the one in the cvt table
    This is the code
    MERGE INTO    goradid        dst
    USING   (
    SELECT   goradid_pidm
            ,        SUBSTR(A.goradid_adid_code,1,4) 
           ,        INITCAP(a.GORADID_ADDITIONAL_ID) aDDITIONAL_ID
           ,a.GORADID_ACTIVITY_DATE
           ,A.GORADID_USER_ID
           ,a.GORADID_DATA_ORIGIN
            FROM     goradid_cvt    a
           WHERE A.GORADID_CVT_STATUS LIKE 'U%'
         AND   EXISTS (
                                 SELECT  1
                    FROM    goradid   b
                        WHERE    a.goradid_pidm         = b.goradid_pidm
                     AND b.GORADID_ADID_CODE like 'C%'
                    AND A.GORADID_PIDM = 1210136
                    AND    substr(a.goradid_adid_code,1,4) !=  substr(b.goradid_adid_code,1,4))
                    )  SRC
                  ON    (src.goradid_pidm = dst.goradid_pidm)
                 WHEN MATCHED THEN UPDATE
                   SET  dst.goradid_adid_code = dst.goradid_adid_code,
                           dst.goradid_user_id =    dst.GORADID_USER_ID,
                           dst.goradid_additional_id = dst.goradid_additional_id,
                            dst.goradid_activity_date = trunc(sysdate),
                           dst.goradid_data_origin =  'James1'
                   SELECT COUNT(*) ,
                           GORADID_CVT_STATUS
                           FROM  GORADID_CVT
                           GROUP BY  GORADID_CVT_STATUS the select stament returns
    SELECT   goradid_pidm
            ,        SUBSTR(A.goradid_adid_code,1,4) 
           ,        INITCAP(a.GORADID_ADDITIONAL_ID) aDDITIONAL_ID
           ,a.GORADID_ACTIVITY_DATE
           ,A.GORADID_USER_ID
           ,a.GORADID_DATA_ORIGIN
            FROM     goradid_cvt    a
           WHERE A.GORADID_CVT_STATUS LIKE 'U%'
         AND   EXISTS (
                                 SELECT  1
                    FROM    goradid   b
                        WHERE    a.goradid_pidm         = b.goradid_pidm
                     AND b.GORADID_ADID_CODE like 'C%'
                    AND A.GORADID_PIDM = 1210136
                    AND    substr(a.goradid_adid_code,1,4) !=  substr(b.goradid_adid_code,1,4))
                    )  SRC
    {code)
    returns1210136     CTZ1     Australia      3/7/2012     James     James
    when I run the merge updates the two records, I nned to ended upating the  
    I need to update the table GORADID like this GORADID_PIDM     CONVERT_PIDM     GORADID_ADDITIONAL_ID     CONVERT_ADDITIONAL_ID     GORADID_ADID_CODE     CONVERT_ADID_CODE     GORADID_USER_ID     CONVERT_USER_ID
    1210136     B0020     United States     United States     CTZ2     CTZ2     James     James
    1210136     B0020     Australia      Australia      CTZ1     CTZ1     James     James
    Edited by: 893973 on Mar 7, 2012 8:55 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • SQL MERGE trying to duplicate update/insert. The insert/update is not ideal, but the sql merge hangs.

    I am trying to duplicate this update/insert with a sql merge:
    -UPDATE [etag].Energy_Processed
    SET Start_Datetime = estg.Start_Datetime,
    --End_Datetime = estg.End_Datetime,
    --Schedule_MW = estg.Schedule_MW,
    --Active_MW = estg.Active_MW,
    Load_Dt = GETUTCDATE() 
    FROM  [etag].Energy_Stg estg, [etag].[Energy_Processed] ep
    WHERE estg.Tag_Name IN
    SELECT DISTINCT(tproc.Tag_Name) from [etag].[Energy_Processed] eproc
    INNER JOIN [etag].[Tag_Processed] tproc ON tproc.Id = eproc.Tag_Id
    INNER JOIN [etag].[Energy_Stg] estg1 ON estg1.Tag_Name = tproc.Tag_Name
               AND ep.Active_MW = estg.Active_MW
               AND ep.End_Datetime = estg.End_Datetime
              AND ep.Schedule_MW = estg.Schedule_MW 
    INSERT into [etag].[Energy_Processed] (Tag_Id, Start_Datetime, End_Datetime, Schedule_MW, Active_MW, Load_Dt)
    SELECT tproc.Id, estg.Start_Datetime, estg.End_Datetime, Schedule_MW, Active_MW, GETUTCDATE()  FROM [etag].[Energy_Stg] estg
    INNER JOIN [etag].[Tag_Processed] tproc ON tproc.Tag_Name = estg.Tag_Name
    WHERE estg.Id BETWEEN @minEId AND @maxEId AND
    estg.Tag_Name NOT IN (
    SELECT DISTINCT (tproc.Tag_Name) from [etag].[Energy_Processed] eproc
    INNER JOIN [etag].[Tag_Processed] tproc ON tproc.Id = eproc.Tag_Id
    INNER JOIN [etag].[Energy_Stg] estg1 ON estg1.Tag_Name = tproc.Tag_Name
    SQL MERGE:
    MERGE [Forecast_Data_Repository].[etag].[Energy_Archive] enArch
    USING 
    (SELECT ep.Tag_Id, ep.Start_Datetime, ep.End_Datetime, ep.Schedule_MW, ep.Active_MW, ep.Load_Dt 
    FROM  [etag].[Energy_Stg] estg, [etag].[Energy_Processed] ep
    WHERE estg.Tag_Name IN
    SELECT DISTINCT(tproc.Tag_Name) from [etag].[Energy_Processed] eproc
    INNER JOIN [etag].[Tag_Processed] tproc ON tproc.Id = eproc.Tag_Id
    INNER JOIN [etag].[Energy_Stg] estg1 ON estg1.Tag_Name = tproc.Tag_Name
    ) AS sourceEP
    ON EXISTS(SELECT sourceEP.Tag_Id)
    WHEN MATCHED THEN
    UPDATE
    SET Tag_Id = sourceEP.Tag_Id,
    Start_DateTime = sourceEP.Start_Datetime,
    End_Datetime = sourceEP.End_Datetime,
    Schedule_MW = sourceEP.Schedule_MW,
    Load_dt = GETUTCDATE()
    WHEN NOT MATCHED BY TARGET THEN
    INSERT (Tag_Id, Start_Datetime, End_Datetime, Schedule_MW, Active_MW, Load_dt)
    VALUES (sourceEP.Tag_Id, sourceEP.Start_Datetime, sourceEP.End_Datetime, sourceEP.Schedule_MW,
    sourceEP.Active_MW, GETUTCDATE())
    OUTPUT
    $action,
    INSERTED.Tag_Id
    --UPDATED.Tag_Name
    INTO @MergeOutput;
    Greg Hanson

    This bit
        ON EXISTS(SELECT sourceEP.Tag_Id)
    Looks wrong. Sould be something like:
       ON sourceEP.Tag_Id = enArch.Tag_Id
    And don't update the matching columns in the UPDATE part, as they already match.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Merge Supplier list

    Hi all,
    I want to know to whether supplier is merged ? if merged to which supplier and who merged..???
    Can anyone help me....
    Thanks and Regards
    Reju

    select vendor_id, duplicate_vendor_id, last_updated_by from AP_DUPLICATE_VENDORS_ALL
    AP_DUPLICATE_VENDORS_ALL stores information about suppliers
    that Supplier Merge updates
    Thanks
    Pradeep

  • OWB won't generate an UPDATE statement

    I have a mapping which I am attempting to do a MERGE (UPDATE/INSERT) statement on. The mapping validates, however, when I generate the SQL for the mapping, it does not generated the MERGE statement SQL. It is like the portion of the mapping does not even exist. I went ahead and tried to do a simple UPDATE statement, and the same problem exists...it will not generate the portion of the mapping that I try to do the UPDATE statement on. I can do an insert statement and the code will be generated, but the UPDATE is a problem.

    I have the same problem.
    I use one source table and one target table (ID filled by a sequence, another column is the unique key)
    I want to use the INSERT/UPDATE as loading type, but OWB creates only an INSERT statement (without an update) and no MERGE-statement.
    If I use the UPDATE/INSERT as loading type, OWB creates two cursors (update and insert).
    What's going wrong?
    And why doesn't OWB create a merge-statement??
    I've created mappings like this one and that worked fine.
    Is it a bug in OWB?
    (And when I delete the sequence, still the same (wrong) result)
    Regards,
    Maurice

  • Any Substitution of Merge statement ?

    Hi All,
    I just would like to know,is it any way to tune the Merge Update or Insert statement based on match ?.I am having one proc where i am using merge statetment and checking based condition it checks whether the record is present if yes then update else insert it,almost 100 k rows is there and this proc takes long time (around 6-7 hrs) to get complete,
    so i just want to know is it any way i can tune my query or any other substitution i can use it instead of MERGE.
    many thanks n advance..
    Anwy

    There should be an applicable index for the destination-table. The index should have a good selectivity with the columns compared in the match condition. Best is to use a unique key or primary key - index.
    Additionally the statistics of the destination-table should be up to date (dbms_stats).
    Edited by: hm on 11.11.2010 02:25

Maybe you are looking for

  • Custom Rule - Problem in passin values From Rule Container to WF Container?

    Hi Guys, I am having hard time passing values back from my custom rule. I have created a custom rule to determine the agents in PFAC which takes in the Person number as import element of container. It determines the Manager as agent and I am passing

  • Idoc segments missing in the final output

    hi Using a file - idoc mapping. have mapped all relevant fields, but in the output only segments show up. not getting all the mapped segments when i test this message mapping. Could anybody please guide me. thxm Pradip

  • Adding a third (down" behavior to my navigation buttons

    Hello, I've designed my first two-state navigation bar using DW-generated behaviors (Javascripts). I have an "up" (inactive) graphic, and a "mouseover" graphic working. I also have a "down" state graphic created, but don't see how I would apply that

  • Control stmt CASE vs IF - Which is better

    Hi, I'm in the process of retrieving data from a table that has millions of rows. Now I need to count the numbers of rows where a particular field,TR_STATUS is either 'A','G' or 'K'. I have three different variables to hold the count on the rows with

  • SCPI command to set the frequency for power measurement on Agilent 53147A?

    Hello, I am trying to automate some measurements which require me to use an Agilent 53147A Freq Counter/Power Meter/Digital Voltmeter. The instrument has an option of setting the frequency of the signal we intend to measure. This is done by clicking