Helps the complex expression to Group By

Hi all
I use a BPM opensource to store variables in a Workflow process. Variables are stored in an Oracle 10 database and can be retrieved using the native Api of BPM (Java) or by using Sql. For performance reasons, I use simple SQL to collect a list filtered workflow variables.

Here is a simplified version of the BPM_INSTANCE Table:

[NAME] [VALUE] [PROCESS_INSTANCE]
=====================================
AREA IN ADDITION TO 1 125
ACME CUSTOMER 125
ID_WO 500 125

2 200 FIELD
200 TEST CLIENT
ID_WO 501 200

1 225 FIELD
CUSTOMER MODEL 225
ID_WO 502 225

Each PROCESS_INSTANCE has a set of variables that have a NAME and a VALUE.

My need is to collect the list of all (500,501,502) ID_WO, PROCESS_INSTANCE belongs to a DOMAIN (ex. 1) and one client (e.g. ACME)

I started coding the SQL:

Select VALUE from BPM_INSTANCE where NAME = 'ID_WO' and PROCESS_INSTANCE in
(select PROCESS_INSTANCE from BPM_INSTANCE, whose NAME = "CUSTOMER" and VALUE = "ACME"
)
However, I am not able to meet several conditions (for example I need also the PROCESS_INSTANCE also contains an AREA = 1).
Can someone help me?
Thank you
Frank

Hello

Would this work:

with data as (
 select 'AREA' as name, '1' as value, '125' as pi from dual union all
 select 'CLIENT' , 'ACME', '125' from dual union all
 select 'ID_WO', '500', '125' from dual union all
 select 'AREA', '2', '200' from dual union all
 select 'CLIENT', 'TEST', '200' from dual union all
 select 'ID_WO', '501', '200' from dual union all
 select 'AREA', '1', '225' from dual union all
 select 'CLIENT', 'DUMMY', '225' from dual union all
 select 'ID_WO', '502', '225' from dual)
select o.value, i.value, ii.value from data o
 inner join data i on ( o.pi = i.pi )
 inner join data ii on ( o.pi = ii.pi ) where o.name = 'ID_WO' and i.name = 'AREA' and ii.name = 'CLIENT'; 

HtH
Johan

Tags: Database

