Statement of Pivot complex?

Hi all

I need to fix a bunch of code hack which consists of several union statements that I can count. All unions use the same table and where clauses.

What we currently have, is something like:

Select asset_id,

cases where construction_date is null then 1 or 0 end as long as documents,.

-case when construction_date is null then 'date invalid construction' as problem

of asset_table

UNION

Select asset_id,

When construction_date is null and that payment_date-case < sysdate-50 and 0 otherwise 1 end as long as documents,.

When construction_date is null and that payment_date-case < sysdate-50 then 'paid but not built"as problem

of asset_table

So, as it looks that I went and did the following:

Select asset_id,

case when construction_date is null then 1 or 0 end as "date invalid construction."

When construction_date is null and that payment_date-case < sysdate - 50 then 1 0 otherwise end as "paid but not built."

of asset_table

The issue I'm facing now, is that I have a few capital records that meet several conditions, i.e. they have no valid and paid construction dates but not built in a single resource row 1 (historically, there are 2 ranks - I need to have 2 rows to generate reports.)

How can I go on making rotate this return all about give 2 + ranks when several conditions are met?

Thank you so so so much!

Several ways to address the issue, but the collections are a good approach.  With a collection you can add several controls you want, everything will be solved independently.

CREATE or REPLACE type TY_NUMBERS as array of numbers

/

CREATE or REPLACE type TY_ARGUMENTS as table of varchar2 (32767)

/

with asset_table (asset_id, construction_date, payment_date) as)

Select 1, null, sysdate-50 in all double union

Select option 2, null, sysdate-52 Union double all the

Select 3, null, sysdate-50 in all double union

Select 4, null, sysdate-53 double

),

qryValues as)

Select asset_id,

TY_NUMBERS (case when construction_date is null then 0 otherwise 1 end)

where construction_date is null and payment_date< sysdate="" -50="" then="" 1="" else="" 0="" end)="" multiset="" except="" distinct="" ty_numbers(null)="" as="">

TY_ARGUMENTS (case when construction_date is null then end 'date of the invalid construction',

where construction_date is null and payment_date< sysdate="" -50="" then="" 'paid="" but="" not="" constructed'="" end)="" multiset="" except="" distinct="" ty_arguments(null)="" as="">

of asset_table

)

Select asset_id, r.COLUMN_VALUE as a RECORD, p.COLUMN_VALUE as ISSUE

of qryValues v

Join table (v.records) r 1 = 1

Join table (v.problems) p on 1 = 1

ASSET_ID RECORD PROBLEM
1 1 "invalid construction date.
1 0 "invalid construction date.
2 1 "invalid construction date.
2 1 "paid but not built."
3 1 "invalid construction date.
3 0 "invalid construction date.
4 1 "invalid construction date.
4 1 "paid but not built."

Note: Operators of type multiset in the query clear up collections after the resolution, you can change these as required. For example, multiset except TY_NUMBERS (null) separate = eliminates duplicates and nulls

Tags: Database

