A design of query for the conversion of time difference in days, hours, Minutes

Hi all

A design of query for the conversion of time difference of time in number of days remaining remaining hours minutes and rest in seconds. Made this one till now. Please suggest for all modifications, until now, it seems to work very well, kindly highlight for any anomaly.

WITH DATA (startDAte, EndDate, Datediff) AS (SELECT to_date ('2015-10-01 10:00:59 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-20-01 03:00:49 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-10-01 10:00','yyyy-dd-mm hh24:mi:ss')-to_date('2015-20-01 03:00','yyyy-dd-mm hh24:mi:ss') FROM dual)

UNION ALL SELECT to_date ('2015-10-01 10:00:39 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-20-01 03:00:40 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-10-01 10:00','yyyy-dd-mm hh24:mi:ss')-to_date('2015-20-01 03:00','yyyy-dd-mm hh24:mi:ss') FROM dual

UNION ALL SELECT to_date ('2015-11-01 10:30:45 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-11-01 11:00:50 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-11-01 10:30','yyyy-dd-mm hh24:mi:ss')-to_date ('2015-11-01 11:00 ',' yyyy-mm-dd hh24:mi:ss') FROM dual

UNION ALL SELECT to_date ('2015-11-01 09:00:50 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-11-01 10:00:59 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-11-01 09:00','yyyy-dd-mm hh24:mi:ss')-to_date ('2015-11-01 10:00 ',' yyyy-mm-dd hh24:mi:ss') FROM dual

UNION ALL SELECT to_date ('2015-11-01 08:30:49 ',' yyyy-mm-dd hh24:mi:ss'), to_date ('2015-11-01 09:30:59 ',' yyyy-mm-dd hh24:mi:ss'), to_date('2015-11-01 08:30','yyyy-dd-mm hh24:mi:ss')-to_date('2015-11-01 09:30','yyyy-dd-mm hh24:mi:ss') FROM dual

)

Select

trunc ((EndDate-StartDate)) days.

trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24) hours)

trunc (to_number (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24-trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24)) * 60) Minutes,))

(to_number (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24-trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24)) * 60 - trunc (to_number (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24-trunc (((enddate-startdate)-to_number (trunc ((enddate-startdate))) * 24)) * 60)) * 60 seconds))))

data;

Thanks for the answers in advance.

AHA!

TO_TIMESTAMP expects a string as input, so it first makes an implicit conversion from DATE to a string, in the format of NSL_DATE_FORMAT.

To convert the TIMESTAMP DATE independently NLS_DATE_FORMAT, use

CAST ( AS TIMESTAMP)

Tags: Database

