Help: SQL to select closest points within groups of records grouped by time

Hi,
I need help to find an SQL for efficient solution for the following problem:
- I have 20 buses circling on one bus route and their locations are reported every 10 seconds and recorded into a spatial table “bus_location” with “bus_loc” as SDO_GEOMETRY type.
- Each bus location record there has a msg_datetime column with the time when the location was recorded.
- Buses circle the bus route 8-12 times, from A to B, then from B back to A, then new loop from A to B, and so on.
- I have 3 timing points in spatial table “timing_point” with “tp_loc” as SDO_GEOMETRY type.
- A bus will pass each timing point 8-12 times in one direction and 8-12 times in the other direction, while making loops on the bus route.
My task is: for each timing point, for each bus, for each trip direction (A-B or B-A), find the closest bus location to that timing point.
Example:
Bus...*TimingPoint*......*Time*.....*Distance*
...........................................*between*
...........................................*bus and TP*
12......A................14:01:00......250 m
12......A................14:01:10......150 m
12......A................14:01:20......12 m <== This is the record closest to the TP for this pass
12......A................14:01:30......48 m
12......A................14:01:40......100 m
12......A................14:01:50......248 m
12......A................14:29:40......122 m
12......A................14:29:50......72 m
12......A................14:30:00......9 m <== This is the record closest to the TP for this pass
12......A................14:30:10......10 m
12......A................14:30:20......12 m
I tried to use SDO_NN and I can get closest bus locations, but how to find the closest bus location for each pass? Or how to identify a groups of bus locations which are together within 2-3 minutes and to find closest record for each of these groups of locations?
Thank you very much for any help.
Milan
Edited by: mburazor on 9-Feb-2012 2:41 PM