Similar Questions

  • Help of the complex select query (Group by)

    Hello
    I am in need of your help to create a unique select query for the data in the table below and whose output requies. I use oracle 10g on RHEL 5 version.

    create table bustour (number of bussno (4), start_date date, number (2)) passenger;
    ALTER session set nls_date_format = "dd-mm-yyyy";
    insert into bustour values (4123, April 10, 2009 ", 20);
    insert into bustour values (4123, may 10, 2009 ", 25);
    insert into bustour values (4123, may 10, 2009 ', 18);
    insert into bustour values (4123, June 10, 2009 ', 15);

    insert into bustour values (6138, March 10, 2009 ', 16);
    insert into bustour values (' 6138, March 10, 2009 ", 19);
    insert into bustour values (6138, April 10, 2009 ', 22);
    insert into bustour values (' 6138, April 10, 2009 ", 13);

    insert into bustour values ("4123, July 10, 2009 ', 23);
    insert into bustour values (4123, August 10, 2009 ", 27);
    insert into bustour values (4123, November 10, 2009 ', 15);

    insert into bustour values (6138, may 10, 2009 ', 16);
    insert into bustour values (6138, may 10, 2009 ', 13);
    insert into bustour values (6138, may 10, 2009 ', 18);
    insert into bustour values (' 6138, may 10, 2009 ", 24);
    insert into bustour values (6138, July 10, 2009 ", 20);
    insert into bustour values (6138, August 10, 2009 ", 18);
    SQL> select * from bustour;
    
        BUSSNO START_DATE PASSENGERS
    ---------- ---------- ----------
          4123 04-10-2009         20
          4123 05-10-2009         25
          4123 05-10-2009         18
          4123 06-10-2009         15
          6138 03-10-2009         16
          6138 03-10-2009         19
          6138 04-10-2009         22
          6138 04-10-2009         13
          4123 07-10-2009         23
          4123 08-10-2009         27
          4123 11-10-2009         15
    
        BUSSNO START_DATE PASSENGERS
    ---------- ---------- ----------
          6138 05-10-2009         16
          6138 05-10-2009         13
          6138 05-10-2009         18
          6138 05-10-2009         24
          6138 07-10-2009         20
          6138 08-10-2009         18
    
    17 rows selected.
    
    I want query output as below :
    
    Bussno  start_date      end_Date   totalpassengers   maxpessenger  maxpassdate
    4123    04-10-09        06-10-09          78              25         05-10-09
    6138    03-10-09        04-10-09          70              22         04-10-09 
    4123    07-10-09        11-10-09          65              27         08-10-09
    6138    05-10-09        08-10-09         109              24         05-10-09
    So that we can know on what particular travel calendar, we have obtained maximum passengers and the date. (For calculating % of bonus driver)

    Please help me to write the query.

    Best regards
    Nisha

    OK, something like this:

    with my_tab as (select 1 id, 4123 busno, to_date('04/10/2009', 'dd/mm/yyyy') start_date, 20 passengers from dual union all
                    select 2 id, 4123 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 25 passengers from dual union all
                    select 3 id, 4123 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 18 passengers from dual union all
                    select 4 id, 4123 busno, to_date('06/10/2009', 'dd/mm/yyyy') start_date, 15 passengers from dual union all
                    select 5 id, 6138 busno, to_date('03/10/2009', 'dd/mm/yyyy') start_date, 16 passengers from dual union all
                    select 6 id, 6138 busno, to_date('03/10/2009', 'dd/mm/yyyy') start_date, 19 passengers from dual union all
                    select 7 id, 6138 busno, to_date('04/10/2009', 'dd/mm/yyyy') start_date, 22 passengers from dual union all
                    select 8 id, 6138 busno, to_date('04/10/2009', 'dd/mm/yyyy') start_date, 13 passengers from dual union all
                    select 9 id, 4123 busno, to_date('07/10/2009', 'dd/mm/yyyy') start_date, 23 passengers from dual union all
                    select 10 id, 4123 busno, to_date('08/10/2009', 'dd/mm/yyyy') start_date, 27 passengers from dual union all
                    select 11 id, 4123 busno, to_date('11/10/2009', 'dd/mm/yyyy') start_date, 15 passengers from dual union all
                    select 12 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 16 passengers from dual union all
                    select 13 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 13 passengers from dual union all
                    select 14 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 18 passengers from dual union all
                    select 15 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 24 passengers from dual union all
                    select 16 id, 6138 busno, to_date('07/10/2009', 'dd/mm/yyyy') start_date, 20 passengers from dual union all
                    select 17 id, 6138 busno, to_date('08/10/2009', 'dd/mm/yyyy') start_date, 18 passengers from dual)
    -- end of mimicking your data; use SQL below:
    select busno,
           min(start_date) start_date,
           max(start_date) end_date,
           sum(passengers) total_passengers,
           max(passengers) max_passengers,
           max_pass_date
    from   (select id,
                   start_date,
                   busno,
                   passengers,
                   distance,
                   max(start_date) keep (dense_rank first order by passengers desc) over (partition by distance, busno) max_pass_date
            from   (select id,
                           start_date,
                           busno,
                           passengers,
                           -- using tabibitosan method, borrowed from Aketi Jyuuzou
                           dense_rank() over (order by id) -
                              row_number() over (partition by busno order by id) distance
                    from   my_tab))
    group by busno, distance, max_pass_date
    order by min(id)
    
         BUSNO START_DATE END_DATE   TOTAL_PASSENGERS MAX_PASSENGERS MAX_PASS_DATE
    ---------- ---------- ---------- ---------------- -------------- -------------
          4123 04/10/2009 06/10/2009               78             25 05/10/2009
          6138 03/10/2009 04/10/2009               70             22 04/10/2009
          4123 07/10/2009 11/10/2009               65             27 08/10/2009
          6138 05/10/2009 08/10/2009              109             24 05/10/2009   
    
  • Help the invalid expression

    In the book of Marcus Geduld "AfterEffectsExpressions" it is an example (p.145) which reads:

    Effect ("4-Color gradient"). Param (propertyIndex - 2).valueAtTime(time-.5)

    It is an expression is applied to one of the points in a gradient effect 4 colors. It returns an error message:

    Bad method arguments: propertyIndex cannot be used in this property. It seems strange that this book has a whole section that uses this expression is not valid.

    BTW, I found a number of typos in the book which I like and that you have learned a lot from. I would contact him if there was a link in his book, but I can't find anything. If anyone can understand it that I would really appreciate it.

    I think the problem is that when the book was written, thisProperty is implied when it relates to the housing property attributes the expression. Somewhere along the line it was changed so that now you have to include it explicitly. This should work:

    Effect ("4-Color gradient"). Param (thisProperty.propertyIndex - 2).valueAtTime(time-.5)

    Dan

  • Helps the complex SQL update

    Hello

    I have a MyCounter table that is used to get the sequence numbers after N.
    For purposes of simplicity, let's just table MyCounter has 2 fields - maxNumber and currentNumber.
    maxNumber is the maximum sequence number that can be allocated.
    currentNumber is the last (current) sequence number.

    Assuming maxNumber is 1000, currentNumber is 500. If N is 10, the sequence should I get numbers: From = To = 510, 501

    I am new to Oracle. I had a first blow of dagger to write the SQL to update, but I am not convinced that it works.
    Can anyone give me suggestions please? Thank you...

    ---------

    DECLARE
    v_origValue NUMBER (10,0): = 0;
    v_allocated NUMBER (10,0): = 0;
    V_quantity NUMBER (10,0): = 0;

    BEGIN
    V_quantity: = 10; -assuming that 10 is a constant at this stage

    UPDATE MyCounter
    SET v_allocated = box
    When (currentNumber + v_quantity < = maxNumber) then restart
    else (maxNumber-currentNumber)
    end,
    v_origValue = (currentNumber),
    currentNumber = (currentNumber + v_allocated)
    WHERE the currentNumber < maxNumber;

    SELECT v_origValue + 1 as 'from', v_origValue + v_allocated 'to '.
    FROM DUAL;

    END;

    ---------

    Kind regards
    Judy

    Here is a small example of what you could do.

    SQL> create table t(type varchar2(10),max_val number, curr_val number)
      2  /
    
    Table created.
    
    SQL> insert into t values('type1',100,0)
      2  /
    
    1 row created.
    
    SQL> insert into t values('type2',1000,500)
      2  /
    
    1 row created.
    
    SQL> create or replace type my_seq as table of number
      2  /
    
    Type created.
    
    SQL> create or replace procedure get_sequence(ptype in varchar2, pcount in number, pseq out my_seq)
      2  as
      3     lcurr_val t.curr_val%type;
      4     lmax_val t.max_val%type;
      5     max_seq_exception exception;
      6  begin
      7     update t
      8        set curr_val = curr_val + pcount
      9      where type = ptype
     10     returning curr_val, max_val into lcurr_val, lmax_val;
     11
     12     if lcurr_val > lmax_val
     13     then
     14             rollback;
     15             raise max_seq_exception;
     16     else
     17             select lcurr_val - (level-1)
     18               bulk collect into pseq
     19               from dual
     20            connect by level <= pcount
     21              order by level desc;
     22
     23             commit;
     24     end if;
     25  exception
     26     when max_seq_exception then
     27             raise_application_error(-20001,'Max sequence exceeded');
     28  end;
     29  /
    
    Procedure created.
    
    SQL> declare
      2     lseq my_seq;
      3  begin
      4     get_sequence('type1',10,lseq);
      5     for i in 1..lseq.count
      6     loop
      7             dbms_output.put_line(lseq(i));
      8     end loop;
      9  end;
     10  /
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from t
      2  /
    
    TYPE          MAX_VAL   CURR_VAL
    ---------- ---------- ----------
    type1             100         10
    type2            1000        500
    
    SQL> declare
      2     lseq my_seq;
      3  begin
      4     get_sequence('type1',100,lseq);
      5     for i in 1..lseq.count
      6     loop
      7             dbms_output.put_line(lseq(i));
      8     end loop;
      9  end;
     10  /
    declare
    *
    ERROR at line 1:
    ORA-20001: Max sequence exceeded
    ORA-06512: at "SYSADM.GET_SEQUENCE", line 27
    ORA-06512: at line 4
    

    But do not forget in a multiuser environment, there are many chances for you to get screwed!. Sequence is the best option in my opinion.

    Published by: Karthick_Arp on November 30, 2008 21:14

  • Cannot find the Airport Express Airport utility

    Hello

    I have a firmware running extreme Airport 7.6.7. 6.3.6 and one Airport utility Terminal Airport Express (model A1392). I have access to my system on a Macbook pro. Also have the app on my iPhone.

    My Airport Express and extreme talked to each other and have been broadcast on the Airport utility. However, I had to change my wifi password and the network password. After that, the Airport extreme restarted. After the reboot, my Express was no longer recognized by my network. The Express has a light orange and blinks repeatedly. I can't connect to the express to address the issue of amber light.

    I have read many posts on the forum. However, I still have to find a solution. How to connect the airport utility to the Airport express?

    Thanks for any help, you can make it,

    You have changed the password for WiFi on AirPort Extreme... but... the AirPort Express Terminal was previously programmed to connect by using your password in the "old".  The Express is lost, unable to find the network at all and doesn't know what to do.

    You can help the AirPort Express by doing a hard reset on the AirPort Express to clear the old network settings and passwords, and then configure the Express again to connect to your network 'nine' with the 'new' password.

    After the back if you don't know how to proceed.

  • Help in regular Expression for the beaches of limitation

    Hi, I'm working on the provision of a text field is limited to dates, it's just a part of the code. I already have the validation of the dates, but I am now limiting what the user enters using a regular expression. This code works a little however, it does not limit me for example I can enter more than 2 digits, but then he limits based on the total amount allowable so for example 8 digits are allowed if I just type. I need to stop after 2 digits then have a - then 2 other numbers then one - and then followed by 4 digits. I tried to limit each section and grouping as well. Any help would be greatly appreciated. Thank you.

    It is in the format code and I am the appellant in the key sequence.

    function DateKS () {}

    var value = AFMergeChange (event);

    If (! event.willCommit) {}

    Allow only characters that match the regular expression

    Event.RC = /^([0]{0,1}[1-9]{0,1}|[_1]{0,1}[012]{0,1}) ([-] {0,1}) ([0] {0,1} [1-9] {0,1} |) [12] {0,1} [0-9] {0,1} | ([3] {0,1} [01] {0,1}) ([-] {0,1}) ([0-9] {0,4}) $/ .test (value);

    }

    }

    I decided that control for 100 and 400 was not necessary because this event does occur that all 400 years. But I'm working on it further and changed even more. Here is my code to work.

    function isLeapYear (year) {}
    year return % 4 = 0;
    }

    function checkDaysInMonth (day, month, year) {}
    daysInMonth var = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    If (month = 2) {}
    If (isLeapYear (year)) {}
    daysInMonth [1] += 1;
    }
    }

    return daysInMonth [month - 1] > = day;
    }

    function checkDateFormat (dateStr) {}
    var errorMsg = ",
    maxYear = (new Date()) .getFullYear (),
    minYear = maxYear - 1,.
    match = dateStr.match(/^(\d{2})-(\d{2})-(\d{4})$/),
    months,
    day,
    year;

    If {(matches)
    month = parseInt (matches [1], 10);
    day = parseInt (matches [2], 10);
    year = parseInt (matches [3], 10);

    If (month < 1="" ||="" month=""> 12) {}
    errorMsg = "invalid value for the month: ' + matches [1];"
    } ElseIf (day = 0) {}
    errorMsg = "invalid value for the day:" + match [2];
    } else if (! checkDaysInMonth (day, month, year)) {}
    errorMsg = "number of days for invalid month: ' + match [2];"
    } ElseIf (year < minyear="" ||="" year=""> maxYear) {}
    errorMsg = "invalid value for the year:" + match [3] + "-must be between" + minYear + "and" + maxYear;
    }
    } else {}
    errorMsg = "invalid date format: ' + dateStr + ' \r\nPlease use format: dd-mm-yyyy ';"
    }

    return errorMsg;
    }

    function checkReceivedDate() {}
    var value = AFMergeChange (event),
    errorMsg = ";
       
    ignore control if the value is blank, because this field is not mandatory
    If (! value) {}
    return;
    }

    If {(event.willCommit)
    errorMsg = checkDateFormat (value);

    If (errorMsg) {}
    App.Alert (errorMsg, 0, 0, "error");
    Event.value = ";

    Returns false;
    }
    } else {}
    Allow only characters that match the regular expression
    Event.RC = /^(?:0) [1-9]? 1 [012]?) ? -? ( ? : 0 [1-9] ? | [12] [0-9]? 3 [01]?) ? - ? 2? 0? [0-9] {0,2} $/ .test (value);
    Event.RC = / ^ \d{0,2}-?\d{0,2}-?\d{0,4}$/.test(value);
    }

    Returns true;
    }

  • in windows 7 networking shares there is a mistake, that the dependency service or group failed to start... help me to solvwe this problem

    in windows 7 in sharing network, sometimes an error "the dependency service or group could start.

    Help me solve this problem...

    Hi Nick,

    Welcome to the Microsoft Community Forums.

    According to the description, it seems like you get an error "the dependency service or group could start" while turning on the network share. I will certainly help you fix this problem.

    (1) did you do changes on the computer before this problem?

    Method 1: I suggest you follow the steps to enable services and check if it helps.

    (a) click Start and type services.msc , and then press enter.

    Make sure that all the following services are enabled. Don't forget that its Startup Type is set to Automatic , and then click OK.

    To activate a service, click to select the check box.

    . Application Layer Gateway Service

    . Network connections

    . Knowledge of the network (NLA) locations

    . Plug-and-Play

    . Remote Access Auto Connection Manager

    . Remote Access Connection Manager

    . Remote procedure call (RPC)

    . Telephony

    (b) click OK, and then click restart.

    Method 2: If the problem persists, I suggest you to follow the steps from the link and check if it helps.

    Some services do not start in Windows Vista and Windows 7

    http://support.Microsoft.com/kb/943996

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/)

    How to back up and restore the registry in Windows

    I hope this helps. Try the above steps and get back to us for further assistance if you have questions about Windows. We will be happy to help you.

  • Need help to make the complex calculation "period of coverage"...

    dear team,
    I am stuck up at one point where i cant seem to be finding any logic to implement the following piece of request...
    
    I hope i can come assistance from the forum members,here...
    
    any idea would be helpful :-)
    
    The situation is explained below...
    
    1..The data set...
    
    Select *
    From 
    (SELECT 25048189 ITEM_NO,  '2011_35' DEL_WEEK,  352811.406 FINISH_ON_HAND,  7188.621  DEMAND,  5.654 POC from dual union all
    SELECT 25048189,          '2011_36',           -83977.656,                 436789    ,        0         from dual union all
    SELECT 25048189,          '2011_37',           -448155,                    64177.406  ,       0         from dual union all
    SELECT 25048189,          '2011_38',           2012206,                    430095.406,        0         from dual union all
    SELECT 25048189,          '2011_39',           1612299,                    399907.094,        0        from dual union all
    SELECT 25048189,          '2011_40',           1612516,                    402966.406,        0        from dual union all
    SELECT 25048189,          '2011_41',           1612732,                    402966.406,        0        from dual union all
    SELECT 25048189,          '2011_42',           1615767,                    403183    ,        0        from dual union all
    SELECT 25048189,          '2011_43',           2837452,                    403183    ,        0        from dual union all
    SELECT 25048189,          '2011_44',           2434269,                    403183    ,        0        from dual union all
    SELECT 25048189,          '2011_45',           2031086,                    403183    ,        0        from dual union all
    SELECT 25048189,          '2011_46',           1624869,                    406217.594,        0         from dual union all
    SELECT 25048189,          '2011_47',           1563112,                    1624868    ,       0        from dual union all
    SELECT 25048189,          '2011_51',           1605986,                    1563112    ,       0        from dual union all
    SELECT 25048189,          '2012_03',           1976204,                    1605986    ,       0        from dual union all
    SELECT 25048189,          '2012_07',            0.25  ,                    1976204    ,       0        from dual union all
    SELECT 25048189,          '2012_08',            1568796,                   0          ,       0        from dual union all
    SELECT 25048189,          '2012_12',            1647070,                   1568796    ,       0        from dual union all
    SELECT 25048189,          '2012_16',            1971510,                   1647070    ,       0        from dual union all
    SELECT 25048189,          '2012_20',            0.25  ,                    1971510    ,       0        from dual union all
    SELECT 25048189,          '2012_21',            1613356,                   0          ,       0        from dual union all
    SELECT 25048189,          '2012_25',            1564118,                   1613356    ,       0        from dual union all
    SELECT 25048189,          '2012_29',            1983125,                   1564118    ,       0        from dual union all
    SELECT 25048189,          '2012_33',             -0.125,                   1983125    ,       0         from dual
    );
    
    
    Now if you notice carefull the POC (Period of cover) = 0 which i need to calculate...
    
    2..Logic for POC... (tried hard to format :-( )
    
    Now forumula for calculaing POC = FOH (FINISH ON HAND) of current week - DEMAND (next week) 
    IF THIS IS -ve then POC = FOH / NEXT WEEK DMD * 7....
    
    IF FOH -VE then POC = 0
    
    IF FOH (FINISH ON HAND) of current week - DEMAND (next week) > 0 then use this balance to satisfy the next week demand...and so on...
    Once balance qty - next week demand = 1 or 0 then stop there....count the no of weeks in between...the current week is always 0, next week 1, the week after next week, 1 and so on...
    
    if balance qty - next week demand = 1 -->> take current FOH / NEXT week demand + count the no of weeks in between...
    
    I have given one example which shows this situation...for weeks 2011_35 and 2011_38
    
    ITEM_NO          DEL_WEEK     FINISH_ON_HAND     DEMAND          POC     = FOH (curr wee ) - Demand (next week)     formula                    value
    25048189     2011_35          352811.406     7188.621     5.654     -83977.594                    = FOH / NEXT WEEK DMD * 7     5.654171332
    25048189     2011_36          -83977.656     436789          0     0                         """'---"               """'---"
    25048189     2011_37          -448155          364177.406     0     0                         """'---"               week counter
    25048189     2011_38          2012206          430095.406     7     1612298.906                    current week 38               0
    25048189     2011_39          1612299          399907.094     6     1209332.594                    current week + 1 = 39          1
    25048189     2011_40          1612516          402966.406     0     1209549.594                    current week + 2 = 40          1
    25048189     2011_41          1612732          402966.406     0     1209549                         week 41                    1
    25048189     2011_42          1615767          403183          0     1212584                         week 42                    1
    25048189     2011_43          2837452          403183          0     2434269                         week 43                    1
    25048189     2011_44          2434269          403183          0     2031086                         week 44                    1
    25048189     2011_45          2031086          403183          0     1624868.406                    week 45                    1
    25048189     2011_46          1624869          406217.594     0     1                         week 46                    6.15435E-07 
    25048189     2011_47          1563112          1624868          0     0                         week 47                    7.000000615 -->total
    25048189     2011_51          1605986          1563112          0     n/a                         n/a                    n/a
    25048189     2012_03          1976204          1605986          0     n/a                         n/a                    n/a
    25048189     2012_07          0.25          1976204          0     n/a                         n/a                    n/a
    25048189     2012_08          1568796          0          0     n/a                         n/a                    n/a
    25048189     2012_12          1647070          1568796          0     n/a                         n/a                    n/a
    25048189     2012_16          1971510          1647070          0     n/a                         n/a                    n/a
    25048189     2012_20          0.25          1971510          0     n/a                         n/a                    n/a
    25048189     2012_21          1613356          0          0     n/a                         n/a                    n/a
    25048189     2012_25          1564118          1613356          0     n/a                         n/a                    n/a
    25048189     2012_29          1983125          1564118          0     n/a                         n/a                    n/a
    25048189     2012_33          -0.125          1983125          0     n/a                         n/a                    n/a
              
    
    TOTAL POC OF WEEK 2011_35 = 5.65          
              
    TOTAL POC OF WEEK 2011_38 = 7.000000615          
    
    I know this is complex issue and may not be correct to post here also...but any kind of inputs as how to achieve this..would be help full...
    
    let me know i am clear in my question...i tried to format. but no use :-(
    Published by: W Nicloei on June 10, 2011 12:54 AM

    Published by: W Nicloei on June 10, 2011 01:11

    Hello

    There is something you can do with analytic functions, but it's a little complicated.

    Howevere, I have always not understant why POC is 0 2011_40 of the week?

    Kind regards
    Sylvie

  • Form validation helps with the regular Expression [a-zA-Z]

    I'm trying to use the regular expression [a-zA-Z] to allow only upper or lowercase WITHOUT SPACES. With the help of [a-zA-Z] allows space and numbers.

    Could someone give me a point in the right direction?

    Thank you!

    RGNelson wrote:

    I'm trying to use the regular expression [a-zA-Z] to allow only upper or lowercase WITHOUT SPACES. With the help of [a-zA-Z] allows space and numbers.

    Could someone give me a point in the right direction?

    Please try with the following regular expression, which should work for text entry fields 'a line' well standard.

    ^ [A-Za-z] + $

    See you soon,.

    Günter

  • Need help with the curve of a group of objects

    Salvation Group;

    This is my first post in this group. I'm quite new to Adobe Illustrator CS5, and I had to start using it to provide the type of file to a printer for Sublimation in the USA. They use CS5, and all colors are limited to the Pantone Solid Coated for their printing system. I'm swimsuit fabric printing.

    However, my question is probably very basic. It is also frustrating, because I have already successfully did this that I ask, just do not remember how I did it.

    Curved Objects Example.jpg

    In my image, the upper rectangle has curved shape finished (bottom). I've done this before, with in fact several objects together. They all have the curve with the rectangle.

    I tried to do it again, using all kinds of transformation tools (shear), the tools of the effect and everything I could find, but nothing has worked. I thought that maybe to shear would work if I could fix in the middle of the rectangle and shear on both sides of the rectangle to the top, but it does not work. I think I'll start to take notes when I find something that works!

    How this simple curves of single object or group of objects? It can be done, I know!

    Thank you, Tom.

    You can also use the Suspender Warp or distort the Emvelope > make with Warp Arc

    How to apply it

    as individual objects and the other as a group

    As objectrs

    As a group

  • Impossible to replace and update a file in the client computers through Group Policy preferences

    Hello

    I am unable to replace and update a file in the client computers through Group Policy preferences.

    For example,.

    I am trying to replace and update a custom calendar file (c:\Program Files\Microsoft Office\Office12\1033\outlook.hol)to client computers through Group Policy ptreferences (political group: computer configuration\group policy setting \file preference\windows).) But it is not updated and replaced in client computers.

    Could you please help me on this?

    THnaks

    Srinivasan

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the following link for assistance:

    http://social.technet.Microsoft.com/forums/en/winserverGP/threads

  • I know by logic box to get the output using the regular expression?

    Hello

    I am now only study the notion of Regexp. I had seen the best of Mr. Blus. Can I know how it works. I need this logic of the functionality of wildcards in sting matching Regexp (wildcard string Matching).
    SQL> ed
    Wrote file afiedt.buf
     
      1  WITH test_data AS (
      2  SELECT 'c:\temp\folderA\fileA.txt' t FROM DUAL UNION ALL
      3  SELECT 'c:\temp\fileA.txt' t FROM DUAL UNION ALL
      4  SELECT '\\mymachine\A\fileB.txt' t FROM DUAL UNION ALL
      5  SELECT '\\mymachine\A\B\fileB.txt' t FROM DUAL UNION ALL
      6  SELECT '\\mymachine\A\B\C\image.jpg' t FROM DUAL UNION ALL
      7  SELECT '\\mymachine\A\B\C\D\music.mpg' t FROM DUAL UNION ALL
      8  SELECT 'c:\myfolder\folderD\folderE\4969-A.txt' t FROM DUAL
      9  )
     10  select regexp_replace(t, '^.*[\]([^\]*)[\][^\]*$','\1')
     11* from test_data
    SQL> / 
     
    REGEXP_REPLACE(T,'^.*[\]([^\]*)[\][^\]*$','\1')
    ------------------------------------------------------------------
    folderA
    temp
    A
    B
    C
    D
    folderE
     
    7 rows selected.
     
    SQL>
    Please help me in this matter.

    Iqbal

    Sabrina wrote:
    One last question what is the average of

    The final "\1" in

     select regexp_replace(t, '^.*[\]([^\]*)[\][^\]*$','\1') 
    

    Iqbal

    It is a reference.

    See here:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14251/adfns_regexp.htm#CHDHCIGH

    and in the middle of the table here:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14251/adfns_regexp.htm#CHDIEGEI

    Matches the nth previous subexpression, in other words, either grouped in parentheses, where n is an integer between 1 and 9. The parentheses cause > an expression be remembered; a backreference refers to him. A backreference account subexpressions from left to right, starting with the opening > bracket of each subexpression preceding. The expression is not valid if the source string contains less than n subexpressions preceding the \n.

    Oracle supports the expression of backreference in the regular expression pattern and the replacement of the REGEXP_REPLACE function string.
    The expression (abc: def) matches the strings abcxyabc and defxydef xy\1, but does not abcxydef or abcxy.

    A backreference allows you to search for a string repeated without knowing the actual string advance. For example, the expression ^(.*) \1$ > matches a line consisting of two adjacent instances of the same string.

    As explained in table 4-2, backreferences store sub-expressions matched in a temporary buffer, which allows to reposition the characters. You access the pads with the notation \n, where \n is a number between 1 and 9. Each subexpression brackets and is numbered from left to right.

  • Passing parameters to the EL Expression method

    Hello
    With the help of jdev 11g R1.

    Is it possible to pass parameters to a method in an expression EL located in a property of UIComponent?
    something like: af:inputText label = 'asdf' id = "id1" disabled = "#{bean.check ['value']}" / >

    You can do this by using SecurityContext userInRole (#{securityContext.userInRole ['admin']}, but I need to do in my own managed bean.) When I try to follow the same approach as securityContext (i.e. #{mybean.check ['value']}) and having a check (String) method in mybean, it gives me an error saying that there is no such thing as checking property.

    I followed the post http://technology.amis.nl/blog/622/how-to-call-methods-from-el-expressions-pre-jsp-20-trick-for-jsps-with-jstl that shows something to do (the bean implements interface card), it works.
    The question is if this will also work in future releases of the ADF.

    Thank you
    Roger

    Hello

    You are hard to figure out how to work the EL:

    ValueExpression: solve the last part of the phrase as a property of the object resolved the previous expression. [So if you #{securityContext.userInRole\['admin'\}] or #{securityContext.userInRole.admin}, it really means "find the admin of the object property #{securityContext.userInRole}", now #{securityContext.userInRole} is acard. Until getting the 'admin' of a card property means getting the value of the key "admin". Now, if #{securityContext.userInRole} is a custom made map which replace the get method to implement logic, it can look like it is a method call with the expression from the point of view of EL, but it isn't really happening.

    MethodExpression: solve the last part of the phrase as a method with a specific context signature of the object resolved the previous expression. Now the specific context depends on the attribute being used, actionListener will seek public Sub method (ActionEvent) and nothing else. So, if you want to pass a parameter by using the same strategy, you do not disrupt the party, but you can influence the previous part, which is a ValueExpression. So, let's say you have actionListener = "#{foo.bar.method}" and must pass the parameter to the method, you can use instead of #{foo.bar\[parameter\].method}, where #{foo.bar\[parameter\}] resolve to an object with a public method (ActionEvent) Sub, but instantiated during the resolution of parameter passing the said parameter to the constructor of the object. " This way is quite complicated, however, and we never had to use it in the projects I've done (and some of them were / are very complex). I suggest to the contrary push settings in the object before calling the method. Let the example of listener to action:

    public class MyController
    {
        private MyAction action;
    
        public ActionListener getAction()
        {
            if (action == null)
            {
                action = new MyAction();
            }
    
            return action;
        }
    
        private static class MyAction implements ActionListener
        {
            private Object parameter;
    
            public void processAction(ActionEvent ev)
            {
                // do something
            }
    
            public String getParameter()
            {
                return parameter;
            }
    
            public void setParameter(String parameter)
            {
                this.parameter = parameter;
            }
        }
    }
    

    Then in the page:

    
      
      
    
    

    Kind regards

    ~ Simon

    Published by: Simon Lessard on December 11, 2009 10:57

  • Can not update the settings on the Airport Express

    Currently have a facility - two extremes and an Express network.  I for the life of me can't update the Express settings. I always get an error message but I can update the settings on the two extremes very well. I can make changes to the Express with my Iphone but I can't with my Imac.  I want to activate the function of 5 GHz but I can't do that via my Iphone - with the desktop app I think.  Can someone help me?

    Let's first check and make sure that on which Airport Express version you have.

    Your version of the AirPort Express is there only 1 or 2 Ethernet ports?

    The Express to connect to your network and extend it wireless?  Alternatively, the Express connects to one of the extremes airport using a wired Ethernet cable connection.

    Then, I would be not too concerned of not being able to 'see' the Express of the iMac as long as you can access the settings of the iPhone. You can make almost any change using the iPhone you can use a Mac.

  • The AirPort Express Terminal is good enough for me?

    I need a new wireless router to replace my Netgear WNDR4300 'antiques '.  The network is only 2-3 laptops and iPhones 1-2 at a time, over a printer and Chromecast device.  We occasionally video stream, but not often.  Critics say the AirPort Express is best purchased as an add-on to an existing network, but I can't justify more expensive options from the airport.  I don't need the 11ac 802 that offer other options, and it seems that margin would be a problem, because it is limited to 5 GHz.  We have a two-storey house. Is the simple terminal AirPort Express good enough for my home network?

    The AirPort Express, pourraient deliver similar performance to your old Netgear router in terms of signal strength and the beach... but the only way to know with certainty if the Express will be good enough for your needs is to try in your home.

    Try to locate the Express up high on a shelf or Cabinet, if you can, to help in the dissemination of the signal.

    Fortunately, if you buy through Apple, you have one day 14, no questions asked return privilege, so if the Express does not provide the performance you need, you can return the unit for Exchange or a refund.

Maybe you are looking for

  • Error-4702, Regular Expressions

    In the attached vi, I am trying to accept only numbers and letters.  When I hit the SHIFT key, I get error-4702.  How can I correct this situation? I have not worked this yet, but I also accept the Enter key so that the vi will end either enter or th

  • Cannot delete contacts unwanted from windows live messenger.

    I got the Windows Live Messenger 2009 build 14.0.8117.416 steps: (1). Tools, (2). Options, (3). Privacy "Allow and block lists", (4) press the right-click on a contact, the option 'delete' is not operational, only 'block' and 'Add' options are availa

  • Impossible to update devices alpha at NDK gold

    I have a device alpha running 10.0.9.388, and I want to update to the latest version. But I have several problems with the device. When I try to update, I get the following error: The appliance is completely empty, but according to the details of sto

  • Why blackberry does not support flash?

    Why blackberry does not support flash?

  • Problems with downloading Adobe Captivate

    I bought the monthly subscription for 9 Captivate.  I received an email with a link, but need me only to places where I can manage my plans, my account, etc.  When I click on Captivate 9, it says I have no registration number to enter.  I had no prob