Similar Questions

  • An error occurred when querying for the pending operations

    Original title: sysprep problem
    I have an acer aspire 5738Z, I use windows 7 (64 bit) I try to open sysprep.exe and it does not open, a text box appears saying "an error occurred when querying for the pending operations. What can I do to fix this?

    Hello

    Thanks for posting the request in the Microsoft community forums.
    I understand that you receive the error "an error has occurred when querying for outstanding operations" when trying to open sysprep.exe on the computer.

    You can try the solutions provide and check if it helps solve the issue.

    Method 1:
    You can scan System File Checker to fix corrupted files.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Method 2:
    If the steps above fail then you can try the steps and check.

    a. run regedit by typing regedit in start search by pressing ENTER.
    b navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    Key: RegistrySizeLimit
    Type: REG_DWORD
    Value: 0xffffff (4294967295)
    c. reset.

    If you need help with Windows, keep us informed. We will be happy to help you.

  • Single SQL query for the analysis of the date of customs declaration under the table of Stock codes

    Dear all,


    Please tell us a single SQL query for the below,

    We have a Table of Stock as shown below,

    STOCK_TABLE

     

    ITEM_CODE

    (item code)

    BAT_NO

    (lot no.)

    TXN_CODE

    (transaction code)

    DOC_NO

    (number)

    BOE_DT

    (date of the customs declaration)

    I1

    B1

    I1

    I2

    I3

    B70

    I4

    B80

    I5

    B90

    T102

    1234

    JULY 2, 2015

    I6

    B100

    We have to find the date of customs declaration (i.e. the date when the items have come under this particular table) for items that are not attached to any document (that is, who have TXN_CODE, DOC_NO and BOE_DT fields with a NULL value).

    For each item in the table of actions, which is not attached to any document, the customs declaration date is calculated as follows.

    1. If (code section, lot number) combination is present under HISTORY_TABLE, the date of customs declaration will receive the UPDT_DT, the transaction code (TXN_CODE) is an IN or transactions (which can be analyzed from the TRANSACTIONS table).

    2. If (code section, lot number) combination is NOT currently at the HISTORY_TABLE (or) the transaction code respective to item - batch number combination code is an operation then customs declaration date will be the date of the document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD that contains the element of that particular lot.

  • If the case 1 and case 2 fails, our customs declaration date will be the last date of document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD containing that particular item and the BAT_NO in expected results will be that corresponding to this document, as appropriate, to another NULL.

  • If the case 1 or case 2 is successful, the value of the last field (in the output expected, shown further below) BATCH_YN will be 'Y', because it fits the lot. Otherwise it will be 'n'.
  • HISTORY_TABLE

     

    ITEM_CODE

    BAT_NO

    TXN_CODE

    DOC_NO

    UPDT_DT

    I1

    B1

    T1

    1234

    JANUARY 3, 2015

    I1

    B20

    T20

    4567

    MARCH 3, 2015

    I1

    B30

    T30

    7890

    FEBRUARY 5, 2015

    I2

    B40

    T20

    1234

    JANUARY 1, 2015

    TRANSACTION

     

    TXN_CODE

    TXN_TYPE

    T1

    IN

    T20

    OFF

    T30

    ALL THE

    T50

    IN

    T80

    IN

    T90

    IN

    T60

    ALL THE

    T70

    ALL THE

    T40

    ALL THE

    IN_TABLE_HEAD_1

     

    H1_SYS_ID

    (primary key)

    TXN_CODE

    DOC_NO

    DOC_DATE

    H1ID1

    T1

    1234

    JANUARY 1, 2015

    H1ID2

    T70

    1234

    FEBRUARY 1, 2015

    IN_TABLE_ITEM_1

     

    I1_SYS_ID

    H1_SYS_ID

    (foreign key referencing H1_SYS_ID in IN_TABLE_HEAD_1)

    ITEM_CODE

    I1ID1

    H1ID1

    I1

    I1ID2

    H1ID1

    I100

    I1ID3

    H1ID2

    I3

    IN_TABLE_BATCH_1

     

    B1_SYS_ID

    TXN_CODE                DOC_NO

    (now in IN_TABLE_HEAD_1)

    BAT_NO

    B1ID1

    T1

    1234

    B1 / can be empty

    B1ID2

    T70

    1234

    B70

    IN_TABLE_HEAD_2

     

    H2_SYS_ID

    (primary key)

    TXN_CODE

    DOC_NO

    DOC_DATE

    H2ID1

    T30

    4567

    FEBRUARY 3, 2015

    H2ID2

    T60

    1234

    JANUARY 3, 2015

    IN_TABLE_ITEM_2

     

    I2_SYS_ID

    H2_SYS_ID

    (foreign key referencing H2_SYS_ID in IN_TABLE_HEAD_2)

    ITEM_CODE

    I2ID1

    H2ID1

    I1

    I2ID2

    H2ID1

    I200

    I2ID3

    H2ID2

    I2

    IN_TABLE_BATCH_2

     

    B2_SYS_ID

    I2_SYS_ID

    (foreign key referencing I2_SYS_ID in IN_TABLE_ITEM_2)

    BAT_NO

    B2ID1

    I2ID1

    B30 / null

    B2ID2

    I2ID2

    B90

    B2ID2

    I2ID3

    B60

    IN_TABLE_HEAD_3

     

    H3_SYS_ID

    (primary key)

    TXN_CODE

    DOC_NO

    DOC_DATE

    H3ID1

    T50

    1234

    JANUARY 2, 2015

    H3ID2

    T80

    1234

    JANUARY 3, 2015

    H3ID3

    T90

    1234

    JANUARY 4, 2015

    H3ID4

    T40

    1234

    AUGUST 5, 2015

    IN_TABLE_ITEM_3

     

    I3_SYS_ID

    H3_SYS_ID

    (foreign key referencing H3_SYS_ID in IN_TABLE_HEAD_3)

    ITEM_CODE

    BAT_NO

    I3ID1

    H31D1

    I2

    B50

    I3ID2

    H3ID2

    I4

    B40

    I3ID3

    H3ID3

    I4

    I3ID4

    H3ID4

    I6

    There is no IN_TABLE_BATCH_3

    Please find below the expected results.

    OUTPUT

     

    ITEM_CODE

    BAT_NO

    TXN_CODE

    DOC_NO

    BOE_DT

    BATCH_YN

    I1

    B1

    T1

    1234

    JANUARY 3, 2015

    THERE

    I1

    B30

    T30

    7890

    FEBRUARY 5, 2015

    N

    I2

    B60

    T60

    1234

    JANUARY 3, 2015

    N

    I3

    B70

    T70

    1234

    FEBRUARY 1, 2015

    THERE

    I4

    T90

    1234

    JANUARY 4, 2015

    N

    I6

    T40

    1234

    AUGUST 5, 2015

    N

    Controls database to create the tables above and insert the records.

    CREATE TABLE stock_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), boe_dt DATE );

    INSERT EN stock_table

       VALUES ('I1', 'B1', '', '', '');

    INSERT EN stock_table

       VALUES ('I1', '', '', '', '');

    INSERT IN stock_table

       VALUES ('I2', '', '', '', '');

    INSERT EN stock_table

       VALUES ('I3', 'B70', '', '', '');

    INSERT EN stock_table

       VALUES ('I4', 'B80', '', '', '');

    INSERT EN stock_table

       VALUES ('I5', 'B90', 'T102', '1234', '02-JUL-2015');

    INSERT EN stock_table

       VALUES ('I6', 'B100', '', '', '');

    SELECT *

    FROM stock_table




     

    CREATE TABLE history_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), updt_dt DATE );

    INSERT IN history_table

       VALUES ('I1', 'B1', 'T1', '1234', '03-JAN-2015');

    INSERT IN history_table

       VALUES ('I1', 'B20', 'T20', '4567', '03-MAR-2015');

    INSERT IN history_table

       VALUES ('I1', 'B30', 'T30', '7890', '05-FEB-2015');

    INSERT IN history_table

       VALUES ('I2', 'B40', 'T20', '1234', '01-JAN-2015');

    SELECT *

    FROM history_table




     

    CREATE TABLE transaction1()txn_code VARCHAR()80),txn_type VARCHAR()80));


    INSERT INTO transaction1

       VALUES ('T1', 'IN');


    INSERT INTO transaction1

       VALUES ('T20', 'OUT');

    INSERT INTO transaction1

       VALUES ('T30', 'ALL');

    INSERT INTO transaction1

       VALUES ('T40', 'ALL');

    INSERT INTO transaction1

       VALUES ('T50', 'IN');

    INSERT INTO transaction1

       VALUES ('T60', 'ALL');

    INSERT INTO transaction1

       VALUES ('T70', 'ALL');

    INSERT INTO transaction1

       VALUES ('T80', 'IN');

    INSERT INTO transaction1

       VALUES ('T90', 'IN');

    SELECT *

    FROM transaction1




     

    CREATE TABLE in_table_head_1()h1_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), doc_dt DATE );

    CREATE TABLE in_table_head_2()h2_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), doc_dt DATE );

    CREATE TABLE in_table_head_3()h3_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), doc_dt DATE );

     

    INSERT IN in_table_head_1

       VALUES ('H1ID1', 'T1', '1234', '01-JAN-2015');

    INSERT IN in_table_head_1

       VALUES ('H1ID2', 'T70', '1234', '01-FEB-2015');

    INSERT IN in_table_head_2

       VALUES ('H2ID1', 'T30', '4567', '03-FEB-2015');

    INSERT IN in_table_head_2

       VALUES ('H2ID2', 'T60', '1234', '03-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID1', 'T50', '1234', '02-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID2', 'T80', '1234', '03-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID3', 'T90', '1234', '05-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID4', 'T40', '1234', '05-AUG-2015');




     

    CREATE TABLE in_table_item_1()i1_sys_id VARCHAR2()80) PRIMARY KEY,

    h1_sys_id VARCHAR2 (80) REFERENCES in_table_head_1()h1_sys_id),item_code VARCHAR2()80));

    CREATE TABLE in_table_item_2()i2_sys_id VARCHAR2()80) PRIMARY KEY,

    h2_sys_id VARCHAR2 (80) REFERENCES in_table_head_2()h2_sys_id),item_code VARCHAR2()80));

    CREATE TABLE in_table_item_3(i3_sys_id VARCHAR2(80) PRIMARY KEY,

    h3_sys_id VARCHAR2 (80) REFERENCES in_table_head_3()h3_sys_id),item_code VARCHAR2()80),

    bat_no VARCHAR2 (80));

     

    INSERT IN in_table_item_1

       VALUES ('I1ID1', 'H1ID1', 'I1');

    INSERT IN in_table_item_1

       VALUES ('I1ID2', 'H1ID1', 'I100');

    INSERT IN in_table_item_1

       VALUES ('I1ID3', 'H1ID2', 'I3');

    INSERT IN in_table_item_2

       VALUES ('I2ID1', 'H2ID1', 'I1');

    INSERT IN in_table_item_2

       VALUES ('I2ID2', 'H2ID1', 'I200');

    INSERT IN in_table_item_2

       VALUES ('I2ID3', 'H2ID2', 'I2');

    INSERT IN in_table_item_3

       VALUES ('I3ID1', 'H3ID1', 'I2','B50');

    INSERT IN in_table_item_3

       VALUES ('I3ID2', 'H3ID2', 'I4','B40');

    INSERT IN in_table_item_3

       VALUES ('I3ID3', 'H3ID3', 'I4','');

    INSERT IN in_table_item_3

       VALUES ('I3ID4', 'H3ID4', 'I6','');

    SELECT *

    FROM in_table_item_1

    SELECT *

    FROM in_table_item_2

    SELECT *

    FROM in_table_item_3




     

    CREATE TABLE in_table_batch_1()b1_sys_id VARCHAR2()80) PRIMARY KEY,

    txn_code VARCHAR2 (80), doc_no VARCHAR2 (80), bat_no VARCHAR2 (80));

    CREATE TABLE in_table_batch_2()b2_sys_id VARCHAR2()80) PRIMARY KEY,

    i2_sys_id VARCHAR2 (80) REFERENCES in_table_item_2()i2_sys_id),bat_no VARCHAR2()80));

     

    INSERT IN in_table_batch_1

       VALUES ('B1ID1', 'T1', '1234', 'B1');

    INSERT IN in_table_batch_1

       VALUES ('B1ID2', 'T70', '1234', 'B70');

    INSERT IN in_table_batch_2

       VALUES ('B2ID1', 'I2ID1', 'B30');

    INSERT IN in_table_batch_2

       VALUES ('B2ID2', 'I2ID2', 'B90');

    INSERT IN in_table_batch_2

       VALUES ('B2ID3', 'I2ID3', 'B60');

    Please advise a solution for the same.

    Thank you and best regards,

    Séverine Suresh

    very forced (question subfactoring used to allow easy testing/verification - could work with these test data only)

    with

    case_1 as

    (select s.item_code,

    s.bat_no,

    h.txn_code,

    h.doc_no,

    h.updt_dt boe_dt,

    cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.

    cases where h.txn_code is not null

    and h.doc_no is not null

    and h.updt_dt is not null

    then 'case 1' '.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, boe_dt

    of w_stock_table

    where bat_no is null

    or txn_code is null

    or doc_no is null

    or boe_dt is null

    ) s

    left outer join

    w_history_table h

    On s.item_code = h.item_code

    and s.bat_no = h.bat_no

    and exists (select null

    of w_transaction1

    where txn_code = nvl (s.txn_code, h.txn_code)

    and txn_type in ('IN', 'ALL')

    )

    ),

    case_2 as

    (select s.item_code,

    NVL (s.bat_no, h.bat_no) bat_no.

    NVL (s.txn_code, h.txn_code) txn_code.

    NVL (s.doc_no, h.doc_no) doc_no.

    NVL (s.boe_dt, h.updt_dt) updt_dt.

    cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.

    cases where h.txn_code is not null

    and h.doc_no is not null

    and h.updt_dt is not null

    then 'case 2'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, boe_dt

    of case_1

    where refers_to is null

    ) s

    left outer join

    w_history_table h

    On s.item_code = h.item_code

    and exists (select null

    of w_transaction1

    where txn_code = nvl (s.txn_code, h.txn_code)

    and txn_type in ('IN', 'ALL')

    )

    and not exists (select null

    of case_1

    where item_code = h.item_code

    and bat_no = h.bat_no

    and txn_code = h.txn_code

    and doc_no = h.doc_no

    and updt_dt = h.updt_dt

    )

    ),

    case_31 as

    (select s1.item_code,

    NVL (S1.bat_no, W1.bat_no) bat_no.

    NVL (S1.txn_code, W1.txn_code) txn_code.

    NVL (S1.doc_no, W1.doc_no) doc_no.

    NVL (S1.updt_dt, W1.doc_dt) updt_dt.

    cases where s1.bat_no = w1.bat_no then 'Y' else ' n end batch_yn.

    cases where w1.txn_code is not null

    and w1.doc_no is not null

    and w1.doc_dt is not null

    then "case 31'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to

    of case_2

    where refers_to is null

    ) s1

    left outer join

    (select i1.item_code, h1.txn_code, h1.doc_no, h1.doc_dt, b1.bat_no

    of w_in_table_item_1 i1

    inner join

    w_in_table_head_1 h1

    On i1.h1_sys_id = h1.h1_sys_id

    inner join

    w_in_table_batch_1 b1

    On h1.txn_code = b1.txn_code

    and h1.doc_no = b1.doc_no

    ) w1

    On s1.item_code = w1.item_code

    ),

    case_32 as

    (select s2.item_code,

    NVL (S2.bat_no, W2.bat_no) bat_no.

    NVL (S2.txn_code, W2.txn_code) txn_code.

    NVL (S2.doc_no, W2.doc_no) doc_no.

    NVL (S2.updt_dt, W2.doc_dt) updt_dt.

    cases where s2.bat_no = w2.bat_no then 'Y' else ' n end batch_yn.

    cases where w2.txn_code is not null

    and w2.doc_no is not null

    and w2.doc_dt is not null

    then "case 32'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to

    of case_2

    where refers_to is null

    ) s2

    left outer join

    (select i2.item_code, h2.txn_code, h2.doc_no, h2.doc_dt, b2.bat_no

    of w_in_table_item_2 i2

    inner join

    w_in_table_head_2 h2

    On i2.h2_sys_id = h2.h2_sys_id

    inner join

    w_in_table_batch_2 b2

    On i2.i2_sys_id = b2.i2_sys_id

    ) w2

    On s2.item_code = w2.item_code

    ),

    case_33 as

    (select s3.item_code,

    w3.bat_no,

    NVL (S3.txn_code, w3.txn_code) txn_code.

    NVL (S3.doc_no, w3.doc_no) doc_no.

    NVL (S3.updt_dt, w3.doc_dt) updt_dt.

    cases where s3.bat_no = w3.bat_no then 'Y' else ' n end batch_yn.

    cases where w3.txn_code is not null

    and w3.doc_no is not null

    and w3.doc_dt is not null

    then "case 33'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to

    of case_2

    where refers_to is null

    ) s3

    left outer join

    (select i3.item_code, h3.txn_code, h3.doc_no, h3.doc_dt, i3.bat_no

    of w_in_table_item_3 i3

    inner join

    w_in_table_head_3 h3

    On i3.h3_sys_id = h3.h3_sys_id

    ) w3

    On s3.item_code = w3.item_code

    )

    Select item_code, bat_no, txn_code, doc_no, boe_dt, batch_yn

    of case_1

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_2

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn,

    ROW_NUMBER() over (partition by item_code of updt_dt desc order) rn

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_31

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_32

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_33

    where refers_to is not null

    )

    )

    where rn = 1

    ITEM_CODE BAT_NO TXN_CODE DOC_NO BOE_DT BATCH_YN
    I1 B1 T1 1234 JANUARY 3, 2015 THERE
    I1 B30 T30 7890 FEBRUARY 5, 2015 N
    I2 B60 T60 1234 JANUARY 3, 2015 N
    I3 B70 T70 1234 FEBRUARY 1, 2015 THERE
    I4 - T90 1234 JANUARY 5, 2015 N
    I6 - T40 1234 AUGUST 5, 2015 N

    Concerning

    Etbin

  • Is the application of the only edition that comes with the designer just cloud for the publication of apple or can I post on apple and android?

    Is the application of the only edition that comes with the designer just cloud for the publication of apple or can I post on apple and android? I see only information on living apple.

    iPad only.

  • Script for the conversion of the hyperlinks to the buttons?

    Hello!

    Does anyone know if West a script for the conversion of the hyperlinks to buttons with the action of going to the URL with the same URL, which has been used with hyperlink?

    Here it is:

    /* Copyright 2012, Kasyan Servetsky
    November 29, 2012
    Written by Kasyan Servetsky
    http://www.kasyan.ho.com.ua
    e-mail: [email protected] */
    //======================================================================================
    var scriptName = "Convert hyperlinks to buttons - 1.0";
    
    Main();
    
    //===================================== FUNCTIONS  ======================================
    function Main() {
        var hyperlink, source, sourceText, destination, page, arr, outlinedText, gb, button, behavior,
        barodeCount = 0,
        hypCount = 0;
        if (app.documents.length == 0) ErrorExit("Please open a document and try again.", true);
        var startTime = new Date();
    
        var doc = app.activeDocument;
        var layer = doc.layers.item("Buttons");
        var swatch = doc.swatches.item("RGB Yellow");
        var hyperlinks = doc.hyperlinks;
    
        var progressWin = new Window ("window", scriptName);
        progressBar = progressWin.add ("progressbar", undefined, 0, undefined);
        progressBar.preferredSize.width = 450;
        progressTxt = progressWin.add("statictext", undefined,  "Starting processing hyperlinks");
        progressTxt.preferredSize.width = 400;
        progressTxt.preferredSize.height = 30;
        progressTxt.alignment = "left";
        progressBar.maxvalue = hyperlinks.length;
        progressWin.show();
    
        for (var i = hyperlinks.length-1; i >= 0; i--) {
            hyperlink = hyperlinks[i];
            source = hyperlink.source;
            sourceText = source.sourceText;
            destination = hyperlink.destination;
            page = sourceText.parentTextFrames[0].parentPage;
    
            barodeCount++;
            progressBar.value = barodeCount;
            progressTxt.text = "Processing hyperlink " + hyperlink.name + " (Page - " + page.name + ")";
    
            arr = sourceText.createOutlines(false);
            outlinedText = arr[0];
            gb = outlinedText.geometricBounds;
            outlinedText.remove();
    
            button = page.buttons.add(layer, {geometricBounds: gb, name: hyperlink.name});
            button.fillColor = swatch;
            button.fillTint = 50;
            button.groups[0].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;
            behavior = button.gotoURLBehaviors.add();
            behavior.url = destination.destinationURL;
    
            hyperlink.remove();
            source.remove();
    
            hypCount++;
        }
    
        var endTime = new Date();
        var duration = GetDuration(startTime, endTime);
        progressWin.close();
    
        alert("Finished. " + hypCount + " hyperlinks were convertted to buttons.\n(time elapsed: " + duration + ")", scriptName);
    
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function GetDuration(startTime, endTime) {
        var str;
        var duration = (endTime - startTime)/1000;
        duration = Math.round(duration);
        if (duration >= 60) {
            var minutes = Math.floor(duration/60);
            var seconds = duration - (minutes * 60);
            str = minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second");
            if (minutes >= 60) {
                var hours = Math.floor(minutes/60);
                minutes = minutes - (hours * 60);
                str = hours + ((hours != 1) ? " hours, " : " hour, ") + minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second");
            }
        }
        else {
            str = duration + ((duration != 1) ? " seconds" : " second");
        }
    
        return str;
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function ErrorExit(error, icon) {
        alert(error, scriptName, icon);
        exit();
    }
    
  • Dynamic problem with lookup-query for the purpose of resource request

    Hi all
    I need to set up several IOM user exchange mailboxes, I can set up AD account and account of the mailbox without any problem, but only for the first ad and Exchange account. For the second and third, etc. I get the error: "Invalid login name" during Exchange of account provisioning. I discovered that this problem exists with Exchange Connector - it is not able to collect correct GUID. So in my xml Dataset I use dynamic query Lookup to select manually correct Alias, the login name and GUID. The query for the GUID is the sequel (I cloned RO for AD and Exchnage):

    AttributeReference available-in-bulk = "true" length = "32" widget = 'search query' type = 'String' attr-ref = "Object GUID" name = "Object GUID" >
    * < lookupQuery search-query = "select distinct UD_KFUSER_OBJECTGUID GUID, ud_KFUSER_uid like UD_KFUSER UD_KFUSER, orc orc Login, sta sta where UD_KFUSER.orc_key = orc.orc_key and orc.usr_key = ' $Form data." Take ' and UD_KFUSER. "UD_KFUSER_AD = 27 and orc.orc_status = STA.sta_status AND STA.sta_bucket! = 'Cancelled'" display-field = "GUID" save-field = "Object GUID" / > *.
    * < / AttributeReference > *.


    My questions are:

    1. I have to type * to run the query in the user interface, without * I got error:

    + < 17 February 2012 11:12:22 THIS > < error > < oracle.adfinternal.view.faces.config.ric +.
    h.RegistrationConfigurator > < BEA-000000 > < ADF_FACES - 60096:Server Exception durin
    PPR, #10 g
    oracle.iam.platform.canonic.base.NoteException: an error occurred during executin
    g the search query.
    to oracle.iam.platform.canonic.agentry.GenericEntityLookupActor.perform)
    GenericEntityLookupActor.java:337)
    Is this right?

    2. when I got correct values (from the search query) - they are missing on the details of the application and form of RO - what Miss me?

    I use OIM 11.1.1.5, in my xml dataset I use correct attr-Ref (labels), when I type the values manually, they are propagated to form RO and Exchange mailbox is created.
    Best
    MP

    I not had no problem when writing search query.
    This works very well for me.
    The request will be filled for the field, so why choose *?
    I used as

  • Documentation for the conversion of virtual and physical memory

    Are there any decent documentation for the conversion of virtual and physical memory?

    Any help would be appreciated.

    Yes I do, I'll send you my notes!

    Matthew

    Kaizen!

  • How to write a query for the data exchange between two columns?

    How to write a query for the data exchange between two columns?

    I tried a request, does NOT work.
    update tmp t1 set t1.m1=t1.m2 and t1.m2=(select t2.m1 from tmp t2 where t2.student_id = t1.student_id)
    Thank you.

    Published by: user533361 on October 23, 2009 14:04

    Just plain and simple:

    update tmp t1
     set t1.m1=t1.m2,
         t1.m2=t1.m1
    /
    

    SY.

  • Show the average time in days hours minutes seconds

    Hello

    I have two tables as follows,

    Is it possible to separate the average time in days, hours, minutes, seconds.

    I need the average time required for each account.

    with
    Table1 as
    (select "AAA" acname, 123 tid, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') ltime Union double all the )
    Select 'AAA', 456, to_date (January 11, 15 15:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
    Select 'BBB', 789, to_date (11 January 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
    Select 'CCC', 990, to_date (11 January 15 18:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
    Select 'BBB', 880, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
    Select 'DDD', 770, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
    Select 'BBB', 555, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double
    ),
    Table2 as
    (select txid 123, to_date (January 11, 15 14:00 ',' dd-mm-aa hh24:mi:ss') mtime of union double all the )
    Select 456, to_date (January 11, 15 16:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
    Select 789, to_date (11 February 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union
    Select 770, to_date (11 February 15 07:00 "," dd-mm-yy hh24:mi:ss') of all the double union
    Select 990, to_date (11 January 15 23:30 ',' mm-dd-aa hh24:mi:ss') of all the double union
    Select 880, to_date (11 February 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union
    Select 555, to_date (11 February 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double
    )
    Choose acname, avg (hrs)
    from (select distinct t1.acname, (t2.mtime - t1.ltime) * 24 h )
    from table1 t1,
    Table2 t2
    where t1.tid = t2.txid
    )
    Group acname


    Expected results


    ACNAME Avg (day) APR (hrs) Avg (Mins) Avg (dry)

    AAA 0 1 0 0 (that is to say 14:00-13:00 = 1 and 16 15 = 1, Avg = (1 + 1) / 2 = 1)

    BBB          1               0          0               0

    CCC          0               5          30             0

    DDD          1               2          0               0

    with

    Table1 as

    (select 'AAA' acname, 123 tid, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') ltime Union double all the)

    Select 'AAA', 456, to_date (January 11, 15 15:00 ',' dd-mm-aa hh24:mi:ss') of all the double union

    Select 'BBB', 789, to_date (11 January 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union

    Select "CCC", 990, to_date (11 January 15 18:00 ',' dd-mm-aa hh24:mi:ss') of all the double union

    Select 'BBB', 880, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union

    Select 'DDD', 770, to_date (11 January 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union

    Select 'BBB', 555, to_date (January 11, 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double

    ),

    Table2 as

    (select txid 123, to_date (January 11, 15 14:00 ',' dd-mm-aa hh24:mi:ss') mtime of union double all the)

    Select 456, to_date (January 11, 15 16:00 ',' dd-mm-aa hh24:mi:ss') of all the double union

    Select 789, to_date (11 February 15 04:00 ',' dd-mm-aa hh24:mi:ss') of all the double union

    Select 770, to_date (11 February 15 07:00 "," dd-mm-yy hh24:mi:ss') of all the double union

    Select 990, to_date (11 January 15 23:30 ',' mm-dd-aa hh24:mi:ss') of all the double union

    Select 880, to_date (11 February 15 05:00 "," dd-mm-yy hh24:mi:ss') of all the double union

    Select 555, to_date (11 February 15 13:00 ',' dd-mm-aa hh24:mi:ss') of double

    )

    Select acname,

    trunc (AVG (Days)) days,

    trunc (mod (AVG (Days), 1) * 24) hours,

    trunc (mod (AVG (Days) * 24.1) * 60) minutes.

    trunc (mod (AVG (Days) * 24 * 60.1) * 60) seconds

    from (select distinct t1.acname,(t2.mtime-t1.ltime) days

    FROM table1 t1,

    table2 T2

    where t1.tid = t2.txid

    )

    Acname group

    /

    ACN DAYS HOURS MINUTES SECONDS

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

    BBB         31          0          0          0

    CCC          0          5         30          0

    AAA          0          1          0          0

    DDD         31          1          0          0

    SQL >

    SY.

  • 'image' for the conversion of "photo".

    LabVIEW dear gurus,.

    I have a problem I would like to help with. I have a labview VI that creates an image using the entire block 'IMAQ image', and I a VI which allows the selection of image with the mouse. Most of the code for this second VI is an example. The problem is my photo VI selection requires that the image of the data type 'image', but the photos my other VI creates are the data type "image." CTRL-h wrote the first type of wire is 'image' and the second type of thread is "Image Dst Out (IMAQImage). I need either to convert the 'image' to 'image', or rewrite my photo selection to take in a variable "image" instead of "photo". I'm not particularly good at labview, I'm short on time, so conversion seems to be the best option. I found another thread that talks about the conversion of an 'image' in a table, but I do not know how to turn this table back into a 'picture '. Someone at - it ideas?

    Thank you
    sdt51

    Hi Daniel,.

    The VI I posted actually did the right thing, but I misnamed it.  Where did you see this VI?  I just created myself on my PC here.  Anyway, here's the same VI to 8.2.

  • Name of the table to query for the time window of work

    I am trying to build a query for a list of jobs in tide. Anyone know what table is for the time window? Please notify. Thank you.

    Hi Warren, according to me, this is the jobdtl table.

    jobdtl_fromtm and jobdtl_untiltm

  • scalable design vcs-e for the clients of MPLS and internet

    Hi all

    I think of an evolutionary design of VCS-highway in a service provider architecture.

    Some clients reach vcs-e across one MPLS network, another customer over the internet (each client with its own vcs - c).

    I have a vcs-e with dual NICs and nat enabled.

    VCS - e is a private network.

    In this architecture, if I nat vcs-e in one public ip address, I can't inject the public IP address in the VPN client (clients use the address private, and anyway, they will not receive a public IP, MPLS and the internet). And I can't inject a private Internet ip address. In addition, every customer wants to use an ip address of vcs - e compatible with their plan ip... then maybe customer wants to use an address of 172.31.x.y and a B client an IP address of 192.168.x.y.

    Best solution would be to nat vcs-e address in different ip address for each client / internet through the firewall, for example vcs-e 10.1.1.1 in 172.31.24.1 for the customer has, in 192.168.24.1 for client B and 80.x.y.z for the internet, according to the firewall context... but I'm not sure that I can do (I can? I think I can only the ip address of nat vcs-e statically 1 to 1).

    I am attaching a figure illustrating the design of the network.

    Any suggestion?

    Hello

    In your design, it is allowed to do NAT between VCS - C and VCS-E if you configure using links/box of course, which I think is what you plan to do. A nearby area will fail in this design.

    If your customer can have a VCS - C on their private network and that you connect to your VCS-E through a NAT firewall as you describe as the "best solution".  There is no need to NAT any return to the client IP address, since the VCS - C will make an outbound connection only for the VCS-E.

    Robert

  • Need to query for the records of the last and the first of several records based on condititon

    Hi guru,.

    First of all thanks for all help so far...

    I have a quick requirement to write the sql code of the table to fullfill the slot time condition.

    I have a table a lot of files, but I want to filter the table date using logic below.

    1. There are several records for dm_cc_agent_dkey and service department and documents contain service = 'Sales' then select this folder.

    ex: dm_cc_agent_dkey = 4702

    {code}

    Select count (*), SERVICE_DEPARTMENT, dm DM_CC_AGENT_DKEY. Temp_Call_Center_tpc where dm_cc_agent_dkey = 4702

    SERVICE_DEPARTMENT group, DM_CC_AGENT_DKEY

    Count (*) Service_Department DM_CC_AGENT_DKEY

    78 4702 traveler assistance

    2672 NA 4702

    2995 sales 4702

    2. If several records for the Department of dm_cc_agent_dkey and service, but no after-sales service department can choose record max dm_date_dkey max

    ex: dm_cc_agent_dkey = 4074

    Select count (*), SERVICE_DEPARTMENT, dm DM_CC_AGENT_DKEY. Temp_Call_Center_tpc where dm_cc_agent_dkey = 4074

    SERVICE_DEPARTMENT group, DM_CC_AGENT_DKEY

    Count (*) Service_Department DM_CC_AGENT_DKEY

    21             NA                             4074

    Traveller 3 support 4074

    Create table statement:

    CREATE TABLE TEMP_CALL_CENTER_TPC

    (

    SERVICE_DEPARTMENT VARCHAR2 (100 BYTE),

    DM_DESTINATION_CODE_FKEY NUMBER (10) NOT NULL,

    DM_CC_ORIG_SERVICE_DKEY NUMBER (10) NOT NULL,

    DM_CC_ORIG_CALL_TYPE_DKEY NUMBER (10) NOT NULL,

    DM_DATE_DKEY NUMBER (10),

    DM_PUBLICATION_SOURCE_DKEY NUMBER (10) NOT NULL,

    DM_CC_AGENT_DKEY NUMBER (10) NOT NULL

    )

    INSERT orders:


    TOGETHER TO DEFINE

    -SQL statement that produces these data:

    --

    -SELECT DISTINCT service_department, dm_date_dkey, dm_cc_agent_dkey OF DM. TEMP_CALL_CENTER_TPC WHERE DM_CC_AGENT_DKEY IN (4074,4702);

    --

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10859, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10834, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10842, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10839, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10789, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10775, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10749, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10761, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10663, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10685, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10635, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10670, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10603, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10608, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10792, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10802, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10662, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10654, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10629, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10725, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11041, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11027, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11024, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11019, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11001, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10918, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10754, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10853, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10655, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10643, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10669, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11082, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11064, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10970, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 12578, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 12517, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11470, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11170, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11157, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11152, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11146, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11140, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11127, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11131, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11114, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11092, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11089, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11082, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11036, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11024, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11022, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10998, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10994, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10896, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10882, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10915, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10967, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10964, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10979, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10972, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10846, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10857, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10817, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10797, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10796, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10736, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10757, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10683, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10676, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10639, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10606, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10601, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10764, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10770, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10637, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10647, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10661, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10816, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10742, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10721, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10719, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11058, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11043, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10967, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10966, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10959, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10712, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10605, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10626, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10867, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10783, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10689, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10767, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10774, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11176, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11113, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11107, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11104, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11063, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11054, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11000, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10915, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10910, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 12424, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11523, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11175, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11159, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11156, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11128, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11124, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11110, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11100, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11090, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11063, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11035, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11033, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11026, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11007, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10886, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10887, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10924, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10921, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10957, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10946, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10949, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10974, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10907, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10854, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10825, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10841, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10782, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10769, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10718, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10726, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10657, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10660, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10633, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10612, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10790, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10642, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10649, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10681, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10714, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11062, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11003, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10988, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10963, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10968, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10909, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10720, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10867, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10619, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10791, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10770, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11191, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11194, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11159, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11147, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11140, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11100, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11085, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11079, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10971, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11563, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11181, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11162, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11149, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11135, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11105, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11099, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11097, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11075, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11055, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11005, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10992, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10984, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10966, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10893, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10953, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10977, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10865, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10845, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10855, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10832, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10684, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10741, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10722, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10688, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10664, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10640, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10632, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10656, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10615, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10607, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10763, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10783, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10667, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10776, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10655, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10756, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11057, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11022, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10991, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10960, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10949, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10981, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10743, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10675, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10769, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10799, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10782, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10776, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10649, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10613, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10847, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11195, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11189, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11117, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10995, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10913, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10979, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 12095, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11512, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11188, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11187, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11176, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11161, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11155, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11154, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11148, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11121, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11119, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11113, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11103, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11086, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11078, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11070, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11064, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11050, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11049, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11047, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11027, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11006, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10995, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10902, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10888, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10916, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10963, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10922, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10895, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10950, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10987, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10980, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10852, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10861, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10779, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10830, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10732, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10747, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10813, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10847, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10826, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10768, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10641, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10727, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10760, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11021, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10945, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10798, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10620, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10837, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10868, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10795, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10675, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10795, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10866, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10627, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11133, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10973, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 12096, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11190, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11194, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11179, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11178, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11153, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11145, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11132, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11134, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11125, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11117, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11111, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11104, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11067, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11057, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11041, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11043, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11000, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('NA', 11001, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10879, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10889, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10983, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10918, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10960, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10958, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10951, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10971, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10909, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10910, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10851, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10804, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10814, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10791, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10781, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10762, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10748, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10643, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10636, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10610, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10613, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10611, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10618, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10774, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10777, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10678, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10677, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10621, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11051, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11023, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10993, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10916, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10974, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10739, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10614, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10763, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10605, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 12342, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11181, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11155, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11135, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11132, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11114, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11076, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11067, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 12712, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 12593, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11727, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11511, 4074);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11195, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11191, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11182, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11177, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11174, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11167, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11166, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11147, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11139, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11133, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11112, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11106, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11096, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11091, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11093, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11084, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11079, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11077, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11071, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11065, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11056, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11054, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11051, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11048, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11042, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11044, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11028, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11021, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11019, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11003, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10993, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10991, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10881, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10883, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10945, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10956, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10985, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10986, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10970, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10973, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10976, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10908, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10911, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10913, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10748, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10831, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10844, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10819, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10780, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10682, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10645, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10634, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10827, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10858, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10646, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10627, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10734, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10729, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10713, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11077, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11056, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11006, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10972, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10907, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10733, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10746, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10860, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10788, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10641, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10648, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10868, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10680, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11187, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11162, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11153, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11020, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10992, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10985, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10986, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11173, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11168, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11138, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11107, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11083, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11068, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11061, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11058, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11037, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11020, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11004, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10999, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10903, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10900, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10880, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10890, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10981, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10914, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10965, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10894, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10959, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10978, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10799, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10840, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10771, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10728, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10750, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10625, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10706, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10674, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10818, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10788, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10803, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10812, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10824, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10628, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10619, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10740, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10753, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10711, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10715, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10781, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11050, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11044, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10998, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10914, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10964, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10980, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10911, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10735, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10689, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10671, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10833, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10775, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10657, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10612, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11190, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11154, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11103, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11089, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 11004, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("Sales", 10924, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ('Traveller Support', 10676, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11189, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11169, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11142, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11141, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11126, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11118, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11098, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11085, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 11076, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11069, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11066, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11062, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11023, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 11002, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10988, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10901, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA" 10904, 4702);

    Insert in the DM. TEMP_CALL_CENTER_TPC

    (SERVICE_DEPARTMENT, DM_DATE_DKEY, DM_CC_AGENT_DKEY)

    Values

    ("NA", 10897, 4702);

    COMMIT;


    {code}



    Can you please help me write the query to fulfil the two conditions of the query.

    Thanks in advance!

    Appreciated!

    Hello

    Here's a way to do it:

    WITH got_rnk_grp AS

    (

    SELECT T.*

    CASE

    WHEN service_department = 'sales '.

    THEN "A".

    WHEN dm_date_dkey = MAX (dm_date_dkey)

    COURSES (PARTITION BY dm_cc_agent_dkey)

    THEN 'B '.

    END AS rnk_grp

    OF temp_call_center_tpc t

    )

    got_rnk AS

    (

    SELECT r.*

    DENSE_RANK () OVER (PARTITION BY dm_cc_agent_dkey

    ORDER BY rnk_grp

    ) AS rnk

    Got_rnk_grp r

    )

    SELECT dm_destination_code_fkey

    dm_cc_orig_service_dkey

    dm_cc_orig_call_type_dkey

    dm_date_dkey

    dm_publication_source_dkey

    service_department

    dm_cc_agent_dkey

    OF got_rnk

    WHERE rnk = 1

    ORDER BY dm_cc_agent_dkey DESC

    ;

    He is a Top - N query example, where you want to display top rows N (N = 1 in this case) from the top of a sorted list (a separate list for each dm_cc_agent_dkey).  The usual way to go is with a ranking analytical function, such as DENSE_RANK.  We want the best line available for each value of dm_cc_agent_dkey, where the lines with service_department = 'Sales' are the best possible lines (let's call these group 'A'), and the lines with the highest dm_dtae_dkey are best second (let's call these 'B' group).  To determine if a line is in the group 'A' or 'B' requires the analytical functions, and since the analytical functions cannot be nested, it takes a separate subquery to find the Group ('A' or 'B' or none) before we can determine the rank.

  • What are the APIs used or tables of the interface used for the conversion of the Bank

    Hi all

    Please let me know if there is no table interface or api used to make the conversion of the Bank in r12.

    Thank you

    There is no interface for the Bank conversion table in r12, but you can use APIs such as: CE_BANK_PUB. CREATE_BANK, CE_BANK_PUB. CREATE_BANK_BRANCH, CE_BANK_PUB. CREATE_BANK_ACCT, ce_bank_pub.create_bank_acct_use etc...

  • SQL query for the combination of characters

    Hi all

    I need an outlet on different combinations of characters.

    with t as)
    Select col1 ('124:369'), ('598:192') col2, col3 as ('547:541:965')
    of the double
    )
    Select * from t;

    output:
    =====
    124:369, 369:124
    598:192, 192:598
    547:541:965, 965:541:547, 541:547:965, 541:965:547, 965:547:541, 547:965:541

    Thank you and best regards,

    ajraj

    Hi, Ajraj,

    G2500 wrote:

    Hi all

    I need an outlet on different combinations of characters.

    ...

    Actaully, 'combination' means that any order, then "124:369" is the same combination as "369:124".  It looks like you want all the different Permutations, combinations of no.

    You can do this by dividing each separate points colon-delimited string (that is, splitting '124:369', ' 124 'and ' 369') and then re - combine in every possible way.  You can use CONNECT BY (without START WITH clause) for both steps.

    Here's a way to do it:

    WITH unpivoted_data AS

    (

    SELECT str

    REGEXP_SUBSTR (str,

    , '[^:]+'

    1

    LEVEL

    ), Element

    T

    UNPIVOT (str

    FOR the collar (col1, col2, col3)

    )

    CONNECT BY LEVEL<= regexp_count="" (str,="">

    AND PRIOR str = str

    AND PRIOR SYS_GUID () IS NOT NULL

    )

    got_perm AS

    (

    SELECT str

    , SUBSTR (SYS_CONNECT_BY_PATH (point, ' :')))

    2

    ) AS perm

    Of unpivoted_data

    WHERE CONNECT_BY_ISLEAF = 1

    CONNECT BY NOCYCLE str = str PRIOR

    AND point <> point PRIOR

    )

    SELECT LISTAGG (perm, ",") THE Group (ORDER BY perm) AS perm_list

    OF got_perm

    GROUP BY str

    ;

    Output:

    PERM_LIST

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

    124:369, 369:124

    541:547:965, 541:965:547, 547:541:965, 547:965:541, 965:541:547, 965:547:541

    192:598, 598:192

    Why is your data?  What is the best way to keep it?

    Relational databases work best when each column of each row contains 1 single piece of information.  It is so fundamental to the design of table that he called the first normal form.  This problem (and, I bet, many other problems) would be easier if your data is stored in a standard table.

Maybe you are looking for

  • Broken button Satellite A300D-17F

    I removed a button on the keyboard and I broke a small piece of plastic under the button construction. Can I find a new plastic construction and replace because the button can now be removed without any strength? :(

  • engine control

    Hey, anyone know how to control a maxon motor using labview?

  • Pavilion g6 2274sd: incorrect BIOS password

    Hello I tried to get into my BIOS for centuries now. The password that I remembered seems to be incorrect several times. The name of the product is HP Pavilion 2274sd g6 Thanks for all your time.

  • update my extended cs6

    Hi allI paid 727,00 usd for PS CS6 and action 3D is not included... Now, I found that cs6 EXTENDED is that.There is no update for this feature or I have to buy again... which is not very nice to do especially because the amount of money already charg

  • Closing popup programmatically.

    Hi allI use Jdeveloper 12.1.2.0.0. I need to close the popup programmatically.The popup is inside a page fragment that is included in another fragment of page.I use viewscope bean, so I can't link the popup directly. So I am using the following code.