Milan,
Yes, the problem is one of analytics not spatial. Here is another go that should be independent of year/month/date/hour/minute
as it does all its math based on an absolute number of minutes since 1970. I round to 5 minutes but you could round/trunc to any
particular interval (5 minutes, 10 minutes, 15 minutes etc)
Note that I have created extra records in the same table that I built. (Tip: good idea to provide a sample dataset to the forum when
asking difficult SQL questions like this.)
drop table buslocns;
create table buslocns(
busno number,
timingpt varchar2(1),
pttime   timestamp,
distance number)
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:00','YYYY/MM/DD HH24:MI:SS'),250);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:10','YYYY/MM/DD HH24:MI:SS'),150);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:20','YYYY/MM/DD HH24:MI:SS'),12);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:30','YYYY/MM/DD HH24:MI:SS'),48);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:40','YYYY/MM/DD HH24:MI:SS'),100);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:01:50','YYYY/MM/DD HH24:MI:SS'),248);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:29:40','YYYY/MM/DD HH24:MI:SS'),122);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:29:50','YYYY/MM/DD HH24:MI:SS'),72);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:30:00','YYYY/MM/DD HH24:MI:SS'),9);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:30:10','YYYY/MM/DD HH24:MI:SS'),10);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:30:20','YYYY/MM/DD HH24:MI:SS'),12);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:59:40','YYYY/MM/DD HH24:MI:SS'),53);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:59:50','YYYY/MM/DD HH24:MI:SS'),28);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:00:00','YYYY/MM/DD HH24:MI:SS'),12);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:00:10','YYYY/MM/DD HH24:MI:SS'),73);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:44:40','YYYY/MM/DD HH24:MI:SS'),53);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 14:44:50','YYYY/MM/DD HH24:MI:SS'),28);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:45:00','YYYY/MM/DD HH24:MI:SS'),12);
insert into buslocns values (12,'A',to_timestamp('2012/02/10 15:45:10','YYYY/MM/DD HH24:MI:SS'),73);
commit;
with tensOfMinutes as (
select row_number() over (order by busno,timingpt, pttime) as rid,
       busno,
       timingpt,
       pttime,
       round(((cast(pttime as date) - cast('01-JAN-1970' as date)) * 1440) / 5) * 5 as mins,
       distance
  from BUSLOCNS
select busno,timingpt,to_char(to_date('01-JAN-1970','DD-MON-YYYY') + ( mins / 1440 ),'DD-MON-YYYY HH24:MI:SS') as pttime,minDist
  from (select busno,timingpt,mins,min(distance) as minDist
          from tensOfMinutes a
         group by a.busno, a.timingpt, a.mins
         order by 1, 2, 3 ) ;
-- Result
BUSNO                  TIMINGPT PTTIME               MINDIST
12                     A        10-FEB-2012 14:00:00 12
12                     A        10-FEB-2012 14:30:00 9
12                     A        10-FEB-2012 14:45:00 28
12                     A        10-FEB-2012 15:00:00 12
12                     A        10-FEB-2012 15:45:00 12regards
Simon

Similar Messages

  • Help with doing SELECT sub query within the SET of an UPDATE statement

    After doing some research, it appears as if it's possible to use a SELECT subquery in the SET of an UPDATE statement.  i did find some examples and here is my code, however when I click the "check" button it's saying the field (my entire select subquery) is unknown and neither in one of the specified tables or defined by a "DATA".  Do I have a syntax issue or is there another reason why it's not taking this as a valid statement?  Thanks for the help!
    LOOP AT IT_DATA
    UPDATE /BIC/AZDP_O0140
       SET /BIC/ZCOUNTER = (SELECT COUNT( DISTINCT MATERIAL )
                            FROM /BIC/AZDP_O0140
                            WHERE MATERIAL EQ IT_DATA-MATERIAL
                            GROUP BY MATERIAL).
    ENDLOOP.

    my Update does indeed have a WHERE clause but because of the issue i'm having, all my criteria in my WHERE is black text in the ABAP editor.  The editor doesn't even recognize the keywords "WHERE" or "EQ".  Below is my entire statement which contains all WHERE criteria in both the Update and the Subquery, i've just removed it for testing to help simplify the query and eliminate as many other factors as posisble that may be causing problems:
    LOOP AT IT_DATA.
       UPDATE /BIC/AZDP_O0140
       SET /BIC/ZCOUNTER = (SELECT COUNT( DISTINCT MATERIAL ) FROM /BIC/AZDP_O0140
       WHERE WHSE_NUM EQ IT_DATA-WAREHOUSE
        AND  PLANT EQ IT_DATA-PLANT
        AND  /BIC/ZTRAN_NO EQ IT_DATA-TRANS_NUM
        AND  DELIV_NUMB EQ IT_DATA-DELIVERY
        AND  MATERIAL EQ IT_DATA-MATERIAL
        GROUP BY MATERIAL)
       WHERE WHSE_NUM EQ IT_DATA-WAREHOUSE
        AND  PLANT EQ IT_DATA-PLANT
        AND  /BIC/ZTRAN_NO EQ IT_DATA-TRANS_NUM
        AND  DELIV_NUMB EQ IT_DATA-DELIVERY
        AND  MATERIAL EQ IT_DATA-MATERIAL.
    ENDLOOP.
    i should also mention the sources i found were not within the SAP Library but instead on other third-party ABAP websites.  so because i was having issues i wanted to post here to see if anyone else has come up with a working solution.  but if this cannot be done i can likely come up with a solution for my needs using multiple internal tables, this would just have been much easier since i can get a query like this to do what i want in SQL Server.  Thought i could utilize this in ABAP as well.

  • HELP - SQL and Select and COUNT

    Hi Anyone or Everyone...
    I have created this SQL Statement in java
    SELECT #PART,#PDESC,COUNT(#PART) AS PCOUNT FROM MYLIB WHERE #PART LIKE 'C%' GROUP BY #PART ORDER BY #PART
    this is the error I get....If I remove the Count(#PART) works fine so the column #PDESC is fine....what is wrong with this?? Thanks in advance!!
    [SQL0122] Column #PDESC or expression specified in SELECT list not valid.

    Hi Anyone or Everyone...
    I have created this SQL Statement in java
    SELECT #PART,#PDESC,COUNT(#PART) AS PCOUNT FROM MYLIB
    WHERE #PART LIKE 'C%' GROUP BY #PART ORDER BY #PART
    this is the error I get....If I remove the
    Count(#PART) works fine so the column #PDESC is
    fine....what is wrong with this?? Thanks in advance!!
    [SQL0122] Column #PDESC or expression specified in
    SELECT list not valid.Hi there
    When you are querying on a table, either you have to specify individual elements (columns) of the table or aggregations of the columns. In your case, the elements you are querying are : #PART, #PDESC and PCOUNT. Here, PCount is an aggregation that is calculated form COUNT(#PART) and #PART is also an aggregation as you are grouping the query results by #PART. But, What bout #PDESC? You are querying as individual column only and doing nothing with it. That was the problem.
    Tip: Try adding "GROUP BY #PDESC" or "COUNT(#PDESC)" to your query and I hope it shud work.
    May be It won't solve your problem and give the result that you need, but you will understand the point I am trying to explain.
    Cheers
    -Uday

  • Help! Can't hide layers within groups in Muse 2014.2

    Muse 2014.2 is not letting me hide layers that are apart of a group. Is anyone else having this issue and is there a fix?

    Sam,
    Thanks for the reply.
    I do not like that I cannot hide individual objects within a group. It is difficult to find good reason in only allowing top-level containers having this functionality. For objects that I may want to hide for later use my only option now is to delete (and lose all my work and formatting of the object) or bring the opacity down to 0% (time consuming).
    It would be great to have the option to hide each object/layer just like all the other amazing Adobe softwares!

  • Adding SQL in a particular point of query

    Hi,
    i've followin query:
    select substr(T11019.TTDSMT , 1 , 3) as c1,
    sum(round(Cast(T41115.LG12 as double) / nullif( 1000, 0) , 2)) as c2,
    sum(round(Cast(T41115.LG12B as double) / nullif( 1000, 0) , 2)) as c3,
    T11019.TTCDMT as c4,
    T11019.TTYEAR as c5
    from
    AMPLIITH.TSTERCRDWH.DMTDATEM T11019 left outer join
    (select HFMCDENT,HFMCDPER,HFMYEAR,HFMCDCHAN,HFMCDKPI,HFMDSKPI,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMACTL ELSE null END *HFMSIGN) LG11,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMACTR ELSE null END *HFMSIGN) AG11,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMACTG ELSE null END *HFMSIGN) GG11,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMACTL ELSE null END *HFMSIGN) LG12,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMACTR ELSE null END *HFMSIGN) AG12,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMACTG ELSE null END *HFMSIGN) GG12,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMACTL ELSE null END *HFMSIGN) LG21,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMACTR ELSE null END *HFMSIGN) AG21,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMACTG ELSE null END *HFMSIGN) GG21,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMACTL ELSE null END *HFMSIGN) LG22,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMACTR ELSE null END *HFMSIGN) AG22,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMACTG ELSE null END *HFMSIGN) GG22,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMACTL ELSE null END *HFMSIGN) LG23,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMACTR ELSE null END *HFMSIGN) AG23,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMACTG ELSE null END *HFMSIGN) GG23,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMACTL ELSE null END *HFMSIGN) LG25,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMACTR ELSE null END *HFMSIGN) AG25,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMACTG ELSE null END *HFMSIGN) GG25, 
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMACTL ELSE null END *HFMSIGN) LG26,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMACTR ELSE null END *HFMSIGN) AG26,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMACTG ELSE null END *HFMSIGN) GG26,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMACTL ELSE null END *HFMSIGN) LG27,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMACTR ELSE null END *HFMSIGN) AG27,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMACTG ELSE null END *HFMSIGN) GG27,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMACTL ELSE null END *HFMSIGN) LG28,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMACTR ELSE null END *HFMSIGN) AG28,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMACTG ELSE null END *HFMSIGN) GG28,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMACTL ELSE null END *HFMSIGN) LG11a,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMACTR ELSE null END *HFMSIGN) AG11a,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMACTG ELSE null END *HFMSIGN) GG11a,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMACTL ELSE null END *HFMSIGN) LG121,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMACTR ELSE null END *HFMSIGN) AG121,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMACTG ELSE null END *HFMSIGN) GG121,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMACTL ELSE null END *HFMSIGN) LG1211,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMACTR ELSE null END *HFMSIGN) AG1211,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMACTG ELSE null END *HFMSIGN) GG1211,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMACTL ELSE null END *HFMSIGN) LG1212,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMACTR ELSE null END *HFMSIGN) AG1212,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMACTG ELSE null END *HFMSIGN) GG1212,    
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMACTL ELSE null END *HFMSIGN) LG1213,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMACTR ELSE null END *HFMSIGN) AG1213,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMACTG ELSE null END *HFMSIGN) GG1213,  
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMACTL ELSE null END *HFMSIGN) LG1214,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMACTR ELSE null END *HFMSIGN) AG1214,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMACTG ELSE null END *HFMSIGN) GG1214,  
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMACTL ELSE null END *HFMSIGN) LG1215,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMACTR ELSE null END *HFMSIGN) AG1215,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMACTG ELSE null END *HFMSIGN) GG1215,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMACTL ELSE null END *HFMSIGN) LG1216,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMACTR ELSE null END *HFMSIGN) AG1216,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMACTG ELSE null END *HFMSIGN) GG1216,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMACTL ELSE null END *HFMSIGN) LG122,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMACTR ELSE null END *HFMSIGN) AG122,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMACTG ELSE null END *HFMSIGN) GG122,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMACTL ELSE null END *HFMSIGN) LG123,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMACTR ELSE null END *HFMSIGN) AG123,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMACTG ELSE null END *HFMSIGN) GG123,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMACTL ELSE null END *HFMSIGN) LG124,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMACTR ELSE null END *HFMSIGN) AG124,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMACTG ELSE null END *HFMSIGN) GG124,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMACTL ELSE null END *HFMSIGN) LG125,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMACTR ELSE null END *HFMSIGN) AG125,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMACTG ELSE null END *HFMSIGN) GG125,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMACTL ELSE null END *HFMSIGN) LG126,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMACTR ELSE null END *HFMSIGN) AG126,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMACTG ELSE null END *HFMSIGN) GG126,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMACTL ELSE null END *HFMSIGN) LFK21,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMACTR ELSE null END *HFMSIGN) AFK21,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMACTG ELSE null END *HFMSIGN) GFK21,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMACTL ELSE null END *HFMSIGN) LFK31,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMACTR ELSE null END *HFMSIGN) AFK31,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMACTG ELSE null END *HFMSIGN) GFK31,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMACTL ELSE null END *HFMSIGN) LFK41,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMACTR ELSE null END *HFMSIGN) AFK41,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMACTG ELSE null END *HFMSIGN) GFK41,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMACTL ELSE null END *HFMSIGN) LFK42,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMACTR ELSE null END *HFMSIGN) AFK42,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMACTG ELSE null END *HFMSIGN) GFK42,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMBDGL ELSE null END *HFMSIGN) LG11B,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMBDGR ELSE null END *HFMSIGN) AG11B,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMBDGG ELSE null END *HFMSIGN) GG11B,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMBDGL ELSE null END *HFMSIGN) LG12B,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMBDGR ELSE null END *HFMSIGN) AG12B,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMBDGG ELSE null END *HFMSIGN) GG12B,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMBDGL ELSE null END *HFMSIGN) LG21B,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMBDGR ELSE null END *HFMSIGN) AG21B,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMBDGG ELSE null END *HFMSIGN) GG21B,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMBDGL ELSE null END *HFMSIGN) LG22B,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMBDGR ELSE null END *HFMSIGN) AG22B,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMBDGG ELSE null END *HFMSIGN) GG22B,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMBDGL ELSE null END *HFMSIGN) LG23B,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMBDGR ELSE null END *HFMSIGN) AG23B,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMBDGG ELSE null END *HFMSIGN) GG23B,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMBDGL ELSE null END *HFMSIGN) LG25B,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMBDGR ELSE null END *HFMSIGN) AG25B,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMBDGG ELSE null END *HFMSIGN) GG25B, 
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMBDGL ELSE null END *HFMSIGN) LG26B,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMBDGR ELSE null END *HFMSIGN) AG26B,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMBDGG ELSE null END *HFMSIGN) GG26B,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMBDGL ELSE null END *HFMSIGN) LG27B,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMBDGR ELSE null END *HFMSIGN) AG27B,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMBDGG ELSE null END *HFMSIGN) GG27B,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMBDGL ELSE null END *HFMSIGN) LG28B,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMBDGR ELSE null END *HFMSIGN) AG28B,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMBDGG ELSE null END *HFMSIGN) GG28B,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMBDGL ELSE null END *HFMSIGN) LG11aB,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMBDGR ELSE null END *HFMSIGN) AG11aB,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMBDGG ELSE null END *HFMSIGN) GG11aB,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMBDGL ELSE null END *HFMSIGN) LG121B,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMBDGR ELSE null END *HFMSIGN) AG121B,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMBDGG ELSE null END *HFMSIGN) GG121B,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMBDGL ELSE null END *HFMSIGN) LG1211B,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMBDGR ELSE null END *HFMSIGN) AG1211B,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMBDGG ELSE null END *HFMSIGN) GG1211B,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMBDGL ELSE null END *HFMSIGN) LG1212B,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMBDGR ELSE null END *HFMSIGN) AG1212B,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMBDGG ELSE null END *HFMSIGN) GG1212B,    
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMBDGL ELSE null END *HFMSIGN) LG1213B,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMBDGR ELSE null END *HFMSIGN) AG1213B,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMBDGG ELSE null END *HFMSIGN) GG1213B,  
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMBDGL ELSE null END *HFMSIGN) LG1214B,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMBDGR ELSE null END *HFMSIGN) AG1214B,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMBDGG ELSE null END *HFMSIGN) GG1214B,  
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMBDGL ELSE null END *HFMSIGN) LG1215B,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMBDGR ELSE null END *HFMSIGN) AG1215B,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMBDGG ELSE null END *HFMSIGN) GG1215B,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMBDGL ELSE null END *HFMSIGN) LG1216B,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMBDGR ELSE null END *HFMSIGN) AG1216B,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMBDGG ELSE null END *HFMSIGN) GG1216B,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMBDGL ELSE null END *HFMSIGN) LG122B,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMBDGR ELSE null END *HFMSIGN) AG122B,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMBDGG ELSE null END *HFMSIGN) GG122B,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMBDGL ELSE null END *HFMSIGN) LG123B,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMBDGR ELSE null END *HFMSIGN) AG123B,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMBDGG ELSE null END *HFMSIGN) GG123B,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMBDGL ELSE null END *HFMSIGN) LG124B,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMBDGR ELSE null END *HFMSIGN) AG124B,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMBDGG ELSE null END *HFMSIGN) GG124B,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMBDGL ELSE null END *HFMSIGN) LG125B,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMBDGR ELSE null END *HFMSIGN) AG125B,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMBDGG ELSE null END *HFMSIGN) GG125B,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMBDGL ELSE null END *HFMSIGN) LG126B,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMBDGR ELSE null END *HFMSIGN) AG126B,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMBDGG ELSE null END *HFMSIGN) GG126B,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMBDGL ELSE null END *HFMSIGN) LFK21B,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMBDGR ELSE null END *HFMSIGN) AFK21B,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMBDGG ELSE null END *HFMSIGN) GFK21B,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMBDGL ELSE null END *HFMSIGN) LFK31B,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMBDGR ELSE null END *HFMSIGN) AFK31B,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMBDGG ELSE null END *HFMSIGN) GFK31B,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMBDGL ELSE null END *HFMSIGN) LFK41B,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMBDGR ELSE null END *HFMSIGN) AFK41B,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMBDGG ELSE null END *HFMSIGN) GFK41B,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMBDGL ELSE null END *HFMSIGN) LFK42B,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMBDGR ELSE null END *HFMSIGN) AFK42B,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMBDGG ELSE null END *HFMSIGN) GFK42B,
    '0' GFK22,
    '0' GFK22B,
    '0' LG11ACT,
    '0' LG12ACT,
    '0' LG11BGT,
    '0' LG12BGT,
    '0' LG11PRY,
    '0' LG12PRY
    FROM FHFM1
    GROUP BY HFMCDENT,HFMCDPER,HFMYEAR,HFMCDCHAN,HFMCDKPI,HFMDSKPI) T41115 On T11019.TTPER = T41115.HFMCDPER) *(insert SQL Here!!!!)* left outer join
    AMPLIITH.TSTERCRDWH.HFMHENT T45397 On T41115.HFMCDENT = T45397.EECDENT and T45397.EEDSENT = 'Country Luxemburg'
    where ( T11019.TTYEAR = 2010 and T45397.EECDENT in (select T45397.EECDENT as c1
    from
    AMPLIITH.TSTERCRDWH.HFMHENT T45397
    where ( T45397.EEDSENT = 'Country Luxemburg' ) ) )
    group by T11019.TTCDMT, T11019.TTYEAR, substr(T11019.TTDSMT , 1 , 3)
    order by c1, c4, c5
    Can I add sql in the bold point, beetween group by and left outer join?
    Thanks

    Hi Paul,
    i have to reproduce following query:
    select
    substr( T11019.TTDSMT , 1 , 3) as c1,
    sum(round(Cast(T41115.LG12 as double) / nullif( 1000, 0) , 2)) as c2,
    sum(round(Cast(T41115.LG12B as double) / nullif( 1000, 0) , 2)) as c3,
    T11019.TTCDMT as c4,
    T11019.TTYEAR as c5
    from
    TSTERCRDWH.DMTDATEM T11019,
    TSTERCRDWH.HFMHENT T45397
    left outer join
    ( select HFMCDENT,HFMCDPER,HFMYEAR,HFMCDCHAN,HFMCDKPI,HFMDSKPI,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMACTL ELSE null END *HFMSIGN) LG11,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMACTR ELSE null END *HFMSIGN) AG11,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMACTG ELSE null END *HFMSIGN) GG11,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMACTL ELSE null END *HFMSIGN) LG12,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMACTR ELSE null END *HFMSIGN) AG12,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMACTG ELSE null END *HFMSIGN) GG12,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMACTL ELSE null END *HFMSIGN) LG21,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMACTR ELSE null END *HFMSIGN) AG21,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMACTG ELSE null END *HFMSIGN) GG21,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMACTL ELSE null END *HFMSIGN) LG22,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMACTR ELSE null END *HFMSIGN) AG22,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMACTG ELSE null END *HFMSIGN) GG22,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMACTL ELSE null END *HFMSIGN) LG23,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMACTR ELSE null END *HFMSIGN) AG23,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMACTG ELSE null END *HFMSIGN) GG23,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMACTL ELSE null END *HFMSIGN) LG25,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMACTR ELSE null END *HFMSIGN) AG25,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMACTG ELSE null END *HFMSIGN) GG25, 
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMACTL ELSE null END *HFMSIGN) LG26,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMACTR ELSE null END *HFMSIGN) AG26,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMACTG ELSE null END *HFMSIGN) GG26,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMACTL ELSE null END *HFMSIGN) LG27,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMACTR ELSE null END *HFMSIGN) AG27,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMACTG ELSE null END *HFMSIGN) GG27,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMACTL ELSE null END *HFMSIGN) LG28,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMACTR ELSE null END *HFMSIGN) AG28,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMACTG ELSE null END *HFMSIGN) GG28,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMACTL ELSE null END *HFMSIGN) LG11a,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMACTR ELSE null END *HFMSIGN) AG11a,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMACTG ELSE null END *HFMSIGN) GG11a,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMACTL ELSE null END *HFMSIGN) LG121,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMACTR ELSE null END *HFMSIGN) AG121,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMACTG ELSE null END *HFMSIGN) GG121,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMACTL ELSE null END *HFMSIGN) LG1211,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMACTR ELSE null END *HFMSIGN) AG1211,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMACTG ELSE null END *HFMSIGN) GG1211,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMACTL ELSE null END *HFMSIGN) LG1212,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMACTR ELSE null END *HFMSIGN) AG1212,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMACTG ELSE null END *HFMSIGN) GG1212,    
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMACTL ELSE null END *HFMSIGN) LG1213,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMACTR ELSE null END *HFMSIGN) AG1213,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMACTG ELSE null END *HFMSIGN) GG1213,  
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMACTL ELSE null END *HFMSIGN) LG1214,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMACTR ELSE null END *HFMSIGN) AG1214,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMACTG ELSE null END *HFMSIGN) GG1214,  
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMACTL ELSE null END *HFMSIGN) LG1215,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMACTR ELSE null END *HFMSIGN) AG1215,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMACTG ELSE null END *HFMSIGN) GG1215,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMACTL ELSE null END *HFMSIGN) LG1216,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMACTR ELSE null END *HFMSIGN) AG1216,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMACTG ELSE null END *HFMSIGN) GG1216,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMACTL ELSE null END *HFMSIGN) LG122,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMACTR ELSE null END *HFMSIGN) AG122,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMACTG ELSE null END *HFMSIGN) GG122,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMACTL ELSE null END *HFMSIGN) LG123,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMACTR ELSE null END *HFMSIGN) AG123,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMACTG ELSE null END *HFMSIGN) GG123,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMACTL ELSE null END *HFMSIGN) LG124,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMACTR ELSE null END *HFMSIGN) AG124,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMACTG ELSE null END *HFMSIGN) GG124,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMACTL ELSE null END *HFMSIGN) LG125,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMACTR ELSE null END *HFMSIGN) AG125,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMACTG ELSE null END *HFMSIGN) GG125,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMACTL ELSE null END *HFMSIGN) LG126,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMACTR ELSE null END *HFMSIGN) AG126,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMACTG ELSE null END *HFMSIGN) GG126,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMACTL ELSE null END *HFMSIGN) LFK21,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMACTR ELSE null END *HFMSIGN) AFK21,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMACTG ELSE null END *HFMSIGN) GFK21,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMACTL ELSE null END *HFMSIGN) LFK31,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMACTR ELSE null END *HFMSIGN) AFK31,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMACTG ELSE null END *HFMSIGN) GFK31,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMACTL ELSE null END *HFMSIGN) LFK41,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMACTR ELSE null END *HFMSIGN) AFK41,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMACTG ELSE null END *HFMSIGN) GFK41,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMACTL ELSE null END *HFMSIGN) LFK42,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMACTR ELSE null END *HFMSIGN) AFK42,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMACTG ELSE null END *HFMSIGN) GFK42,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMBDGL ELSE null END *HFMSIGN) LG11B,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMBDGR ELSE null END *HFMSIGN) AG11B,
    SUM(CASE WHEN HFMCDKPI='G1.1' THEN HFMBDGG ELSE null END *HFMSIGN) GG11B,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMBDGL ELSE null END *HFMSIGN) LG12B,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMBDGR ELSE null END *HFMSIGN) AG12B,
    SUM(CASE WHEN HFMCDKPI='G1.2' THEN HFMBDGG ELSE null END *HFMSIGN) GG12B,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMBDGL ELSE null END *HFMSIGN) LG21B,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMBDGR ELSE null END *HFMSIGN) AG21B,
    SUM(CASE WHEN HFMCDKPI='G2.1' THEN HFMBDGG ELSE null END *HFMSIGN) GG21B,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMBDGL ELSE null END *HFMSIGN) LG22B,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMBDGR ELSE null END *HFMSIGN) AG22B,
    SUM(CASE WHEN HFMCDKPI in ('G2.2', 'FK2.1') THEN HFMBDGG ELSE null END *HFMSIGN) GG22B,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMBDGL ELSE null END *HFMSIGN) LG23B,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMBDGR ELSE null END *HFMSIGN) AG23B,
    SUM(CASE WHEN HFMCDKPI='G2.3' THEN HFMBDGG ELSE null END *HFMSIGN) GG23B,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMBDGL ELSE null END *HFMSIGN) LG25B,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMBDGR ELSE null END *HFMSIGN) AG25B,
    SUM(CASE WHEN HFMCDKPI='G2.5' THEN HFMBDGG ELSE null END *HFMSIGN) GG25B, 
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMBDGL ELSE null END *HFMSIGN) LG26B,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMBDGR ELSE null END *HFMSIGN) AG26B,
    SUM(CASE WHEN HFMCDKPI='G2.6' THEN HFMBDGG ELSE null END *HFMSIGN) GG26B,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMBDGL ELSE null END *HFMSIGN) LG27B,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMBDGR ELSE null END *HFMSIGN) AG27B,
    SUM(CASE WHEN HFMCDKPI in ('G2.7', 'FK2.1') THEN HFMBDGG ELSE null END *HFMSIGN) GG27B,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMBDGL ELSE null END *HFMSIGN) LG28B,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMBDGR ELSE null END *HFMSIGN) AG28B,
    SUM(CASE WHEN HFMCDKPI='G2.8' THEN HFMBDGG ELSE null END *HFMSIGN) GG28B,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMBDGL ELSE null END *HFMSIGN) LG11aB,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMBDGR ELSE null END *HFMSIGN) AG11aB,
    SUM(CASE WHEN HFMCDKPI='G1.1.a' THEN HFMBDGG ELSE null END *HFMSIGN) GG11aB,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMBDGL ELSE null END *HFMSIGN) LG121B,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMBDGR ELSE null END *HFMSIGN) AG121B,
    SUM(CASE WHEN HFMCDKPI='G1.2.1' THEN HFMBDGG ELSE null END *HFMSIGN) GG121B,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMBDGL ELSE null END *HFMSIGN) LG1211B,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMBDGR ELSE null END *HFMSIGN) AG1211B,
    SUM(CASE WHEN HFMCDKPI='G1.2.11' THEN HFMBDGG ELSE null END *HFMSIGN) GG1211B,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMBDGL ELSE null END *HFMSIGN) LG1212B,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMBDGR ELSE null END *HFMSIGN) AG1212B,
    SUM(CASE WHEN HFMCDKPI='G1.2.12' THEN HFMBDGG ELSE null END *HFMSIGN) GG1212B,    
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMBDGL ELSE null END *HFMSIGN) LG1213B,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMBDGR ELSE null END *HFMSIGN) AG1213B,
    SUM(CASE WHEN HFMCDKPI='G1.2.13' THEN HFMBDGG ELSE null END *HFMSIGN) GG1213B,  
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMBDGL ELSE null END *HFMSIGN) LG1214B,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMBDGR ELSE null END *HFMSIGN) AG1214B,
    SUM(CASE WHEN HFMCDKPI='G1.2.14' THEN HFMBDGG ELSE null END *HFMSIGN) GG1214B,  
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMBDGL ELSE null END *HFMSIGN) LG1215B,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMBDGR ELSE null END *HFMSIGN) AG1215B,
    SUM(CASE WHEN HFMCDKPI='G1.2.15' THEN HFMBDGG ELSE null END *HFMSIGN) GG1215B,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMBDGL ELSE null END *HFMSIGN) LG1216B,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMBDGR ELSE null END *HFMSIGN) AG1216B,
    SUM(CASE WHEN HFMCDKPI='G1.2.16' THEN HFMBDGG ELSE null END *HFMSIGN) GG1216B,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMBDGL ELSE null END *HFMSIGN) LG122B,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMBDGR ELSE null END *HFMSIGN) AG122B,
    SUM(CASE WHEN HFMCDKPI='G1.2.2' THEN HFMBDGG ELSE null END *HFMSIGN) GG122B,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMBDGL ELSE null END *HFMSIGN) LG123B,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMBDGR ELSE null END *HFMSIGN) AG123B,
    SUM(CASE WHEN HFMCDKPI='G1.2.3' THEN HFMBDGG ELSE null END *HFMSIGN) GG123B,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMBDGL ELSE null END *HFMSIGN) LG124B,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMBDGR ELSE null END *HFMSIGN) AG124B,
    SUM(CASE WHEN HFMCDKPI='G1.2.4' THEN HFMBDGG ELSE null END *HFMSIGN) GG124B,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMBDGL ELSE null END *HFMSIGN) LG125B,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMBDGR ELSE null END *HFMSIGN) AG125B,
    SUM(CASE WHEN HFMCDKPI='G1.2.5' THEN HFMBDGG ELSE null END *HFMSIGN) GG125B,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMBDGL ELSE null END *HFMSIGN) LG126B,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMBDGR ELSE null END *HFMSIGN) AG126B,
    SUM(CASE WHEN HFMCDKPI='G1.2.6' THEN HFMBDGG ELSE null END *HFMSIGN) GG126B,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMBDGL ELSE null END *HFMSIGN) LFK21B,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMBDGR ELSE null END *HFMSIGN) AFK21B,
    SUM(CASE WHEN HFMCDKPI='FK2.1' THEN HFMBDGG ELSE null END *HFMSIGN) GFK21B,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMBDGL ELSE null END *HFMSIGN) LFK31B,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMBDGR ELSE null END *HFMSIGN) AFK31B,
    SUM(CASE WHEN HFMCDKPI='FK3.1' THEN HFMBDGG ELSE null END *HFMSIGN) GFK31B,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMBDGL ELSE null END *HFMSIGN) LFK41B,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMBDGR ELSE null END *HFMSIGN) AFK41B,
    SUM(CASE WHEN HFMCDKPI='FK4.1' THEN HFMBDGG ELSE null END *HFMSIGN) GFK41B,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMBDGL ELSE null END *HFMSIGN) LFK42B,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMBDGR ELSE null END *HFMSIGN) AFK42B,
    SUM(CASE WHEN HFMCDKPI='FK4.2' THEN HFMBDGG ELSE null END *HFMSIGN) GFK42B,
    '0' GFK22,
    '0' GFK22B,
    '0' LG11ACT,
    '0' LG12ACT,
    '0' LG11BGT,
    '0' LG12BGT,
    '0' LG11PRY,
    '0' LG12PRY
    FROM tstercrdwh.FHFM1
    GROUP BY HFMCDENT,HFMCDPER,HFMYEAR,HFMCDCHAN,HFMCDKPI,HFMDSKPI
    ) T41115 On T45397.EECDENT= T41115.HFMCDENT and T11019.TTPER = T41115.HFMCDPER
    where ( T11019.TTYEAR = 2010 ) and T45397.EEDSENT = 'Country Luxemburg'
    group by T11019.TTCDMT, T11019.TTYEAR, substr( T11019.TTDSMT , 1 , 3)
    order by c1, c4, c5
    where you can see i have 3 tables DMTDATEM, HFMHENT and a view T4115 (it's a view based on my fact table). As you can see, DMTDATEM and HFMHENT tables are in cross join, indeed HFMHENT is in left outer join with my view.
    So in Administration tool, i have 3 objects: DMTDATEM, HFMHENT and T4115 view.
    To simulate a cross join beetween DMTDATEM and HFMHENT, in Physical Diagram i've joined tables with a complex join and in clause i've setted condition 1=1. In Business Diagram the tables aren't joined
    To simulate a left outer join beetween HFMHENT and T4115 view, similar i've worked on Business Diagram.
    Now Administration Tool check consistency doesn't give errors, but when i start Oracle BI Server service it crashes and if i go on my dashboard, all my reports give an absurd error:
    NQSERROR : BI Server is not running. Impossible to connect on port 9703.
    If i see log i don't see particular errors due to my rpd.
    What's the problem?
    Giancarlo

  • [CS4] AIPathSuite::SetPathSegments() selects all points

    Hi,
    I'm desparetly trying to adapt my Plug-in to AI CS4. It works fine under CS3 & older. But the same code recompiled under CS4 SDK, does nastly changes in the selection of points within paths. Indeed, calling AIPathSuite::SetPathSegments() does NOT retain the existing selection state as it did in CS3 & older, but will ALWAYS select ALL points of a partially selected path. This is an ABSOLUTE NECESSITY for my plug-in to retain the existing selection state for partially selected paths. I tried without any success any ways I could imagine to turn around this bug, incl. saving the selection state before changing the points' ordinates and restoring it after; similarly for the path art attr... Apparently, this is out of control of the plus-in. AI seems to alter the selection after my plus-in routines exits.
    FWIW, my plug-in does not use LiveEffet since it does not make sense for the plug-in. I'm developping under Mac OS X, but I guess it would give the same results under Windows.
    Please help, I'm deperate.
    Too many customers are angry because I cannot provide an update for CS4
    TIA

    I assume this is a filter? I believe AI auto-selects anything touched when a filter runs. I thought it had always done that frankly.
    If you need to maintain selection, I'd try adding one step to your 'save & restore' strategy. Illustrator is going to beat on you selection, you can't win that fight. So you just have to let it change the selection and THEN restore your previous selection. I believe you can achieve that using a timer. Create a timer with a zero length and I think it will fire after Illustrator is finished. You can create this and turn it on when you finish your filter, then turn it off as soon as you catch it, effectively making it a one-shot timer. When you catch the timer, you restore you selection at that point and hopefully you've circumvented Illustrator's attempt to 'help' you. Why this isn't an option on the filter I'll never know.
    I've used this technique before to solve simillar problems, so I think it will help here. At any rate, good luck

  • Why can't I rotate multiple points in puppet warp at the same time?

    You can rotate single points in puppet warp, and you can shift+click to select multiple points and move them at the same time but I see no way to rotate multiple points as one group using puppet warp.  This would be a very helpful feature I think should be added.

    Please post Bug Reports and Feature Requests over at
    http://feedback.photoshop.com/photoshop_family/

  • SQL to contact two rows into a single record

    I have a source table which has data in the following format;
    CON_ADDR_ID START_DAY START_TM END_TM
    1-GU-798     Tuesday     1/1/1980 8:00:00 AM     1/1/1980 5:00:00 PM
    1-GU-798     Thursday     1/1/1980 7:00:00 AM     1/1/1980 4:00:00 PM
    I need to concatenate fields start_day, start_tm, end_tm for same con_addr
    For example for the above the output should be *&tu=480,1020 &th=480,1020*.
    Logic:-
    1. Convert time into minutes
    Start time in mins = 8 hrs = 480 mins
    End time in mins = 17 hrs =1020 mins
    Start time in mins = 7 hrs = 420 mins
    End time in mins = 16 hrs = 960 mins
    2. Concatenate the 2 rows and 3 columns.
    &<start day in MM format>=<start time in minutes>,<end time in minutes> &<start day in MM format>=<start time in minutes>,<end time in minutes>

    user10566312 wrote:
    I have a source table which has data in the following format;
    CON_ADDR_ID START_DAY START_TM END_TM
    1-GU-798     Tuesday     1/1/1980 8:00:00 AM     1/1/1980 5:00:00 PM
    1-GU-798     Thursday     1/1/1980 7:00:00 AM     1/1/1980 4:00:00 PM
    I need to concatenate fields start_day, start_tm, end_tm for same con_addr
    For example for the above the output should be *&tu=480,1020 &th=480,1020*.
    Logic:-
    1. Convert time into minutes
    Start time in mins = 8 hrs = 480 mins
    End time in mins = 17 hrs =1020 mins
    Start time in mins = 7 hrs = 420 mins
    End time in mins = 16 hrs = 960 mins
    2. Concatenate the 2 rows and 3 columns.
    &<start day in MM format>=<start time in minutes>,<end time in minutes> &<start day in MM format>=<start time in minutes>,<end time in minutes>Based on your logic, shouldn't the output be &tu=480,1020 *&th = 420,960* ?
    may be :
    SQL> ed
    Wrote file afiedt.buf
      1  with sample_data
      2       as (select '1-GU-798'
      3                  con_addr_id,
      4                  'Tuesday'
      5                  start_day,
      6                  to_date('1/1/1980 8:00:00 AM', 'DD/MM/YYYY HH12:MI:SS AM')
      7                  start_tm,
      8                  to_date('1/1/1980 5:00:00 PM', 'DD/MM/YYYY HH12:MI:SS AM')
      9                  end_tm
    10           from   dual
    11           union all
    12           select '1-GU-798',
    13                  'Thursday',
    14                  to_date('1/1/1980 7:00:00 AM', 'DD/MM/YYYY HH12:MI:SS AM'),
    15                  to_date('1/1/1980 4:00:00 PM', 'DD/MM/YYYY HH12:MI:SS AM')
    16           from   dual)
    17  select listagg(tm, ' ') within group(order by con_addr_id) val,
    18         min(con_addr_id)                                    con_addr_id
    19  from   (select con_addr_id,
    20                 '&'
    21                 ||substr(start_day, 1, 2)
    22                 ||'='
    23                 ||( ( start_tm - trunc(start_tm) ) * 24 * 60 )
    24                 ||','
    25                 ||( ( end_tm - trunc(end_tm) ) * 24 * 60 ) tm
    26          from   sample_data)
    27* group  by con_addr_id
    SQL> /
    VAL                            CON_ADDR
    &Th=420,960 &Tu=480,1020       1-GU-798

  • How do I use just 1 click with move tool (command v) to select layer within group?

    I'm on Snow Leopard 10.6.8, Photoshop CS3 10.0.
    Is there a way to click just once with "command V" to select a layer within a group?
    I used to be able to do it, and on my laptop I can do it now (same OS and Photoshop) but the mac I use for my design work won't do it...I have to also right click and select the layer that is highlighted. I have a many multilayered Photoshop document with lots of groups, and it's an extra time consuming step.
    Is there some preference I can turn on? Or some other simple keystroke?
    Thanks so much!

    Glad I could help, Emily

  • SQL help:  How to collect summary number with group by?

    Hello,
    I have the following table:
    create table tb_class_info (classNbr number(5), classType number(2), classTeacherNbr number(4));
    insert into tb_class_info values (101, 1, 12);
    insert into tb_class_info values (001, 2, 12);
    insert into tb_class_info_values (001, 2, 13);
    insert into tb_class_info_values(002, 2, 12);
    insert into tb_class_info_values(002, 2, 12);
    I would like to get the statistics on classNbr cnt, classTeacherNbr cnt for classType=2. I expect to have the following results:
    classNbr     classType2Cnt     classTeacherCnt
    101                0                         0
    001                2                          2
    002                2                          1
    Here is the SQL I am using:
    SELECT classNbr,
                   SUM (CASE when classType=2 THEN 1 ELSE 0 END) as classTypeCnt,
                   SUM (CASE when classType=2 THEN unique classTeacherNbr ELSE 0 END) as classTeacherCnt
    FROM tb_class_info
    GROUP BY classNbr;
    However I  have the 'ORA-00905: missing keyword' error. Any suggestion on this issue?
    Thanks for your help!

    Try:
    SELECT classNbr,
                   SUM (CASE when classType=2 THEN 1 ELSE 0 END) as classTypeCnt,
                   count (distinct(CASE when classType=2 THEN classTeacherNbr ELSE null END)) as classTeacherCnt
    FROM tb_class_info
    GROUP BY classNbr;

  • Then 'm selecting 3 points after camera tracker  and right click them there is no SET GROUND PLANE in the list, can U help me?

    Then 'm selecting 3 points and right click them there is no SET GROUND PLANE in the list, can U help me?

    Quit farting around with the camera tracker.  You're not nearly ready to handle it.  Go here:
    Getting started with After Effects (CS4, CS5, CS5.5,  CS6, & CC)

  • Need help with SQL for selecting ID where the sequence does not match..

    I have the following dilemma:
    Database contains IDs as follows:
    Incident#, Case#, & Part Sequence#
    example
    Record 1
    Incident_Number = 123456
    Case_Number = 1
    Part_sequence = 1
    Record 2
    Incident_Number = 123456
    Case_Number = 1
    Part_sequence = 2
    Sometimes the user will delete (let's say) Record 2 after creating a new Record 3
    So now the sequencing goes as follows:
    Record 1
    Incident_Number = 123456
    Case_Number = 1
    Part_sequence = 1
    Record 2
    Incident_Number = 123456
    Case_Number = 1
    Part_sequence = 3
    Now there will no longer be a Part_Sequence 2
    Need a SQL to select all records where the maximum part sequence > than the count of Incident_number||'-'||Case_number
    I tried the following:
    select a.incident_number||'-'||a.case_number||'-'||a.part_sequence
    from chsuser.a_compl_summary a
    where a.entry_date >= '01-may-2011'
    and max(a.part_sequence) > count(distinct a.incident_number||'-'||a.case_number)I end up getting a ORA-00934: group function is not allowed here (highlighting on the Max(a.part_sequence) portion.
    Any suggestions/hints
    Thanks

    select  incident_number || '-' || case_number || '-' || part_sequence
      from  (
             select  incident_number,
                     case_number,
                     part_sequence,
                     max(part_sequence) over(partition by incident_number,case_number) max_seq,
                     count(*) over(partition by incident_number,case_number) cnt
               from  chsuser.a_compl_summary
               where entry_date >= DATE '2011-05-01'
      where cnt != max_seq
    /SY.

  • Simple count of points within a radius takes too long

    I have reduced my table to just two columns - an ID and a Geography column. I have a spatial index on the latter and a clustered PK index on the former. There are 10m records in the table. The indexes are not fragmented.
    A query to get a count all points within 1000km of a specified point returns around 7.5m but takes 30+ seconds to execute.
    The query plan shows use of the spatial index with cost 9% then clustered index seek on my primary key taking 83%.
    I have tested STDistance and STBuffer - the latter is slightly faster.
    SELECT COUNT(1) FROM testdoserate2 WHERE ([Location].STDistance('POINT (16.373813 48.230391)')) < 1000000
    declare @referencepoint Geography = 'POINT (16.373813 48.230391)'
    declare @radius Geography = @referencepoint.STBuffer(1000000);
    SELECT count(1) FROM testdoserate2 WITH (nolock, INDEX(IDX_Location))
    WHERE Location.Filter(@radius) = 1
    Is there anything else I can possibly do to speed this up?

    Have a look at this thread, especially the info on custom tessellations and the "optimizing point queries" whitepaper:
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/3bbdc511-2a08-4075-b989-d98b70d0bedd/sql-server-express-performance-limitations-with-ogc-methods-on-geometry-instances?forum=sqlspatial
    In addition: If your query returns a lot of rows (or a large count of them) and/or if your query and your spatial index doesn't eliminate most of the candidate rows, you can have perf problems. 1000km radius does sound like it could produce a lot of
    rows, which cause a lot a seeks on the base table in your query plan (capture the *actual* plan and look at the "Clustered Index Seek" iterator right above-right of the "Filter" iterator). 
    Look into tuning the parameters of your spatial index using sp_help_spatial_geography_index. You're looking for largest Percentage/Number_Of_Rows_Selected_By_Primary_Filter and  Pecentage/Number_Of_Rows_Selected_By_Secondary_Filter, which the default
    spatial index parameters don't always give you.
    Hope this helps, Bob

  • Get the value of a selected radio button within a ToggleGroup

    All
    Please see the script below. All I'm trying to do is to identify the selected radio button within a ToggleGroup. This has been working in JavaFX 1.2.
    This is JavaFX 1.3 running on NetBeans 6.9 (beta) on Ubuntu 10.04
    Does anyone know why this is no longer working?
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        // here I want to capture the value of the selected toggle
        // the outputted value is always 'null'
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
    }

    Actually, your code above wouldn't have worked in JavaFX 1.2 as we only added the value property to the new Toggle mixin in 1.3. I believe what worked for you in 1.2 was when you referred to text, which is not a property on Toggle, so you need to cast the selected variable from Toggle to a RadioButton, which does have a text property. For example, this would work:
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {(selected as RadioButton).text}");
        println("selectedToggle = {(levelGroup.selectedToggle as RadioButton).text}");
    }Alternatively, instead of casting like this, you can store a value in the value property of the Toggle mixin class, which is extended by RadioButton. For example, your code could be changed to the following (in particular note that the only change is the addition of the value properties in each of the RadioButton):
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.control.RadioButton;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Toggle;
    def levelGroup = ToggleGroup {};
    var selected: Toggle = bind levelGroup.selectedToggle on replace {
        println("level toggle = {selected.value}");
        println("selectedToggle = {levelGroup.selectedToggle.value}");
    Stage {
       scene: Scene {
          width: 300
          height: 300
          content: [
             HBox {
                    translateX: 100
                    translateY: 67
                    spacing: 20
                    content: [
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Easy"
                            selected: false
                            value: "Easy"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Medium"
                            selected: true
                            value: "Medium"
                        RadioButton {
                            toggleGroup: levelGroup
                            text: "Hard"
                            selected: false
                            value: "Hard"
    }This approach saves you from having to cast from Toggle to RadioButton. This second approach is actually very powerful, as you can store any object in the value field, and can then easily retrieve it at a later point when the user selects the desired RadioButton. Of course, you can just use it as in the simple case above as well.
    I hope that helps.

  • Continuing... to select more points or items in illustrator with click shift and drag?

    OK,
    here is the dilemma, and i bet there is a nifty shortcut to it.
    We all know how to continue select say object or points within illustrator yes, in saying this we will select one point, and then use thte mouse to select more points by covering space over a document, whilst holding shift(multiple itmes etc.)
    As i am trying to select more points, but say, they are scattered small individual shapes, like say little specks of small shapes, but countless, millions, but at the same time i have other shapes which i dont want to select, but, i want to continue selecting shapes thouhgh whilst holding down shift, i dont want to reverse the procedure, i want to select more and more tiny dots, even if i click and drag over the already selected dots.
    Now, how do i go about saying holding down an extra key, lets just say, the letter h for example on the keyboard, and it will activate the whole click drag and shift procedure but to not deselect the points i already i have selected..
    If this does not make sense let us know, but i was wondering for what i am doing, i want to be able to continue working my way up with selecting a whole array of tiny shapes, but select more and more as i work my way up or down.
    If you dont understand try it in illustrator first and see what i mean, then get back to us, as for what i am doing i need a shortcut, along with the shift key and click drag.
    Thanks.
    GaNa85

    Short answer.. You can't. Shift-clicking is a toggle. It selects or deselects based on the current selection state. If you shift-click or shift-click-drag over a selected object, it will become deslected in all cases.
    Long answer... Probects invoving intricate objects are generally best handled by good layer management. Setting up a project using layers as you construct can make selections much, much, easier in the long run. Of course, if something is already created it may not be an easy task to rethink layers. There's also the little known "Save Selection" item in the Select menu. This will allow you to save something you already have selected and reslect it later. You might find that you can shift-select an area, save that selection, then start selecting another areas. This doesn't really address your initial issue since you can't shift-load a selection to add it to the existing selection. But it may help with getting some things selected, then reselected easily.
    You can also shift-click the selection circle next to an object in the Layers Panel. This avoids mis-clicks or accidentally selecting something you already had selected.

Maybe you are looking for

  • How can I redirect APEX(EPG) URL with afrindly one

    Hi All, I am using APEX with EPG on oracle 11g, and I would to redirect the URL http://localhost:8080/apex/f?p=122:1:43920293912715::NO with a friendly one like this http://project_name.mydomain.com Is there any one can help me know; how to do this r

  • I can't get apple store to accept my password to download a free app.

    I can' get Apple Store to accept my password . All efforts at reset have been futile. What do I Do?

  • Multi Display

    Hi, i need advices about following: i have a Frame class on a server machine. my application need to display this frame on to a client machine. For the moment i used RMI to do that. But the pb is: When the client click on a button for example, i woul

  • DB Adapter Polling for Delete

    Hi, I want to poll the Database table for delete. If there is delete event on table I want to capture that record. if anyone has idea, how to achieve this with DbAdapter Polling. Thanks, Arun Jadhav.

  • Importing a Class in WAD 7.0

    Hi, We have a web template in 3.5. Here there is a print functionality which is captured through a custom class. We need to create a similar web template in wad 7.0. But, here we are unable to find the option of including a custom class. Any idea, ho