Tween a Group of Groups

How can I tween a Group of Groups to scale?
I use my Pshop groups in a similar fashion to how Flash uses Display Object Containers. I have one group containing the rest of my groups serving as a 'master group' so I can perform global transformations to all of my layers. For some reason, it stopped letting me scale.
Using frame animation (yes I'm using frame on purpose, not motion), I would like to get the master group to tween a scale and tranlate. I can get it to translate it's XY coordinates, but for some reason the scale doesn't work anymore. It was working before but not now. I even tried converting the group to a smart object but that doesn't help, and that's fine, I try to avoid smart objects where possible.
Does anyone know how to get this to work or what I might have done wrong to the file?
Thank you.

Sorry, I can't make heads or tails of the gist of your post.  I also confess I have never gone anywhere near Flash, so that reference is lost on me.
Further, I looked up tween in two dictionaries, and I only got this:
tween |twēn| (also tweenie |ˈtwēnē|)
noun
short for tweenager .
and:
tween
(twn)
n.
A child between middle childhood and adolesence, usually between 8 and 12 years old. 
[Blend of teen and between.]

Similar Messages

  • Transaction code to change group indicator & group number of a routine

    Transaction code to change group indicator & group number of a routine

    Post Author: paul.carpenter
    CA Forum: Formula
    Sorry for the ignorance.  I did a little more playing, created a group summary count, then checked it against my record count per group.
    All set now!

  • Commision based on item group & customer group

    Dear all,
    Does anyone have an idea about how to get commission based on item group & customer group sales?
    My customer wanted commission report based on item group or customer group & based on payment collection dated.
    Example
    Term given for customer A is 30 days.
    12/3/09 Inv 1000   RM 10,000   30 days payment
    20/4/09 Inv 2000  RM    5,000   60 days payment
    The term given is 30 days of the invoice month.
    Salesman will get commission if get the collection at May'09 for Inv 1000, & July'09 for iinv 2000 based on the invoice date month.
    The salesman get commission at any date of the month May'09. More longer collection, less commission they will get.
    Example:
    Salesman A
    Customer Group             1st of the month, 2nd of the month, 3rd of the month, 4th of the month
    Normal Dealer                         1.5%         ,  0.75%,              0.00%                   ,    -0.25%
    Sub Distributor                       0.5%         ,  0.25%,               0.00%                  ,    - 0.25%
    Any idea?
    Thanks in advance?
    Regards,
    Eric Tan

    Hi Eric
    SAP does not calculate commissions, but merely provide a mechanism to report on it. The multi level calculation you require can be achived with a custom query linked to a report layout. Standard SAP will not provide this type of calculation. You will need to look at the open transactions such as invoices and link to the relevant payment transaction to get the payment date. Then compare this date to the invoice due date to determine if the terms were adhered to or not. If not payment date - due date in number of days will be needed to calculate the effective commission percentage.
    Kind regards
    Peter Juby

  • Group and Group counter in Routing

    Hi all,
    what is group and group counter in routing , how these are used in routing , please explain.
    Regards,
    Joseph.

    Dear Joseph,
    1.Each routing is stored against a group and group counter no.
    2.When we create routing without respect to any material and only by giving the plant,the set of operations gets saved under one
    group counter and group no.
    4.Many materials can be assigned to this same group and group counter no,so that the routing is valid for all the materials included.
    5.When you create a routing for material specific,the set of operation gets saved in a group no and group counter no as 01,when
    you create another routing with another set of operations for the same material,plant and task list combination now the group no
    remains same and the group counter gets saved under 02.
    6.This data can be further helpful in assigning the routing data in the production version,.
    Check and revert
    Regards
    S Mangalraj

  • Group by Grouping sets in obiee11g query

    Hi Experts
    I have few unbalanced heirarchies in the rpd. I have created level beased heirarchy for those ragged and skipped hierarchy but while generating the report using those hierarchy generates a huge SQL involving 20-30 UNION ALLs . Instead it should have generated comparatively smaller query using Group by Grouping Sets but it is not.
    I have also tried enabling this parameter in DB properties in OBIEE11g ( changed the default DB from 9i to 11g in obiapps 7.9.6.3 rpd) but still no use .
    As a result of huge query geenration the performance is badly impacted.
    Any thought on this pls.

    I have run into the same problem. Any hints about what might be the reason or, even better, how to address it, will be more than welcome.
    thanks in advance

  • Group by groups

    I have a bunch of data I need to transform and "group by groups." Let me explain by an example:
    SQL> create table orig_data as
      2  select distinct job, deptno
      3  from scott.emp e
      4  /
    Table created.
    SQL> select job
      2       , deptno
      3    from orig_data
      4   order by
      5         job
      6       , deptno
      7  /
    JOB           DEPTNO
    ANALYST           20
    CLERK             10
    CLERK             20
    CLERK             30
    MANAGER           10
    MANAGER           20
    MANAGER           30
    PRESIDENT         10
    SALESMAN          30
    9 rows selected.The real-world data is about 5 million rows.
    First I group by job (I use xmlagg here because I am on version 11.1 and therefore no listagg ;-) ):
    SQL> select od.job
      2       , rtrim(xmlagg(xmlelement(d,od.deptno,',').extract('//text()') order by od.deptno),',') deptnos
      3    from orig_data od
      4   group by od.job
      5  /
    JOB       DEPTNOS
    ANALYST   20
    CLERK     10,20,30
    MANAGER   10,20,30
    PRESIDENT 10
    SALESMAN  30I notice here that both job CLERK and MANAGER has the same set of deptnos.
    So if I group by deptnos I can get this result:
    SQL> select s2.deptnos
      2       , rtrim(xmlagg(xmlelement(j,s2.job,',').extract('//text()') order by s2.job),',') jobs
      3    from (
      4     select od.job
      5          , rtrim(xmlagg(xmlelement(d,od.deptno,',').extract('//text()') order by od.deptno),',') deptnos
      6       from orig_data od
      7      group by od.job
      8         ) s2
      9   group by s2.deptnos
    10  /
    DEPTNOS                        JOBS
    10                             PRESIDENT
    10,20,30                       CLERK,MANAGER
    20                             ANALYST
    30                             SALESMANMy requirement is to identify all such unique groups of deptnos in my orig_data table, give each such group a surrogate key in a parent table, and then populate two child tables with the deptnos of each group and the jobs that have that group of deptnos:
    SQL> create table groups (
      2     groupkey number primary key
      3  )
      4  /
    Table created.
    SQL> create table groups_depts (
      2     groupkey number references groups (groupkey)
      3   , deptno number(2)
      4  )
      5  /
    Table created.
    SQL> create table groups_jobs (
      2     groupkey number references groups (groupkey)
      3   , job varchar2(9)
      4  )
      5  /
    Table created.For the surrogate groupkey I can just use a rownumber on my group by deptnos query:
    SQL> select row_number() over (order by s2.deptnos) groupkey
      2       , s2.deptnos
      3       , rtrim(xmlagg(xmlelement(j,s2.job,',').extract('//text()') order by s2.job),',') jobs
      4    from (
      5     select od.job
      6          , rtrim(xmlagg(xmlelement(d,od.deptno,',').extract('//text()') order by od.deptno),',') deptnos
      7       from orig_data od
      8      group by od.job
      9         ) s2
    10   group by s2.deptnos
    11  /
      GROUPKEY DEPTNOS                        JOBS
             1 10                             PRESIDENT
             2 10,20,30                       CLERK,MANAGER
             3 20                             ANALYST
             4 30                             SALESMANThat query I can use for a (slow) insert into my three tables in this simple manner:
    SQL> begin
      2     for g in (
      3        select row_number() over (order by s2.deptnos) groupkey
      4             , s2.deptnos
      5             , rtrim(xmlagg(xmlelement(j,s2.job,',').extract('//text()') order by s2.job),',') jobs
      6          from (
      7           select od.job
      8                , rtrim(xmlagg(xmlelement(d,od.deptno,',').extract('//text()') order by od.deptno),',') deptnos
      9             from orig_data od
    10            group by od.job
    11               ) s2
    12         group by s2.deptnos
    13     ) loop
    14        insert into groups values (g.groupkey);
    15
    16        insert into groups_depts
    17           select g.groupkey
    18                , to_number(regexp_substr(str, '[^,]+', 1, level)) deptno
    19             from (
    20                    select rownum id
    21                         , g.deptnos str
    22                      from dual
    23                  )
    24           connect by instr(str, ',', 1, level-1) > 0
    25                  and id = prior id
    26                  and prior dbms_random.value is not null;
    27
    28        insert into groups_jobs
    29           select g.groupkey
    30                , regexp_substr(str, '[^,]+', 1, level) job
    31             from (
    32                    select rownum id
    33                         , g.jobs str
    34                      from dual
    35                  )
    36           connect by instr(str, ',', 1, level-1) > 0
    37                  and id = prior id
    38                  and prior dbms_random.value is not null;
    39
    40     end loop;
    41  end;
    42  /
    PL/SQL procedure successfully completed.The tables now contain this data:
    SQL> select *
      2    from groups
      3   order by groupkey
      4  /
      GROUPKEY
             1
             2
             3
             4
    SQL> select *
      2    from groups_depts
      3   order by groupkey, deptno
      4  /
      GROUPKEY     DEPTNO
             1         10
             2         10
             2         20
             2         30
             3         20
             4         30
    6 rows selected.
    SQL> select *
      2    from groups_jobs
      3   order by groupkey, job
      4  /
      GROUPKEY JOB
             1 PRESIDENT
             2 CLERK
             2 MANAGER
             3 ANALYST
             4 SALESMANI can now from these data get the same result as before (just to test I have created the desired data):
    SQL> select g.groupkey
      2       , d.deptnos
      3       , j.jobs
      4    from groups g
      5    join (
      6           select groupkey
      7                , rtrim(xmlagg(xmlelement(d,deptno,',').extract('//text()') order by deptno),',') deptnos
      8             from groups_depts
      9            group by groupkey
    10         ) d
    11         on d.groupkey = g.groupkey
    12    join (
    13           select groupkey
    14                , rtrim(xmlagg(xmlelement(j,job,',').extract('//text()') order by job),',') jobs
    15             from groups_jobs
    16            group by groupkey
    17         ) j
    18         on j.groupkey = g.groupkey
    19  /
      GROUPKEY DEPTNOS                        JOBS
             1 10                             PRESIDENT
             2 10,20,30                       CLERK,MANAGER
             3 20                             ANALYST
             4 30                             SALESMANSo far so good. This all works pretty much as desired - except for a couple of things:
    The very simple loop insert code will be slow. OK, it is a one-time conversion job (in theory, but very few times at least) so that could probably be acceptable (except for my professional pride ;-) .)
    But worse is, that I have groups where the string aggregation won't work - the string would have to be about varchar2(10000) which won't work in SQL in the group by :-( .
    So I have tried an attempt using collections. First a collection of deptnos:
    SQL> create type deptno_tab_type as table of number(2)
      2  /
    Type created.
    SQL> select od.job
      2       , cast(collect(od.deptno order by od.deptno) as deptno_tab_type) deptnos
      3    from orig_data od
      4   group by od.job
      5  /
    JOB       DEPTNOS
    ANALYST   DEPTNO_TAB_TYPE(20)
    CLERK     DEPTNO_TAB_TYPE(10, 20, 30)
    MANAGER   DEPTNO_TAB_TYPE(10, 20, 30)
    PRESIDENT DEPTNO_TAB_TYPE(10)
    SALESMAN  DEPTNO_TAB_TYPE(30)All very good - no problems here. But then a collection of jobs:
    SQL> create type job_tab_type as table of varchar2(9)
      2  /
    Type created.
    SQL> select s2.deptnos
      2       , cast(collect(s2.job order by s2.job) as job_tab_type) jobs
      3    from (
      4     select od.job
      5          , cast(collect(od.deptno order by od.deptno) as deptno_tab_type) deptnos
      6       from orig_data od
      7      group by od.job
      8         ) s2
      9   group by s2.deptnos
    10  /
    group by s2.deptnos
    ERROR at line 9:
    ORA-00932: inkonsistente datatyper: forventede -, fik XAL_SUPERVISOR.DEPTNO_TAB_TYPENow it fails - I cannot group by a collection datatype...
    I am not asking anyone to write my code, but I know there are sharper brains out there on the forums ;-) .
    Would anyone have an idea of something I might try that will allow me to create these "groups of groups" even for larger groups than string aggregation techniques can handle?
    Thanks for any help, hints or tips ;-)

    The "group-by-collection" issue can be solved by creating a container object on which we define an ORDER method :
    SQL> create type deptno_container as object (
      2    nt deptno_tab_type
      3  , order member function match (o deptno_container) return integer
      4  );
      5  /
    Type created
    SQL> create or replace type body deptno_container as
      2    order member function match (o deptno_container) return integer is
      3    begin
      4      return case when nt = o.nt then 0 else 1 end;
      5    end;
      6  end;
      7  /
    Type body created
    Then a multitable INSERT can do the job, after unnesting the collections :
    SQL> insert all
      2    when rn0 = 1 then into groups (groupkey) values (gid)
      3    when rn1 = 1 then into groups_jobs (groupkey, job) values(gid, job)
      4    when rn2 = 1 then into groups_depts (groupkey, deptno) values(gid, deptno)
      5  with all_groups as (
      6    select s2.deptnos
      7         , cast(collect(s2.job order by s2.job) as job_tab_type) jobs
      8         , row_number() over(order by null) gid
      9    from (
    10      select od.job
    11           , deptno_container(
    12               cast(collect(od.deptno order by od.deptno) as deptno_tab_type)
    13             ) deptnos
    14      from orig_data od
    15      group by od.job
    16    ) s2
    17    group by s2.deptnos
    18  )
    19  select gid
    20       , value(j) job
    21       , value(d) deptno
    22       , row_number() over(partition by gid order by null) rn0
    23       , row_number() over(partition by gid, value(j) order by null) rn1
    24       , row_number() over(partition by gid, value(d) order by null) rn2
    25  from all_groups t
    26     , table(t.jobs) j
    27     , table(t.deptnos.nt) d
    28  ;
    15 rows inserted
    SQL> select * from groups;
      GROUPKEY
             1
             2
             3
             4
    SQL> select * from groups_jobs;
      GROUPKEY JOB
             1 SALESMAN
             2 PRESIDENT
             3 CLERK
             3 MANAGER
             4 ANALYST
    SQL> select * from groups_depts;
      GROUPKEY DEPTNO
             1     30
             2     10
             3     10
             3     30
             3     20
             4     20
    6 rows selected
    Works great on the sample data but how this approach scales on a much (much) larger dataset is another story :)

  • GROUP BY grouping sets

    Hello everybody,
    I have this query
    SELECT ALL
                M_PAGAMENTO||' '||D_TIPO MPAGA,
                grouping(F.KIND_F),
                DECODE (grouping(F.KIND_F), 0 , 'Totali IVA',F.KIND_F)  a1,
                 case
                 when grouping(F.KIND_F) = 1 then F.KIND_F
                 when grouping(F.KIND_F) = 0 then 'Totali IVA'
                 end  TIPOF,
               F.KIND_F  TIPOF,
               COUNT(*) NFATTURE,
                sum(F.TOT_FT) TFATTURA, sum(F.BOLLO) TBOLLO,
                K_IVA, SUM(FA.IPBFA) TIMP, SUM(FA.IPSFA) TIPS
    FROM A_FATTURE  F,A_PAZIENTI A,TIPOLOGIA_PAGAMENTI p  ,A_FATTURE_ALIQUOTE FA
    where (F.TIPORD = A.TIPORD AND F.K_CODE = A.K_CODE  AND F.ANNO = A.ANNO)
    AND   (FA.TIPORD = F.TIPORD AND FA.K_CODE = F.K_CODE AND FA.ANNO = F.ANNO AND FA.N_FATT_D = F.N_FATT_D)
    and p.ID_TIPO = f.M_PAGAMENTO
    &MYWHERE
    GROUP BY grouping sets (M_PAGAMENTO||' '||D_TIPO,F.KIND_F),K_IVA
    ORDER by  1
    Why I get this result(A1, tipof) = NULL but they would be = 'D' (F.KIND_F ='D'
    MPAGA                    GROUPING(F.KIND_F)     A1     TIPOF     TIPOF     NFATTURE     TFATTURA     TBOLL      K_IVA     TIMP          TIPS
    01 Contante               1                              5          3183,24          7,24     20     250          50
    01 Contante               1                              3          2342,43          5,43     FC     5,43          0
    01 Contante               1                              50          7024,61          9,91     ES     24458,91     0
    02 Assegno               1                              1          780,81          1,81     FC     1,81          0
    02 Assegno               1                              2          816,96          1,81     ES     755,15          0
    02 Assegno               1                              1          780,81          1,81     20     50          10
    04 Carta di credito          1                              1          780,81          1,81     FC     1,81          0
    04 Carta di credito          1                              1          780,81          1,81     20     50          10
    04 Carta di credito          1                              1          780,81          1,81     ES     719          0
                        0     Totali IVA     Totali IVA     D     53          8622,37          23,53     ES     25933,06     0
                        0     Totali IVA     Totali IVA     D     5          3904,05          9,05     FC     9,05          0
                        0     Totali IVA     Totali IVA     D     7          4744,86          10,86     20     350          70where I am wrong?
    thanks for any help

    Rosario,
    Those rows where grouping(f.kind_f) = 1 are superaggregate rows where you are grouping by M_PAGAMENTO||' '||D_TIPO,K_IVA. So f.kind_f doesn't come into play for these rows, and it shows a null value.
    You can of course hard code a 'D' value in there, but values of the f.kind_f column are always null at this grouping level.
    See this example:
    SQL> select deptno
      2       , job
      3       , extract(year from hiredate)
      4       , sum(sal)
      5       , grouping(job)
      6    from emp
      7   group by deptno
      8       , grouping sets (job,extract(year from hiredate))
      9  /
        DEPTNO JOB       EXTRACT(YEARFROMHIREDATE)   SUM(SAL) GROUPING(JOB)
            10 CLERK                                     1300             0
            10 MANAGER                                   2450             0
            10 PRESIDENT                                 5000             0
            20 CLERK                                     1900             0
            20 ANALYST                                   6000             0
            20 MANAGER                                   2975             0
            30 CLERK                                      950             0
            30 MANAGER                                   2850             0
            30 SALESMAN                                  5600             0
            10                                1981       7450             1
            10                                1982       1300             1
            20                                1980        800             1
            20                                1981       5975             1
            20                                1982       3000             1
            20                                1983       1100             1
            30                                1981       9400             1
    16 rijen zijn geselecteerd.
    SQL> select deptno
      2       , job
      3       , extract(year from hiredate)
      4       , sum(sal)
      5       , grouping(job)
      6       , decode(grouping(job),1,job)
      7    from emp
      8   group by deptno
      9       , grouping sets (job,extract(year from hiredate))
    10  /
        DEPTNO JOB       EXTRACT(YEARFROMHIREDATE)   SUM(SAL) GROUPING(JOB) DECODE(GR
            10 CLERK                                     1300             0
            10 MANAGER                                   2450             0
            10 PRESIDENT                                 5000             0
            20 CLERK                                     1900             0
            20 ANALYST                                   6000             0
            20 MANAGER                                   2975             0
            30 CLERK                                      950             0
            30 MANAGER                                   2850             0
            30 SALESMAN                                  5600             0
            10                                1981       7450             1
            10                                1982       1300             1
            20                                1980        800             1
            20                                1981       5975             1
            20                                1982       3000             1
            20                                1983       1100             1
            30                                1981       9400             1
    16 rijen zijn geselecteerd.Regards,
    Rob.

  • GROUP BY GROUPING SETS Clarification of Format

    Hello.
    I am trying to validate the answers to 2 questions I have listed below.
    Would it be possible for someone to assist me with clarifying these 2 questions and answer statements? Please clarify the portion of the answer that is in
    Bold Text and Italicized. Why is one answer enclosed in brackets and the other not?
    Basically I need to figure out how to determine the syntax of these parenthesis and why they differ from each question. Is it a format issue or is it based on how the question is asked.
    Question #1-
    You are a developer for a Microsoft SQL Server 2008 R2 database instance used to support a customer service application. 
    You create tables named complaint, customer, and product as follows: 
    CREATE TABLE [dbo].[complaint] ([ComplaintID] [int], [ProductID] [int], [CustomerID] [int], [ComplaintDate] [datetime]); 
    CREATE TABLE [dbo].[customer] ([CustomerID] [int], [CustomerName] [varchar](100), [Address] [varchar](200), [City] [varchar](100), [State] [varchar](50), [ZipCode] [varchar](5)); 
    CREATE TABLE [dbo].[product] ([ProductID] [int], [ProductName] [varchar](100), [SalePrice] [money], [ManufacturerName] [varchar](100)); 
    You need to write a query to sum the sales made to each customer who has made a complaint by the following entries:
    ·Each customer name
    ·Each product name
    ·The grand total of all sales 
    Which SQL query should you use?
    SELECT c.CustomerName, p.ProductName, SUM(p.SalePrice) AS Sales
    FROM product p 
    INNER JOIN complaint com ON p.ProductID = com.ProductID 
    INNER JOIN customer c ON com.CustomerID = c.CustomerID
    GROUP BY GROUPING SETS ((c.CustomerName), (p.ProductName), ());
    Question #2 - 
    You are a developer for a Microsoft SQL Server 2008 R2 database instance. 
    You create tables named order, customer, and product as follows: 
    CREATE TABLE [dbo].[order] ([OrderID] [int], [ProductID] [int], [CustomerID] [int],[OrderDate] [datetime]); 
    CREATE TABLE [dbo].[customer] ([CustomerID] [int], [CustomerName] [varchar](100),[Address] [varchar](200), [City] [varchar](100), [State] [varchar](50),
    [ZipCode] [varchar](5)); 
    CREATE TABLE [dbo].[product] ([ProductID] [int], [ProductName] [varchar](100), [SalePrice] [money], [ManufacturerName] [varchar](100)); 
    You need to write a query to sum the sales made to each customer by the following entries:
    ·The Customer name and product name
    ·The grand total of all sales
     Which SQL query should you use?
    SELECT c.CustomerName,p.ProductName,SUM(p.SalePrice) AS Sales
    FROM product p 
    INNER JOIN [order] o ON p.ProductID = o.ProductID 
    INNER JOIN customer c ON o.CustomerID = CustomerID
    GROUP BY GROUPING SETS ((c.CustomerName, p.ProductName), ());
    Your help would be highly appreciated. :)
    Thanks

    Its just to identify the GROUPING SET.When you enclose, the grouping would take for the combination.
    Ok, it would be better to see with an example as below:
    create table T1 (Col1 Varchar(100),Col2 int,Col3 int)
    Insert into T1 Select 'SQL',10,100
    Insert into T1 Select 'SQL',11,100
    Insert into T1 Select 'Oracle',20,500
    SELECT p.col1,p.col2,SUM(p.col3) AS Sales
    FROM T1 p
    GROUP BY GROUPING SETS ((p.Col1,p.Col2), ());/*Oracle 20 500
    SQL 10 100
    SQL 11 100
    NULL NULL 700*/
    SELECT p.col1,p.col2,SUM(p.col3) AS Sales
    FROM T1 p
    GROUP BY GROUPING SETS ((p.Col1),(p.Col2), ());
    /*NULL 10 100
    NULL 11 100
    NULL 20 500
    NULL NULL 700
    Oracle NULL 500
    SQL NULL 200*/
    Drop table T1

  • GROUP BY GROUPING SETS for a selected month and for year to date

    Below is a code example to demonstrate this question:
    declare @test table (ID int, Quantity int, Day date);
    insert into @test values
    (4, 500, '1/18/2014'),
    (4, 550, '1/28/2014'),
    (7, 600, '1/10/2014'),
    (7, 750, '1/11/2014'),
    (7, 800, '1/20/2014'),
    (1, 100, '1/2/2014'),
    (1, 125, '1/10/2014'),
    (8, 300, '1/7/2014'),
    (9, 200, '1/17/2014'),
    (9, 100, '1/22/2014'),
    (4, 900, '2/18/2014'),
    (4, 550, '2/28/2014'),
    (7, 600, '2/10/2014'),
    (7, 700, '2/11/2014'),
    (7, 800, '2/20/2014'),
    (1, 100, '2/2/2014'),
    (1, 150, '2/10/2014'),
    (8, 300, '2/7/2014'),
    (9, 200, '2/17/2014'),
    (9, 100, '2/22/2014'),
    (4, 500, '3/18/2014'),
    (4, 550, '3/28/2014'),
    (7, 600, '3/10/2014'),
    (7, 750, '3/11/2014'),
    (7, 800, '3/20/2014'),
    (1, 100, '3/2/2014'),
    (1, 325, '3/10/2014'),
    (8, 300, '3/7/2014'),
    (9, 200, '3/17/2014'),
    (9, 100, '3/22/2014'),
    (4, 500, '4/18/2014'),
    (4, 550, '4/28/2014'),
    (7, 100, '4/10/2014'),
    (7, 750, '4/11/2014'),
    (7, 800, '4/20/2014'),
    (1, 100, '4/2/2014'),
    (1, 325, '4/10/2014'),
    (8, 300, '4/7/2014'),
    (9, 200, '4/17/2014'),
    (9, 100, '4/22/2014'),
    (4, 500, '5/18/2014'),
    (4, 550, '5/28/2014'),
    (7, 600, '5/10/2014'),
    (7, 750, '5/11/2014'),
    (7, 50, '5/20/2014'),
    (1, 100, '5/2/2014'),
    (1, 325, '5/10/2014'),
    (8, 300, '5/7/2014'),
    (9, 200, '5/17/2014'),
    (9, 100, '5/22/2014');
    --detail
    select *
    from @test;
    --aggregation
    select
    TotalQuantity = sum(Quantity),
    [Month] = month(Day)
    from @test
    group by
    grouping sets
    (month(Day)),
    (year(Day))
    go
    This is the aggregation query result:
    However, the desired result is to return only two rows: one row for month 3 and the other row for year to date (in the picture above YTD is the row that appears with {null} in the Month column).  Is there a way to achieve this goal by modifying the
    sample code above?  The requirement is to only read the data once (do not want a solution that involves a UNION which implies reading the data twice).

    you can add required filters in having clause. Here is the query -
    select
    TotalQuantity = sum(Quantity),
    [Month] = month(Day)
    from @test
    group by
    grouping sets
    (month(Day)),
    (year(Day))
    having
    month(Day) = 3 or month(Day) is null;

  • Material Group,Product Group

    Hi ,
    Can any one explain what is meant by Material Group, Product Group. Where is it used. What is the difference between
    Material and Product Group. Do we need to have any prequisites for creating Product Group with Tcode MC84?.
    Thanks in advance

    Aditya,
    Material Group:
    This is basically a field in Material master Basic data1. This field is available in most of the Purchasing Reporting transactions and you can run reports based on them.  Material Group is also used as a reference when creating Purchase Inforecord without any material number reference.
    Product Group:
    Product Group is a material master of type "PROD". This type of material master can only be used for planning purpose, you can assign finished materials(FERT) as members to them. Example: If you are manufacturing a product which goes in for several type of packings then you create a product group and assign the individual finished product material numbers as members, here we also define the proportional factors for aggregation and disaggregation.
    Hope this helps your understanding.
    Regards,
    Prasobh

  • Change colums from group to group in Reports 2.5 (Developer 2000)

    Hi
    I know there is a easy way to do it in reports 6i, simply dragging and dropping the colum from group to group. But in 2.5 it doesnt work.I suppose there is a way to do it but i dont find it
    Thanks a lot

    Hi,
    In reports 2.0 we have the "Reports Generator Version 2.0" to do this but do we have anything of this sort ( to convert rpt to rex) in reports 2.5 it tells something about case dictionary and stuff...
    I'am not able to get exacltly what U are telling could U explain a bit U can mail me
    to "[email protected]"
    please
    thank U so much
    regards
    Naresh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by nirali:
    Hi!
    1.sccs edit .exp/inp
    - Check out most recent version from SCCS(source control)
    2. pasterex *.exp *.rex - Add special characters so this report can be loaded into the DB.
    this will generate *.rex file.
    Nirali<HR></BLOCKQUOTE>
    null

  • Anyconnect tunnel-group and group-policy from LDAP

    Recently we've changed from LOCAL to LDAP authentication and added additional group-policies for different users to increase security.
    To prevent users from selecting an incorrect group-policy, the LDAP server provides a IETF-Radius-Class value which matches the different group-policy names.
    It is my understanding that the authentication method is provided by the tunnel-group.
    tunnel-group DefaultWEBVPNGroup general-attributes
     authentication-server-group LDAP_AD
    This all works, but for _one_ of the group policies i'd like to enable (external) two factor authentication. Two enable two factor auth a 'secondary-authentication-server-group' needs to be set in the tunnel-group.
    Creating a tunnel-group which maches the name of the group-policy doesn't seem to have any effect.  When listing the connected users via "show vpn-sessiondb anyconnect", it always states the correct Group Policy but also always DefaultWEBVPNGroup.
    When enabling the listing of tunnel-groups for webvpn, thus allowing users to select their own tunnel-group, the two factor auth does work.
    To summarize, is it possible to let LDAP decide which tunnel-group is used or is there another way to have different group policies without users being able to choose ?

    Fabian, 
    Your connection lands on a tunnel group and picks a group policy. 
    A typical way to overcome the problem you're indicating is by using group-url. 
    a URL is bound to a specific tunnel-group and allows you to land directly on the one you desire. 
    vide:
    http://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/98580-enable-group-dropdown.html
    M.

  • Group by groups but the resultset is not ordered

    Group by groups but the resultset is not ordered. The very first answer is to use order by. But in some databases group by brings ordering automatically. Is it possible to order without using order by?Is there an option of database for that purpose?

    baydinfb wrote:
    But in some databases group by brings ordering automatically. There is no relational database that automatically orders records by using a group by. In some circumstances, an ordered set is a side effect of the method used to determine the groups, however it is not a guaranteed result.
    The only way that any relational database will guarantee an ordered resultset is by adding an order by to your statement.
    John

  • Group Policy "Restricted Groups" (local groups) using group policy preferences

    I was recently tasked a solution with creating a group policy to manage RDP user access to a set of Active Directory computer objects.
    Part of the  solution was to create a policy so that this would only apply a specific security group(users) to a specific set of Active Directory computer objects within the OU to which it was applied so that other machines
    and/or user accounts in this OU remain un affected by this policy.
    The policy was to be able to include multiple sets of Security groups(users) for the associated machines isolating those security groups(users) to only their sets of Active Directory computer objects.
     Reduce the requirement to create multiple group policies to apply different "Local Group"/"Restricted groups" management for computer objects in the domain.
    I thouhgt about using System based policies and creating different WMI filters to target sets of AD Computer objects, but came to the conclusion this would not help due to the limited of WMI quries I would be able to create for a standard
    Image.
    So I then thought about group policy preferences and came up with the solution
    I created a new Group policy and created a new item for the local group, in this instance but not limited to "Remote Desktop users (built-in)" and added the security group(users).  In my case I did not need to use the "delete
    all member users" or "delete all member groups" as I wanted other groups in this local group for the computer objects to remain intact.
    Then what I did is set the "item-level-target" setting from "the common tab" on the GPP and set it to the security group which containd the AD computer objects the user accounts required access to.  I then did a couple of standard
    tests to confirm the local security group(users) appeared only on the machine in the item level target security group and applied to no other machines in the outside of SOM. 
    So with this in place, if I needed to create any other entries for different groups and access to specific machines all I need to do is create a new GPP item within this policy.
    Being mindful that system policies settings if applied to same OU will take preceedence over GPP settings.... 
    Thought I would just share this in-case anyone else has had similar requests/thoughts and or has other methods that they have used that they would like to share. 
    I am not sure either on the limit of entries that GPP have either so if anyone does know please post and possible links? 
    I have struggled to find an answer, however it could be that I am not asking the right question!

    good sharing...
    Best,
    Howtodo

  • AXL SQL Query user-extension- line group-hunt group mapping

    Hi all
    I want to take an export  about user-extension- line group-hunt group mapping
    Can somebody help me about it   I have CUCM 9.1

    There's a lot of table joins in that full mapping! I'll break it down into steps. When you say extension you need to bear in mind that a number and a device are two different things, and a user is associated to these things separately. I'll break it down into chunks.
    User to Device:
    SELECT enduser.userid, device.description FROM enduser, device, enduserdevicemap WHERE enduser.pkid = enduserdevicemap.fkenduser AND enduserdevicemap.fkdevice = device.pkid AND enduser.userid='FOO'
    User to Directory Number:
    SELECT enduser.userid, numplan.dnorpattern FROM enduser, numplan, endusernumplanmap WHERE enduser.pkid = endusernumplanmap.fkenduser AND endusernumplanmap.fknumplan = numplan.pkid AND enduser.userid='FOO'
    Number to Hunt List:
    SELECT numplan.dnorpattern, device.name FROM numplan, device, devicenumplanmap, typeproduct WHERE numplan.pkid = devicenumplanmap.fknumplan AND devicenumplanmap.fkdevice = device.pkid AND device.tkproduct = typeproduct.enum AND typeproduct.name = "Hunt List" AND numplan.dnorpattern='FOO'
    Hunt List to Line Group
    SELECT device.name, linegroup.name FROM device, routelist, linegroup WHERE device.pkid = routelist.fkdevice AND routelist.fklinegroup = linegroup.pkid AND device.name="FOO"
    Line Group to Directory Number
    SELECT linegroup.name, numplan.dnorpattern FROM linegroup, linegroupnumplanmap, numplan WHERE linegroup.pkid = linegroupnumplanmap.fklinegroup AND linegroupnumplanmap.fknumplan = numplan.pkid AND linegroup.name="FOO"
    All of this (and more!) is fully documented in the CUCM Database Data Dictionary.
    GTG
    Please rate helpful posts.

Maybe you are looking for

  • When downloading, a RED astrick appears as file catches download WHAT IS THIS????

    NOT JUST FIREFOX anything i try to download! i am no expert thats for sure so HELP!!

  • Apple TV Video Out To Native Possible?

    Is there a way to get the Apple TV to output native resolution instead of upscaling it to the resolution of the TV? If you have a mixe of 480P and 1080P movies to stream but prefer that the outboard preamp do the video scaling instead of the Apple TV

  • Trouble with swipe gesture in Mac OS X Lion.

    Hello everyone, I updated my mac yesterday with Lion. I was so looking forward to the upgrade, however I have stumbled on a problem ever since I upgraded. The swipe gesture isn' t working correctly for me. I look at the WWDC 2011 and I checked youtub

  • "Show Edges" on - Can't Resize

    In Illustrator CS4, I have suddenly not been able to resize by dragging the bounding box. Rather than showing 8 open boxes on the corners and middle, I have 4 closed boxes only on the corners. I can't see a preference that has been clicked to change

  • Where to consume expansion click in JTreeTable?

    Hi! I have the following question concerning a JTreeTable (tried it with the classic TreeTableExample2 from http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html ) : I want that whenever I click an expand/collapse button of the Tree eit