Similar Questions

  • Organization chart... .to leave Vi hierarchy?

    I know that I went on this point the wrong way... probably the point #1 in the top ten things not to do when programming, not but...  (I'm not a software engineer, you guessed?)

    I have a state machine relatively complex vi developed and deployed and I don't have a chart for it. As I was only working on this, I know it all and how it works, but I need to have an overview for non-geeks out there, who will use the standalone version.

    Is it possible to generate a diagram of the VI hierarchy?

    or what is the best way to develop the organizational chart (not from the beginning..)

    Kind regards

    Leeser

    There is nothing automatic.

    Condition is not based on a construction of QSM (this design model can enable transitions that are impossible to document completely...), it can be done by hand with your favorite flowchart software (don't wince but I use paint and PP for this for so long I know all shortcuts and can do it quickly).

    I received the code developed by other groups and drwaing place the diagram of the State was the first step in the estimate of what would be needed to begin to support it.

    This thread is for some years on a similar topic and can be useful.

    I'm safely assuming that you have learned your leason for ' first, second document ", or do you want a conference?

    Ben

  • Why use the collections?

    Please help me to better understand and to right the next point

    to move from a PPT available in internet, I read a sentence under the heading "Why use collections?" Please find here

    Use of complex data sets information to host non-PL/SQL environments using table functions

    I think I understand: it means that complex data sets can be collected from oracle using only a single sql statement by using the installation, called Oracle Pipelined Table functions. http://www.akadia.com/services/ora_pipe_functions.html]

    Is any other installation in oracle to the serveup of complex datasets of the information to the host non-PL/SQL environments?

    Published by: o Manjusha Muraleedas, error corrected spelling.

    I watched the presentation and here's how I read it (although you might be better to ask the author):

    Manjusha Muraleedas wrote:
    My question is, why the statement "Serve up complex data sets of information to host non-PL/SQL environments using table functions" came under the title "Why use collections?". Just because there's an installation? or any other really good news?

    There is a hypothesis that is unwritten in the presentation: "complex" data is data that must be handled in PL/SQL, because only SQL does not work.

    Nowhere the author says that a pure SQL solution should be changed into a solution of PL/SQL.

    Once you decide that you must use the PL/SQL, you might want to put your data in collections in scalar variables.

    I understand, complex data, works of art (suppose a structure with 3 columns of tables joing 5) can be meet non-pl/sql envirormment like Java, the use of the ref Cursor or xml. Collection using to do the same thing, this is not a good option.

    Again, I think that the author uses "complex" as a shortcut for 'need to PL/SQL in the first place'. If the data must be processed in PL/SQL, there is no need to use PL/SQL scalar variables or collections.
    I would say "use of the ref Cursor. Providing relational data in format XML should be the exception, not the rule. It has a cost of additional performance.

    Now lets talk about pipeline table functions.
    ...
    functions table pipeline reached the performance of parallel processing. so even if binding commodity of time and memory is there, it will be performs better than refcursors or xml?

    Pipeline table functions perform no better than the ref Cursor. There are two processes running, one to SELECT and the other for the function, there will be more work on the server. With a ref cursor, there is a fair process to return the data.

    Parallel processing is not a problem. If you can make it work in plain SQL, you can do in parallel in SQL simple.

    Published by: Ashton stew on January 22, 2013 16:44

  • Warning of the heavy constructor

    Hello

    I see that it is a good principle to not have big builders. But nobody knows if it the message on the compiler doesn't compile builders is actually true?

    " HeavyConstructor. Constructor must be as light as possible. No authorized control statement, while a complex cyclomatic 2 has been detected. The Just-In-Time compile doesn't compile builders. Make it as light as possible, or move the complexity of code to a method that is called by the constructor. Then the complexity will be compiled by the JIT.

    Thank you

    Justin

    Hi Justin,

    Here is a white paper of Joa:

    http://www.Google.com/URL?SA=t&source=Web&CD=3&ved=0CB0QFjAC&URL=http%3A%2f%2Fje2050.Joa-e bert.com%2Ffiles%2Fmisc%2Fas3opt.pdf&rct=j&q=flash%20player%20constructor%20jit&ei=8eTGTOj eEIjUtQOe4uTNDQ & usg = AFQjCNE5td-Jv8iUuYVY3cLlY1zBc3SU6Q & sig2 = qE3PN3SnBJauVDC4ZMUt2Q & cad = AJLN

    Chapter 4.4

    See you soon,.

    Xavier

  • Pivot will not get result in the select statement

    This is the version of oracle 11g R2 on windows details 7 OS

    CREATE TABLE OTBOOKINGDETAILS
    (EMPNO VARCHAR2 (10 BYTE),
    DATE OF OTBOOKEDDATE,
    NUMBER (5.0) DAY OF THE WEEK.
    DAYCEILINGHRS VARCHAR2 (10 BYTE));

    Here is the data

    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 MARCH 2013', 1,' 09:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 APRIL 2013', 2' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 MAY 2013', 3,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 JUNE 2013', 4' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 JULY 2013', 5,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 AUGUST 2013', 6,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 SEPTEMBER 2013', 7,' 00:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (102 ', 3 MARCH 2013', 1,' 09:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (102 ', 3 APRIL 2013', 2' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (102 ', 3 MAY 2013', 3,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (102 ', 3 JUNE 2013', 4,' 02:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (102 ', 3 JULY 2013', 5,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (102 ', 3 AUGUST 2013', 6,' 04:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (102 ', 3 SEPTEMBER 2013', 7' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 OCTOBER 2013', 1,' 00:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 NOVEMBER 2013', 2' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 3 DECEMBER 2013', 3,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 13 MARCH 2013', 4,' 04:45 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 14 MARCH 2013', 5,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 15 MARCH 2013', 6,' 01:00 ');
    INSERT INTO OTBOOKINGDETAILS VALUES (101 ', 16 MARCH 2013', 7' 01:00 ');

    Here, I want to Dayceiling hours below the output using pivot

    EMPNO OTBOOKEDDATE DAY1_HRS DAY2_HRS DAY3_HRS DAY4_HRS DAY5_HRS DAY6_HRS DAY7_HRS
    101 03/03/2013 09:00 01:00 01:00 01:00 01:00 01:00 00:00
    102 03/03/2013 09:00 01:00 01:00 02:00 01:00 04:00 01:00
    101 03/10/2013 00:00 01:00 01:00 04:45 01:00 01:00 01:00

    ChakravarthyDBA wrote:
    I need to include the pivot query in the select statement

    Can' are you use PIVOT here since you do not know from the start what values OTBOOKEDDATE. So use:

    select  empno,
            otbookeddate - weekday + 1 otbookeddate,
            max(
                case weekday
                  when 1 then dayceilinghrs
                end
               ) day1_hrs,
            max(
                case weekday
                  when 2 then dayceilinghrs
                end
               ) day2_hrs,
            max(
                case weekday
                  when 3 then dayceilinghrs
                end
               ) day3_hrs,
            max(
                case weekday
                  when 4 then dayceilinghrs
                end
               ) day4_hrs,
            max(
                case weekday
                  when 5 then dayceilinghrs
                end
               ) day5_hrs,
            max(
                case weekday
                  when 6 then dayceilinghrs
                end
               ) day6_hrs,
            max(
                case weekday
                  when 7 then dayceilinghrs
                end
               ) day7_hrs
      from  otbookingdetails
      group by empno,
               otbookeddate - weekday + 1
      order by otbookeddate,
               empno
    /
    
    EMPNO      OTBOOKEDDA DAY1_HRS   DAY2_HRS   DAY3_HRS   DAY4_HRS   DAY5_HRS   DAY6_HRS   DAY7_HRS
    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    101        03-03-2013 09:00      01:00      01:00      01:00      01:00      01:00      00:00
    102        03-03-2013 09:00      01:00      01:00      02:00      01:00      04:00      01:00
    101        10-03-2013 00:00      01:00      01:00      04:45      01:00      01:00      01:00
    
    SQL> 
    

    SY.

  • command evaluated Pivot and UnPivot in the select statement

    My research assessing the order of the select statement is below.
     1 from
     2 where (Join condition)
     3 start with
     4 connect by
     5 where (filter of rows)
     6 group by
     7 having
     8 model
     9 select
    10 order by
    My question is Where clause Pivot and UnPivot clause ?

    http://download.Oracle.com/docs/CD/E16338_01/server.112/e10592/statements_10002.htm

    Well the pivot is applied to a single table or an inline or a view - so it's going to be like any other table or view in the list - it will be first

    select b.BUSINESS_OBJECT_CATEGORY_DESCR, a.c, a.d
    from
     (select PAY_METHOD_TYPE_CODE, BUSINESS_OBJECT_CATEGORY_CODE
      from target_odi.business_object_pay_methods)
     pivot (count(PAY_METHOD_TYPE_CODE)
             for PAY_METHOD_TYPE_CODE in  ('D' as d, 'C' as c)) a ,
    target_odi.business_object_categories  b
    where a.BUSINESS_OBJECT_CATEGORY_CODE = b.BUSINESS_OBJECT_CATEGORY_CODE
    

    So for the SQL above the pivot is first assessed before the join between A and B.

  • management of NULL values in a statement PIVOT 11 g

    Hi all

    In the following code, how can I get the cell showing 80001_sum_sales for employee 234567 as a zero instead of a NULL value?
    with t1 as 
    (
     select 123456 as emp_id, 80000 as category, 10 as sales from dual union all 
     select 123456 as emp_id, 80001 as category, 20 as sales from dual union all
     select 234567 as emp_id, 80000 as category, 10 as sales from dual 
    )
    select *
      from t1 pivot ( sum(nvl(sales,0)) as sum_sales for category in (80000, 80001));
    I tried NVL in various parts of the application, but the problem is that the line does not actually exist to apply the NVL to. I also tried to add another level of subquery factoring to wrap each column in an NVL, something like:
    with t1 as 
    (
     select 123456 as emp_id, 80000 as category, 10 as sales from dual union all 
     select 123456 as emp_id, 80001 as category, 20 as sales from dual union all
     select 234567 as emp_id, 80000 as category, 10 as sales from dual 
    ), 
     t2 as (select *
            from t1 pivot ( sum(sales) as sum_sales for category in (80000, 80001)) )
    select emp_id,
           nvl(80000_sum_sales, 0) as "80000"
           nvl(80001_sum_sales, 0) as "80001"
           from t2;
    but Oracle has a problem with the fact that the column name starts with a number and get ORA-00911. Something like:
    with t1 as 
    (
     select 123456 as emp_id, 80000 as category, 10 as sales from dual union all 
     select 123456 as emp_id, 80001 as category, 20 as sales from dual union all
     select 234567 as emp_id, 80000 as category, 10 as sales from dual 
    ), 
     t2 as (select *
            from t1 pivot ( sum(sales)  for category in (80000, 80001)) )
    select emp_id,
           nvl(80000, 0) as "80000",
           nvl(80001, 0) as "80001"
           from t2;
    shows just the values 80000 and 80001 rather than actual sales amounts. Unfortunately, my requirement is that these column headers must be digital, as is an interface in another system. I try to avoid a full outer join a list of categories to all employees, as my employee table has 180 m files in there.

    Are there SQL gurus out there who can see a way around this problem, before I attempt an outer join complete?

    Thank you
    Matt

    Hello

    Try this

    with t1 as
    (
     select 123456 as emp_id, 80000 as category, 10 as sales from dual union all
     select 123456 as emp_id, 80001 as category, 20 as sales from dual union all
     select 234567 as emp_id, 80000 as category, 10 as sales from dual
    ),
     t2 as (select *
            from t1 pivot ( sum(sales)  for category in (80000, 80001)) )
    select emp_id,
           nvl("80000", 0) as "80000",
           nvl("80001", 0) as "80001"
           from t2;
    

    see you soon

    VT

  • Need help: complex SQL statement

    Select segment3, 0 "other income."
    , 0 "Sales Services".
    , 0 "staff costs".
    , 0 "other staff costs".
    , 0 'Deputy '.
    , 0 'trip '.
    , 0 "collaborator".
    , 0 'training '.
    , 0 'capital '.
    , nvl (round (sum (nvl(PERIOD_ACTIVITY_A,0) + nvl(PERIOD_ACTIVITY_E,0) + nvl(PRDOPEN_A,0) + nvl(PRDOPEN_E,0)), 0), 0) "Overhead"
    , 0 "financial expenses".
    of PAN. SNP_OP_DETAIL@OFA
    where segment3 = x.new_cc and period_name = p_period
    and segment2 in (select acc_t from the CRP_REPORT_ACCT_DETAIL_T where group_id = 10)
    Group of segment3

    Please, I do not understand select segment3, 0 'other income'... There is no column called 0, what is the 0s in the select statement?

    Secondly, I don't understand PAN. SNP_OP_DETAIL@OFA

    Means says:
    Select segment3, 0 "other income."
    , 0 "Sales Services".
    , 0 "staff costs".
    , 0 "other staff costs".
    , 0 'Deputy '.
    , 0 'trip '.
    , 0 "collaborator".
    , 0 'training '.
    , 0 'capital '.
    , nvl (round (sum (nvl(PERIOD_ACTIVITY_A,0) + nvl(PERIOD_ACTIVITY_E,0) + nvl(PRDOPEN_A,0) + nvl(PRDOPEN_E,0)), 0), 0) "Overhead"
    , 0 "financial expenses".
    of PAN. SNP_OP_DETAIL@OFA
    where segment3 = x.new_cc and period_name = p_period
    and segment2 in (select acc_t from the CRP_REPORT_ACCT_DETAIL_T where group_id = 10)
    Group of segment3

    Please, I do not understand select segment3, 0 'other income'... There is no column called 0, what is the 0s in the select statement?

    0 'other income' means to select a literal value of 0 (zero) with an alias of "other income". double quotes preserve the space and upper/lower case in the alias. This alias (in space) will be difficult to use because of the so called space later.

    Secondly, I don't understand PAN. SNP_OP_DETAIL@OFA

    PAN is probably a schema, SNP_OP_DETAIL a table or view and @OFA there is a link of database indicating the table in a different database

  • Complex pivot example

    I work in the transportation industry. We carry a lot of product for a given day from a variety of sources. My bosses want a report that shows the origins in the columns with data of the line that contains the date and number of the loads transported according to the destination. Without an origin to the origin on a daily basis, so I'll have origins that have only a couple of days worth of charges and others who will show you loads of several weeks in a row.

    From everything I see, I'll need to dynamically create a report that origins which has been carried since in a range of dates given first, and then generates a report of aggregation which shows loads on a given day.

    Someone at - it an example of something like that they could tell me?

    Here's a Visual example of what I'm after:

    DATE origine1 origine3 origine5 Origin8 Origin2.
    01/09/2009 10 2.
    02/09/2009 12 16.
    03/09/2009 - 15:10
    04/09/2009 - 54-10
    05/09/2009 - 10-15 12
    ...

    Hello

    Yes, you can do this, just separate each statement with a comma:

    WITH xx AS (SELECT ...), zz AS (SELECT ...)
    .. followed by your select statements from xx and zz
    

    a simple example:

    WITH XX AS (SELECT EMPNO, ENAME, DEPTNO FROM EMP), ZZ AS (SELECT DEPTNO, DNAME FROM DEPT)
    SELECT XX.EMPNO, XX.ENAME, ZZ.DNAME
    FROM XX
    INNER JOIN ZZ ON XX.DEPTNO = ZZ.DEPTNO
    

    Andy

  • Complex update statement using MIN and MAX

    Hi all

    How to write the update for scenario below:

    I have two tables temp_up1 and temp_upemail1

    So I need to update the dm_email_dkey column in temp_up1 with minimum of dm_email_dkey in temp_upemail1 to the email address associated with dm_email_dkey in temp_up1

    After removing the duplicate

    delete duplicates query:

    {code}

    remove from

    temp_up1 tp

    where rowid in

    (select from)

    (

    SELECT cec.rowid, row_number()

    courses (CEC partition. DM_CUSTOMER_DKEY, CEC. DM_EMAIL_TEMPLATE_DKEY,

    CEC. DM_CAMP_SEND_DATE,

    CEC. DATA_SRC, EM. Order by 2 desc EMAIL_ADDR) dup

    OF TEMP_UP1 CEC

    INNER JOIN TEMP_UPEMAIL1 EM

    THE CEC. DM_EMAIL_DKEY = EM. DM_EMAIL_DKEY)

    where dup > 1);

    Create table scripts:

    CREATE TABLE TEMP_UPEMAIL1

    (

    DM_EMAIL_DKEY NUMBER OF NON-NULL,

    EMAIL_ADDR VARCHAR2 (50 BYTE),

    DATE OF START_EFFECTIVE_DATE,

    EMAIL_ADDR_DOMAIN VARCHAR2 (20 BYTE),

    SPAM_FLAG CHAR (1 BYTE),

    DATE OF SPAM_DATE,

    OPTOUT_FLAG CHAR (1 BYTE),

    DATE OF OPTOUT_DATE,

    DATE OF END_EFFECTIVE_DATE,

    CURRENT_FLAG CHAR (1 BYTE),

    DATA_SRC VARCHAR2 (20 BYTE),

    DATE OF DM_CREATED_DATE,

    DM_CREATED_BY VARCHAR2 (20 BYTE),

    DATE OF DM_UPDATED_DATE,

    DM_UPDATED_BY VARCHAR2 (20 BYTE),

    BOUNCE_FLAG CHAR (1 BYTE),

    DATE OF BOUNCE_DATE

    )

    CREATE TABLE TEMP_UP1

    (

    DM_CUST_EMAIL_CAMPAIGN_FKEY NUMBER OF NON-NULL,

    DM_EMAIL_DKEY NUMBER OF NON-NULL,

    NUMBER OF DM_EMAIL_TEMPLATE_DKEY

    DATE OF DM_CAMP_SEND_DATE,

    NUMBER OF DM_EMAIL_TYPE_HIER_HKEY

    NUMBER OF DM_EMAIL_CAT_DKEY

    NUMBER OF DM_EMAIL_PURPOSE_DKEY

    DM_WEB_CAMP_DKEY NUMBER OF NON-NULL,

    NUMBER OF DM_EMAIL_SUBJECT_LINE_DKEY

    DM_CUSTOMER_DKEY NUMBER (10),

    DM_SEGMENTATION_DKEY NUMBER (10),

    DM_LIVE_SEGMENTATION_DKEY NUMBER (10),

    NUMBER OF DM_MAIN_DEST_SEGMENT_DKEY

    NUMBER OF DM_CC_CUSTOMER_TRIPS_DKEY

    JOB_CODE VARCHAR2 (20 BYTE),

    PE_CODE VARCHAR2 (20 BYTE),

    TEST_CODE VARCHAR2 (20 BYTE),

    BOUNCE_FLAG CHAR (1 BYTE),

    DATE OF BOUNCE_DATE,

    SPAM_FLAG CHAR (1 BYTE),

    DATE OF SPAM_DATE,

    OPTOUT_FLAG CHAR (1 BYTE),

    DATE OF OPTOUT_DATE,

    EMAIL_OPEN_FLAG CHAR (1 BYTE),

    NUMBER OF NO_OF_OPENS

    DATE OF FIRST_OPEN_DATE,

    CLICKED_FLAG CHAR (1 BYTE),

    NUMBER OF NO_OF_CLICKS

    DATE OF FIRST_CLICK_DATE,

    NUMBER OF NO_OF_RESERVATIONS

    NUMBER OF NO_OF_PAX

    GROSS_SALES NUMBER (19.4).

    GROSS_PROFIT NUMBER (19.4).

    CREATED_DATE DATE NOT NULL,

    CREATED_BY VARCHAR2 (20 BYTE) NOT NULL,

    UPDATED_FLAG CHAR (1 BYTE) NOT NULL,

    DATE OF UPDATED_DATE,

    UPDATED_BY VARCHAR2 (20 BYTE),

    DATA_SRC VARCHAR2 (20 BYTE) NOT NULL,

    DM_CREATED_DATE DATE NOT NULL,

    DM_CREATED_BY VARCHAR2 (20 BYTE) NOT NULL,

    DATE OF DM_UPDATED_DATE,

    DM_UPDATED_BY VARCHAR2 (20 BYTE),

    NUMBER OF DM_EMAIL_DELIVERY_TYPE_DKEY

    NUMBER OF DM_EMAIL_DELIVERY_SUBTYPE_DKEY

    )

    TOGETHER TO DEFINE

    Insert into UPANWAR. TEMP_UPEMAIL1

    (DM_EMAIL_DKEY, EMAIL_ADDR, START_EFFECTIVE_DATE, EMAIL_ADDR_DOMAIN, SPAM_FLAG,

    OPTOUT_FLAG, END_EFFECTIVE_DATE, CURRENT_FLAG, DATA_SRC, DM_CREATED_DATE,

    DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY, BOUNCE_FLAG)

    Values

    (2564657, ' [email protected]', TO_DATE (18 December 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "gmail", "n", ")

    'N', TO_DATE (20 DECEMBER 2013 00:00:00 ',' MM/DD/YYYY HH24:MI:SS'), 'N', 'EPSILON', TO_DATE (18 DECEMBER 2013 07:04:48 ',' DD/MM/YYYY HH24:MI:SS'),

    TO_DATE '15591', (20 DECEMBER 2013 04:45:48 ',' DD/MM/YYYY HH24:MI:SS'), '15591', 'N');

    Insert into UPANWAR. TEMP_UPEMAIL1

    (DM_EMAIL_DKEY, EMAIL_ADDR, START_EFFECTIVE_DATE, EMAIL_ADDR_DOMAIN, SPAM_FLAG,

    OPTOUT_FLAG, END_EFFECTIVE_DATE, CURRENT_FLAG, DATA_SRC, DM_CREATED_DATE,

    DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY, BOUNCE_FLAG)

    Values

    (2649872, ' [email protected]', TO_DATE (31 December 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "gmail", "n", ")

    'N', TO_DATE (3 JANUARY 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'N', 'EPSILON', TO_DATE (31 DECEMBER 2013 05:34:50 ',' MM/DD/YYYY HH24:MI:SS'),

    TO_DATE '15591', (JANUARY 3, 2014 04:45:36 ',' DD/MM/YYYY HH24:MI:SS'), '15591', 'N');

    Insert into UPANWAR. TEMP_UPEMAIL1

    (DM_EMAIL_DKEY, EMAIL_ADDR, START_EFFECTIVE_DATE, EMAIL_ADDR_DOMAIN, SPAM_FLAG,

    OPTOUT_FLAG, END_EFFECTIVE_DATE, CURRENT_FLAG, DATA_SRC, DM_CREATED_DATE,

    DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY, BOUNCE_FLAG)

    Values

    (2672477, ' [email protected]', TO_DATE (3 January 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "gmail", "n", ")

    'Y', TO_DATE (JANUARY 10, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'N', 'EPSILON', TO_DATE (3 JANUARY 2014 04:45:36 ',' MM/DD/YYYY HH24:MI:SS'),

    TO_DATE '15591', (JANUARY 10, 2014 06:00:41 ',' DD/MM/YYYY HH24:MI:SS'), '15591', 'N');

    Insert into UPANWAR. TEMP_UPEMAIL1

    (DM_EMAIL_DKEY, EMAIL_ADDR, START_EFFECTIVE_DATE, EMAIL_ADDR_DOMAIN, SPAM_FLAG,

    OPTOUT_FLAG, END_EFFECTIVE_DATE, CURRENT_FLAG, DATA_SRC, DM_CREATED_DATE,

    DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY, BOUNCE_FLAG)

    Values

    (2858809, ' [email protected]', TO_DATE (January 31, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "gmail", "n", ")

    'N', TO_DATE (FEBRUARY 1, 2014 00:00:00 ',' MM/DD/YYYY HH24:MI:SS'), 'N', 'EPSILON', TO_DATE (JANUARY 31, 2014 05:51:43 ',' DD/MM/YYYY HH24:MI:SS'),

    TO_DATE '15591', (FEBRUARY 1, 2014 08:14:33 ',' DD/MM/YYYY HH24:MI:SS'), '15591', 'N');

    Insert into UPANWAR. TEMP_UPEMAIL1

    (DM_EMAIL_DKEY, EMAIL_ADDR, START_EFFECTIVE_DATE, EMAIL_ADDR_DOMAIN, SPAM_FLAG,

    OPTOUT_FLAG, END_EFFECTIVE_DATE, CURRENT_FLAG, DATA_SRC, DM_CREATED_DATE,

    DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY, BOUNCE_FLAG)

    Values

    (2970989, ' [email protected]', TO_DATE (February 17, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "gmail", "n", ")

    'Y', TO_DATE (23 FEBRUARY 2014 00:00:00 ',' MM/DD/YYYY HH24:MI:SS'), 'N', 'EPSILON', TO_DATE (FEBRUARY 17, 2014 07:28:48 ',' DD/MM/YYYY HH24:MI:SS'),

    TO_DATE '15591', (FEBRUARY 23, 2014 07:22:44 ',' DD/MM/YYYY HH24:MI:SS'), '15591', 'N');

    Insert into UPANWAR. TEMP_UPEMAIL1

    (DM_EMAIL_DKEY, EMAIL_ADDR, START_EFFECTIVE_DATE, EMAIL_ADDR_DOMAIN, SPAM_FLAG,

    OPTOUT_FLAG, END_EFFECTIVE_DATE, CURRENT_FLAG, DATA_SRC, DM_CREATED_DATE,

    DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY, BOUNCE_FLAG)

    Values

    (3093042, ' [email protected]', TO_DATE (March 7, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "gmail", "n", ")

    'N', TO_DATE (MARCH 11, 2014 00:00:00 ',' MM/DD/YYYY HH24:MI:SS'), 'N', 'EPSILON', TO_DATE (MARCH 7, 2014 06:36:48 ',' DD/MM/YYYY HH24:MI:SS'),

    TO_DATE '15591', (MARCH 11, 2014 07:30:33 ',' DD/MM/YYYY HH24:MI:SS'), '15591', 'N');

    Insert into UPANWAR. TEMP_UPEMAIL1

    (DM_EMAIL_DKEY, EMAIL_ADDR, START_EFFECTIVE_DATE, EMAIL_ADDR_DOMAIN, SPAM_FLAG,

    OPTOUT_FLAG, OPTOUT_DATE, END_EFFECTIVE_DATE, CURRENT_FLAG, DATA_SRC,

    DM_CREATED_DATE, DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY, BOUNCE_FLAG)

    Values

    (4777362, ' [email protected]', TO_DATE (January 1, 1900 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "gmail", "n", ")

    "Y', TO_DATE (MARCH 10, 2014 19:05:20 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (11 APRIL 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'N', 'NEOLANE."

    TO_DATE('04/10/2014_05:08:08',_'MM/DD/YYYY_HH24:MI:SS'), '15591', TO_DATE (11 APRIL 2014 04:25:42 ',' DD/MM/YYYY HH24:MI:SS'), '15591', 'N');

    COMMIT;

    TOGETHER TO DEFINE

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (66827732, 3093042, 37636, TO_DATE (MARCH 10, 2014 17:05:11 ',' ' THE HH24: MI: SS MM/DD/YYYY), 266,)

    501, 21923, 24912, 105, 54625029,

    12875 13041, -100, -100, '0360634',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (MARCH 10, 2014 19:05:20 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (MARCH 10, 2014 19:05:08 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (MARCH 10, 2014 19:05:20 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (MARCH 11, 2014 03:01:16 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 9, 2014 02:02:43 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (MARCH 11, 2014 07:36:01 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/09/2014_04:59:41',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (60291616, 2564657, 33427, TO_DATE (DECEMBER 19, 2013 16:05:59 ',' ' THE HH24: MI: SS MM/DD/YYYY), 266,)

    501 18917, 21311, 105, 54625029,

    12875 13041, -100, -100, '0360444',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (20 DECEMBER 2013 00:50:27 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (20 DECEMBER 2013 00:50:22 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (20 DECEMBER 2013 00:50:27 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (20 DECEMBER 2013 01:49:05 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 9, 2014 02:02:43 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (DECEMBER 21, 2013 05:21:43 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/09/2014_04:59:41',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (61471878, 2649872, 34633, TO_DATE (JANUARY 2, 2014 18:09:04 ',' ' THE HH24: MI: SS MM/DD/YYYY), 266,)

    501 19323 22312, 105, 54625029,

    12875 13041, -100, -100, '0360431',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (JANUARY 2, 2014 19:55:03 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (JANUARY 2, 2014 19:54:55 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (JANUARY 2, 2014 19:55:03 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (3 JANUARY 2014 01:46:06 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 9, 2014 02:02:43 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (JANUARY 4, 2014 05:00:48 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/09/2014_04:59:41',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (61697206, 2672477, 34635, TO_DATE (JANUARY 6, 2014 16:05:27 ',' ' THE HH24: MI: SS MM/DD/YYYY), 239,)

    501 19326, 16602, 105, 54625029,

    12875 13041, -100, -100, '1662048',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (JANUARY 6, 2014 16:38:09 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (JANUARY 6, 2014 16:38:01 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (JANUARY 6, 2014 16:38:09 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (JANUARY 7, 2014 01:45:11 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 9, 2014 02:02:43 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (JANUARY 7, 2014 05:57:30 ',' MM/DD/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/09/2014_04:59:41',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG, OPTOUT_DATE,

    EMAIL_OPEN_FLAG, NO_OF_OPENS, CLICKED_FLAG, NO_OF_CLICKS, FIRST_CLICK_DATE,

    CREATED_DATE, CREATED_BY, UPDATED_FLAG, UPDATED_DATE AND UPDATED_BY,

    DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (63805731, 2858809, 8750, TO_DATE (JANUARY 31, 2014 11:41:52 ',' ' THE HH24: MI: SS MM/DD/YYYY), 207,)

    104, 501, 5241, 23624, 54625029,

    12875 13041, -100, -100, '2401154',

    'A', 'N', 'N', 'Y', TO_DATE (JANUARY 31, 2014 11:57:33 ',' DD/MM/YYYY HH24:MI:SS'),

    'N', 0, 'Y', 1, TO_DATE (JANUARY 31, 2014 11:57:33 ',' DD/MM/YYYY HH24:MI:SS'),

    TO_DATE (FEBRUARY 1, 2014 02:17:09 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U', TO_DATE (APRIL 9, 2014 02:02:43 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON ',.

    ('EPSILON', TO_DATE (FEBRUARY 1, 2014 08:21:41 ',' MM/DD/YYYY HH24:MI:SS'), '15569', TO_DATE (APRIL 9, 2014 04:59:41 ',' DD/MM/YYYY HH24:MI:SS'), '15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (65241500, 2970989, 36737, TO_DATE (FEBRUARY 17, 2014 12:39:45 "," MM/DD/YYYY HH24:MI:SS'), 266,)

    501, 21032, 24213, 105, 54625029,

    12875 13041, -100, -100, '0360582',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (FEBRUARY 17, 2014 13:22:17 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (FEBRUARY 17, 2014 13:22:11 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (FEBRUARY 17, 2014 13:22:17 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (18 FEBRUARY 2014 01:59:05 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 9, 2014 02:02:43 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (18 FEBRUARY 2014 07:30:34 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/09/2014_04:59:41',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (69160573, 4777362, 34633, TO_DATE (JANUARY 2, 2014 18:09:04 ',' ' THE HH24: MI: SS MM/DD/YYYY), 266,)

    501 19323 22312, 105, 54625029,

    12875 13041, -100, -100, '0360431',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (JANUARY 2, 2014 19:55:03 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (JANUARY 2, 2014 19:54:55 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (JANUARY 2, 2014 19:55:03 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (3 JANUARY 2014 01:46:06 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 16, 2014 02:01:26 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (APRIL 10, 2014 05:15:59 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/16/2014_05:24:45',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG, OPTOUT_DATE,

    EMAIL_OPEN_FLAG, NO_OF_OPENS, CLICKED_FLAG, NO_OF_CLICKS, FIRST_CLICK_DATE,

    CREATED_DATE, CREATED_BY, UPDATED_FLAG, UPDATED_DATE AND UPDATED_BY,

    DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY, DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (69159408, 4777362, 8750, TO_DATE (JANUARY 31, 2014 11:41:52 ',' ' THE HH24: MI: SS MM/DD/YYYY), 207,)

    104, 501, 5241, 23624, 54625029,

    12875 13041, -100, -100, '2401154',

    'A', 'N', 'N', 'Y', TO_DATE (JANUARY 31, 2014 11:57:33 ',' DD/MM/YYYY HH24:MI:SS'),

    'N', 0, 'Y', 1, TO_DATE (JANUARY 31, 2014 11:57:33 ',' DD/MM/YYYY HH24:MI:SS'),

    TO_DATE (FEBRUARY 1, 2014 02:17:09 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U', TO_DATE (APRIL 16, 2014 02:01:26 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON ',.

    ('EPSILON', TO_DATE (APRIL 10, 2014 05:15:59 ',' MM/DD/YYYY HH24:MI:SS'), '15569', TO_DATE (APRIL 16, 2014 05:24:45 ',' DD/MM/YYYY HH24:MI:SS'), '15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (69161900, 4777362, 33427, TO_DATE (DECEMBER 19, 2013 16:05:59 ',' ' THE HH24: MI: SS MM/DD/YYYY), 266,)

    501 18917, 21311, 105, 54625029,

    12875 13041, -100, -100, '0360444',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (20 DECEMBER 2013 00:50:27 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (20 DECEMBER 2013 00:50:22 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (20 DECEMBER 2013 00:50:27 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (20 DECEMBER 2013 01:49:05 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 16, 2014 02:01:26 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (APRIL 10, 2014 05:15:59 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/16/2014_05:24:45',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (69166742, 4777362, 36737, TO_DATE (FEBRUARY 17, 2014 12:39:45 "," MM/DD/YYYY HH24:MI:SS'), 266,)

    501, 21032, 24213, 105, 54625029,

    12875 13041, -100, -100, '0360582',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (FEBRUARY 17, 2014 13:22:17 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (FEBRUARY 17, 2014 13:22:11 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (FEBRUARY 17, 2014 13:22:17 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (18 FEBRUARY 2014 01:59:05 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 16, 2014 02:01:26 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (APRIL 10, 2014 05:15:59 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/16/2014_05:24:45',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (69166272, 4777362, 37636, TO_DATE (MARCH 10, 2014 17:05:11 ',' ' THE HH24: MI: SS MM/DD/YYYY), 266,)

    501, 21923, 24912, 105, 54625029,

    12875 13041, -100, -100, '0360634',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (MARCH 10, 2014 19:05:20 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (MARCH 10, 2014 19:05:08 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (MARCH 10, 2014 19:05:20 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (MARCH 11, 2014 03:01:16 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 16, 2014 02:01:26 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (APRIL 10, 2014 05:15:59 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/16/2014_05:24:45',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    Insert into UPANWAR. TEMP_UP1

    (DM_CUST_EMAIL_CAMPAIGN_FKEY, DM_EMAIL_DKEY, DM_EMAIL_TEMPLATE_DKEY, DM_CAMP_SEND_DATE, DM_EMAIL_TYPE_HIER_HKEY,

    DM_EMAIL_CAT_DKEY, DM_EMAIL_PURPOSE_DKEY, DM_WEB_CAMP_DKEY, DM_EMAIL_SUBJECT_LINE_DKEY, DM_CUSTOMER_DKEY,

    DM_SEGMENTATION_DKEY, DM_LIVE_SEGMENTATION_DKEY, DM_MAIN_DEST_SEGMENT_DKEY, DM_CC_CUSTOMER_TRIPS_DKEY, JOB_CODE,

    PE_CODE, TEST_CODE, BOUNCE_FLAG, SPAM_FLAG, OPTOUT_FLAG,

    OPTOUT_DATE, EMAIL_OPEN_FLAG, NO_OF_OPENS, FIRST_OPEN_DATE, CLICKED_FLAG,

    NO_OF_CLICKS, FIRST_CLICK_DATE, CREATED_DATE, CREATED_BY, UPDATED_FLAG,

    UPDATED_DATE, UPDATED_BY DATA_SRC, DM_CREATED_DATE, DM_CREATED_BY,

    DM_UPDATED_DATE, DM_UPDATED_BY)

    Values

    (69161082, 4777362, 34635, TO_DATE (JANUARY 6, 2014 16:05:27 ',' ' THE HH24: MI: SS MM/DD/YYYY), 239,)

    501 19326, 16602, 105, 54625029,

    12875 13041, -100, -100, '1662048',

    '0', « NA », ' N ', ' N ', « Y »,

    TO_DATE (JANUARY 6, 2014 16:38:09 ',' DD/MM/YYYY HH24:MI:SS'), 'Y', 1, TO_DATE (JANUARY 6, 2014 16:38:01 ',' DD/MM/YYYY HH24:MI:SS'), 'Y ',.

    1, TO_DATE (JANUARY 6, 2014 16:38:09 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (JANUARY 7, 2014 01:45:11 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'U ',.

    TO_DATE (APRIL 16, 2014 02:01:26 ',' DD/MM/YYYY HH24:MI:SS'), 'EPSILON', 'EPSILON', TO_DATE (APRIL 10, 2014 05:15:59 ',' DD/MM/YYYY HH24:MI:SS'), '15569',.

    TO_DATE('04/16/2014_05:24:45',_'MM/DD/YYYY_HH24:MI:SS'), ' 15569');

    COMMIT;

    {code}


    How can I write the update in a single query. I n;' t want to use cursior


    Thanks in advance!


    Thank you


    UPDATE temp_up1 u

    SET dm_email_dkey =)

    SELECT a.me

    de)

    Select

    MIN (dm_email_dkey) compared to (partition EMAIL_ADDR) me

    dm_email_dkey k

    OF temp_upemail1) a

    where

    Julien = u.dm_email_dkey

    )

  • 27 "mid 2011 iMac drive solid state drive is dead and must be replaced. Is this easier to do than to to replace a HDD with a SSD? I hope I can do it myself.

    My 27 "mid 2011 iMac drive solid state drive is dead and must be replaced. The SSD originally came with the computer and not a subsequent update. I understand that a SSD replacing a HARD drive is quite complex, but would be more simple replacement of a dead with a new SSD SSD? I hope I could make myself.

    Even as the replacement of a HARD drive. However, go to OWC buy the connector of the special drive that has the necessary temperature control that is not part of the SSD, because it is for the stock of HARD drive.

  • Including complex.h fails

    I want to use the functions of complex numbers in C99 that this pagehttp://digital.ni.com/public.nsf/allkb/73AEAD30C8AF681A86257BBB0054A26B , should be possible. However, Labwindows cannot find the header complex.h file in the #include statement.

    How can I get it work?

    CVI 2013 supports complex data types, you can declare, for example, _Complex double z1;

    But that's it so far. At present, the CVI supports not corresponding to the C99 functions such as, for example, creal, csqrt... As a result, no corresponding header file is...

  • Master/slave event Structure vs. State Machine

    Hello

    First some background to the question (skip this paragraph if you are simply interested in the question). I'm relatively new to Labview, after only a few months of coding with Labview and LabVIEW Core 1. Being one of the only people in the company who now knows Labview I have been challenged with the creation of a relatively complex application that will perform a selected ten or to view different tests with customizable options, display, analyze and deliver and automate reports.

    For the application I am writing I need a GUI with several screens (I achieve with tabs), initially I tried this code with the structures of the event within a machine to States (but as you probably know this was fundamentally flawed, that you can't put structures of the event within the structures of the case) (, or structures of the event), but from here, I spent several hours of searching the best alternatives.

    So my Question is: would recommend to use a master-slave (with the structure of the event and the State of computer, respectively), or simply use to continually voting machine status?

    (Keep in mind I'm going to use this as part of a larger facility of producer/consumer.)

    Thanks in advance,

    Joshua Walker.

    I use a case in my state machine specifically for checking to GUI events.  It is usually a "Idle" State or a specific State to 'check events.  I can also set the time-out programmatically by using a register shift, just in case I need to do a quick check (some small timeout) or wait for a user to press a button (timeout is - 1).

  • CRASH: Replacement of the enumerations in the State diagrams can shoot down LabVIEW 2012

    Environment

    Windows 8 64 - bit, 32-bit LabVIEW 2012

    Steps to reproduce

    1. Open the attached draft
    2. Open Statechart.lsvc/Diagram.vi
    3. Double click on the blue Transition in the Middle, navigate to the guard
    4. Make a right-click on the enum constant-> replace-> select a VI...
    5. Choose 'Enum 2.ctl.
    6. 'Select the VI to open' dialogue box appears again. Reselect "Enum 2.ctl.
    7. Observe the first weird behavior: block diagram of the guard is replaced with the front panel of the enum
    8. Click on "Cancel".
    9. Double-click the blue Transition again. LabVIEW crashes here.

    Error messages

    I first encountered this in a large project with a complex of state transitions. This was the message indicated before the death of LabVIEW:

    With the small example that I have attached, there was no message at the time of the accident - LabVIEW just abandoned in silence. When I rebooted it showed (tested twice, same message):

    Hi JKSH,

    Sorry for the incorrect post, I was talking with one of my colleagues on this issue. I was able to reproduce this problem on Windows 7 32-bit and LabVIEW 2013 (32 bit). I filed a bug report (called the request for Corrective Action or CAR) on the issue. The number of CAR is 421985. You can use this to track when the CAR will be fixed because there will be a list of cars that are resolved in the release notes. I also wanted to put that workaround for this error is just to add the VI manually, then delete the original VI (instead of use the substitute function).

    Thank you for helping us find this bug.

    Thank you

    Best regards

    Bill

  • How to track down where a specific enum is used in a switch case statement?

    Hi all

    I have an application of simulation of machine quite complex state that I add a 'mode' feature for. Some States in the application, rather than the blocks by default of running code, a VI a VI class for each mode will be instead (for example for modes A and B, initialization status has now Initialization_modeA and Inilitalization_modeB). This results in many cases structures everywhere, and I can't figure out how to ensure that, when adding a new mode, I have add the case of this mode of each switch case. Is it as simple as having a default case with a pop-up box? Or is it possible OOP I can handle this?

    Go right on what you told us, you could have each mode inherited from a common ancestor that defines a set of common States (or methods in this case). Whenever you want to add a new method, you can create a new class and override simply each method with this specific class has to do. Instead of having a State of init for each mode, you only then a common State of init, which would then distribute the code correct init based on what class you are using.

Maybe you are looking for