How to define the order of GROUPBYs, JOINs and FILTERS in an interface?

Hello,
I would like to define an interface which implements the following logic:
Give me a list of all customers with less then 2 orders in status = 'A'.
SELECT C.Name, o.cnt
FROM CUSTOMER C
LEFT OUTER JOIN (SELECT cust_id, count(*) cnt FROM ORDERS WHERE status = 'A' GROUP BY cust_id) O
ON C.cust_id = O.cust_id
WHERE O.cnt < 2 OR O.cust_id IS NULL
In this case, the right order of operations is essential:
First apply filter, then group, then join, then apply the second filter.
How can I define this in an ODI interface?
Thanks in advance for any hints...
Best regards,
Karol

Defining JOINs order :
1 - Go in topology manager and verify that your technologie support the ISO ordered join ( left inner join ...)
NB : by default Oracle data sources are configured with the old syntax ( ie : columns(+)=expr )
- Open technology Oracle: Check SQL ISO
- Go to the SQL tab
- select "FROM" in the filter place
- verify the join syntax
2 - Define the alias order in the source table
3 - Check the ordered join (ISO) and a num-order on the join operator
Defining GROUPBYs and FILTERS orders seems to be impossible
but you can create a mapping as a view and use this mapping as a source in an other one !

Similar Messages

  • How to define the size of report area and its elements?

    How can I define the report area size and its elements? And how can I define that for each printed paper, the details area will repeat horizontally or vertically?
    Is there any way to change the measuring units?
    Are there any difference between Crystal Reports that is bundled with Visual Studio 2005 to the standalone version that don't allow me doing what I need?
    Thanks.

    Hi Juliano,
    I hope this is what you had in mind...
    1.  File / Page setup: set your paper size, portrait/landscape and margins.
    2.  Section Expert: the page header &footer sections are 'locked' in that each page will have the space indicated dedicated to these sections; report header & footer - this is the space dedicated on the first and last page of the document. The remaining space available will be used up by the Details section.
    I'm not sure how you can get the Details to print verticall vs horizontally - except maybe with cross-tab format.
    3.  Measuring units: is this for the ruler? This is pulled from your computer settings.
    The rest I'm not sure about but I hope this is enough to get you started!
    Heather

  • Define the order to pickup jars in pickup folder of Virgo Nano

    Hello,
    Could you please let me know how to define the order in which Virgo nano can pick up the jars from pickup folder ? All that i have is set of jars in virgo nano pickup folder and i want virgo to deploy some specific jars first and then deploy the remaining jars later.
    Thanks
    Chandru

    Hello,
    You can use a Plan https://eclipse.org/virgo/documentation/virgo-documentation-3.6.3.RELEASE/docs/virgo-programmer-guide/html/ch04s03.html
    (I use Virgo Server for Tomcat, but I suppose Virgo Nano is the same).
    GianMaria

  • How to define the Market Sales KF, in order to receive the desired result

    Hi all,
    I dont know how to define the Market Sales Kefigure, in order to get the following result. Any hint is more than welcome.
    Prd_ID = Product ID
    PS  =  Product Sales
    M_ID = Market ID
    MS  = Market Sales
    MS%  = Market Share ( formula in BEX PS/MS)
    <b>
    Prd_ID;PS;M_ID;MS;MS%</b>
    A00001;10;MRK1;100;10%
    A00002;20;MRK1;100;20%
    <b>SBTOT</b>;30;MRK1;100;30%
    B00001;40;MRK2;200;20%
    B00002;30;MRK2;200;15% 
    <b>SBTOT</b>;70;MRK2;200;35%
    <b>GTOTL</b>;100;MRKX;300;33,3%
    Products A00001 and A00002 compete in the same market. So the individual marketshares should be calculated against the market MRK1(200), e.g. 40/200 and 30/200.
    The totals now, of the A00001 and A00002 products(3040) should be compared against <b>the same market</b> MRK1(200),</b> and <b>not against</b> the MRK1MRK1(200+200).
    Thanks
    Vasso Siagri<b></b><b></b><b></b>

    Maik,
    thank you for your answer, but I am afraid this is not giving the desired results.
    What I want----
    >What am getting
    Prd_ID;PS;M_ID;MS;MS%
    A00001;10;MRK1;100;10%  ---> 10;MRK1;200;5%
    A00002;20;MRK1;100;20%  ---> 20;MRK1;200;10%
    SBTOT;30;MRK1;100;30%   ---> 30;MRK1;200;15%
    B00001;40;MRK2;200;20%  ---> 40;MRK2;400;10%
    B00002;30;MRK2;200;15%  ---> 30;MRK2;400;7,5%
    SBTOT;70;MRK2;200;35%   ---> 70;MRK2;400;17,5%
    GTOTL;100;MRKX;300;33,3% ---> 1000;MRKX;600;16,7%
    Neither resticted KF restricted on Market ID is working for many markets; it is working only if you analyze one market id.
    Any idea? bw idea? What actually I need is aggregation of unique records in terms on market id.

  • How to define the running order of the listeners

    Hello
    I would like to know how to define the running order of the listeners in my Dialogs.
    e.g. loadcontent on each element will do different things and some depedent on others to load when you you need the generated values based on the generated values of another element
    Thank you
    Nikolas

    Hi mei
    instead of using append use modify.
    i hope this might help you.
    gs_fieldcat-fieldname = 'VRT'.
    * gs_fieldcat-ref_table =.
    gs_fieldcat-outputlen = '3'.
    gs_fieldcat-edit = 'X'.
    gs_fieldcat-key = 'X'.
    gs_fieldcat-coltext = 'VRT'.
    gs_fieldcat-col_pos = 6.
    <b>*append gs_fieldcat to gt_fieldcat.
    modify gt_fieldcat from gs_fieldcat.</b>
    clear gs_fieldcat.
    gs_fieldcat-fieldname = 'QTY'.
    gs_fieldcat-datatype = 'FLTP'.
    gs_fieldcat-outputlen = '12'.
    gs_fieldcat-DECIMALS = '3'.
    gs_fieldcat-coltext = 'QTY'.
    gs_fieldcat-edit = 'X'.
    gs_fieldcat-col_pos = 7.
    <b>*append gs_fieldcat to gt_fieldcat.
    modify gt_fieldcat from gs_fieldcat.</b>
    or u can also try this way.
    form build_fieldcat changing gt_fieldcat type lvc_t_fcat.
      data gs_fcat type lvc_s_fcat.
      call function 'LVC_FIELDCATALOG_MERGE'
           EXPORTING
                i_structure_name = 'TABLE NAME'
           CHANGING
                ct_fieldcat      = gt_fieldcat.
      clear gs_fcat.
      loop at gt_fieldcat into gs_fcat.
        if gs_fcat-fieldname EQ 'VRT'.
          gs_fcat-scrtext_s = 'VARIETY'.
          gs_fcat-scrtext_m = 'VARIETY'.
          gs_fcat-scrtext_l = 'VARIETY'.
          gs_fcat-reptext   = 'VARIETY'.
          gs_fcat-seltext = 'VARIETY'.
          gs_fieldcat-outputlen = '3'.
          gs_fieldcat-edit = 'X'.
          gs_fieldcat-key = 'X'.
          gs_fieldcat-col_pos = 6.
          modify gt_fieldcat from gs_fieldcat.
         endif.
        if gs_fcat-fieldname EQ 'QTY'.
          gs_fcat-scrtext_s = 'QUANTITY'.
          gs_fcat-scrtext_m = 'QUANTITY'.
          gs_fcat-scrtext_l = 'QUANTITY'.
          gs_fcat-reptext   = 'QUANTITY'.
          gs_fcat-seltext = 'QUANTITY'.
          gs_fieldcat-outputlen = '3'.
          gs_fieldcat-edit = 'X'.
          gs_fieldcat-key = 'X'.
          gs_fieldcat-col_pos = 7.
          modify gt_fieldcat from gs_fieldcat.
         endif.
    and so on.....
    endloop.
    regards,
    venu.

  • UJQ_RUN_RSDRI_QUERY: how to define the scope?

    Hi,
    I'm going to use UJQ_RUN_RSDRI_QUERY in a BADI in order to retrieve data from another application. It seems easy to use. But how to define the scope of the retrieved data, i.e. how to define the content of the it_sel parameter.
    thanks for your help,
    Romuald

    This is a selection table which contains the DIMENSION name and the selection options.  Here is how to fill the table. For example, say you wanted to select on only JAN.2012 for a certain account.
      clear ls_sel.
      ls_sel-dimension = 'ACCOUNT'.
      ls_sel-sign = 'I'.
      ls_sel-option = 'EQ'.
      ls_sel-low = 'CE40041000'.
      insert ls_sel into table lt_sel.
    clear ls_sel.
      ls_sel-dimension = 'TIME'.
      ls_sel-sign = 'I'.
      ls_sel-option = 'EQ'.
      ls_sel-low = 'JAN.2012'.
      insert ls_sel into table lt_sel.
    Cheers,
    Rich HEilman

  • How to change the order of albums iOS 8?

    I recently upgraded from an iPhone 5 to a 6 Plus. Everything is fine except for the fact that some of my music is in the wrong order. There are some groups that released multiple albums in the same year, and I would like them to be in the order of when they were released. On my 5 I was able to put them in the right order by going on a computer, changing the sorting, then update iTunes Match to have it change on my phone as well. (example; group came out with album "1" and "2" same year and it defaults to "2" first, then "1." I was able to change it on the iPhone 5 to be in the right order by changing how they are sorted from my computer but that doesn't work on the 6 Plus.) I would like to order it where it goes top to bottom, with the newest on top going down. How would I do this?
    Thanks

    Hi Jason,
    How to change the order of tables within sheets
    Make a table active by clicking in it once to select that table, then drag it by the 'bullseye' (top left, I have placed a red circle to show the bullseye):
    After dragging the table down:
    Table 1 is now below Table 2.
    The blue line is an Alignment Guide
    Two types of Guide:
    1. Menu > View >Show Rulers. Drag Alignment Guides from a ruler to where you want them.
    2. Menu > Numbers > Preferences > Rulers > Alignment Guides. Turn on (tick) both guides. That allows you to align objects with *each other* (as well as with the ruler guides). These guides help to align objects left, middle, right, top, bottom.
    Alignment Guides do not show unless you are moving an object.
    to drag/move table to another sheet in the one file
    Not possible in Numbers 3. The Sheets Pane has gone. Instead, select the entire table (click once in the table to make it active, then click on the bullseye). Copy (or Cut if you are brave). Go to another Sheet and Paste.
    Also can you change the size of sheet tab width on tab toolbar, so I can see more sheets at once??
    No. Let's hope this will be added in future updates. However, you can drag a Sheet tab left or right to reorder them.
    Another tip: each Sheet tab shows the contents of that Sheet, with some options such as Duplicate and Delete:
    Regards,
    Ian.

  • How to get the order for these decoration​s?

    hello,
    I want to programatically resize all the controls, indicators and decorations on the front panel.
    I am getting the references of all the controls and indicators and able to resize them, as each n every control and indicator has a tabbing order set to it.
    I am also getting the references of all the decoration used on the front panel but not able to get the order.
    how to get the order for these decorations?

    The order of the decorations is the same as the back to front order. So you
    can change it by bringing decorations to front, or sending them to the back.
    It has been suggested many times that decorations should have labels as well
    as controls, but at the moment there is no way to tell which reference
    belongs to which decoration (besides position and order).
    Regards,
    Wiebe.

  • How to define the date format for this date string

    2006-11-13 00:00:00.0
    How to define the date format in control file for sqlldr. "yyyy-mm-dd hh24:mi:ss" or "yyyy-mm-dd hh24:mi:ss.FF1" does not work
    thanks,

    SQL> desc t
    Name                                      Null?    Type
    TS                                                 TIMESTAMP(6)
    SQL> !cat t.ctl
    load data
    into table t
    truncate
    (ts timestamp "YYYY-MM-DD HH24:MI:SS.FF1")
    SQL> !cat t.dat
    2006-11-13 00:00:00.0
    SQL> !sqlldr userid=scott/tiger control=t.ctl data=t.dat log=t.log
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Sep 7 11:19:28 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 1
    SQL> select * from t;
    TS
    13-NOV-06 12.00.00.000000 AMBest regards
    Maxim

  • How to define the application parameter 'sap.xss.BaseConfigurationID'

    Hello All,
    I am developing a webdynpro ESS custom self service application. I have completed the development of the DC. But at the end when I am creating the application for the DC, I am not able to figure it out how to define the application parameter 'sap.xss.BaseConfigurationID' for the application. I have defined remaining all the parameters as specified in the following link.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/43/3b95dab4ab1800e10000000a1553f6/content.htm]
    Could any one please detail the process to define the parameter 'sap.xss.BaseConfigurationID' ?
    Thanks a lot.
    Regards,
    Seshu.

    Pick a representative file.
    Get info. (Command-i)
    There you will see a place "Open with" where you can select the application for that file.
    Hit the "Change all..." button to do this for all files of this type.
    charlie

  • How to define the default activity for an unbounded task flow?

    In the new "Fusion Developer’s Guide for Oracle Application Development Framework 11g Release 1" documentation at the bottom of page 14-3 it states "An unbounded task flow .... contains a default activity, an activity designated as the first to run in the unbounded task flow, because an unbounded task flow does not have a single point of entry."
    What I can't find is how to define the default activity in an unbounded task flow and where this is recorded? Can we set this via the task flow diagrammer, and which configuration file is it stored?
    I note the first time I run the application with an unbounded task flow a dialog asks me which of the activities in the adfc-config.xml file to make the default, but I can't find where this is recorded.
    Anybody have any ideas?
    Thanks,
    CM.

    Chris,
    In fact this information is nothing that belongs into the taskflow meta data because unbounded taskflow have more than one entry point and there is no notion of default. Its a tools setting (JDeveloper) we had before
    Frank
    Message was edited by:
    Frank Nimphius

  • How to define the margins of a leaf in numbers 3.2

    how to define the margins of a leaf in numbers 3.2
    leaves appear without margin and not when moving from one sheet to another

    Hi Ariel,
    Numbers 3 does not show margins in normal (edit) view. Some help with layout:
    Try Alignment Guides and Rulers as suggested here:
    Print View workarounds
    Use a layout guide:
    Layout Guide for Numbers
    If you previously had Numbers 2.3 (Numbers '09) it now lives in a folder called iWork '09 inside your Applications folder. It works just as well as it used to, and has a proper Print View.
    Regards,
    Ian.

  • How to organize the orders of audio files in ipod?

    Hey guys, I'm having a problem in organizing the audio files on my ipod, I wish you could help me out. I transferred some language lessons to my ipod, however they are not in order. If they are just songs it's OK, but for language lessons you really want them to be in order. Anybody can teach me how to arrange the order of audio files on ipod? Thanks a lot!
    ipod video 30GB

    Thanks for the reply, Chris. Are you talking about how to change the file name on itune or on ipod? I couldn't find the way to edit any info of the audio files on itune. And the file names were already in order (i.e. French001,French002...) but they appear on itune & ipod in different order.
    Thanks again.

  • How to change the order of the icons in the dock with Lion?

    Hello
    since I've installed Lion on my Mac I cannot change the order of the icons used for quick launch.
    Any idea how I customize the order of the icons?
    Thanks
    Mac-Fanatic

    I suspect you'd get a very prompt reply in the Lion forum:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion

  • How to change the order of users in appearance of login screen?

    Hello!
    Because we often switch to a user,
    which is listed last in login screen,
    we want move them to the second place.
    How to change the order of users in appearance of login screen?
    Thank you for a tip
    Erhy

    The order users show up on the login screen is the way they are ordered under the
    C:/Users directory. This is usually alphabetical, AFAIK there is no other way to change the order other than to change the username to something that starts with a letter that will be higher alphabetically.

Maybe you are looking for

  • Global data getting reset when running under IIS?

    We have a scenario using IIS with an ASP.NET web service written in VB.NET. When a call to the web service is made, the web service calls a native dll (written in C, compiled using VS2010) using platform invoke, which in turn calls into our product A

  • Can't browse anything in Windows Server 2008 R2 SP1

    Hi, Need your help and expertise. Suddenly, i can't browse anything in my Windows Server 2008 R2 SP1 with IIS7. I tried already three(3) different browsers (IE8, Firefox & Chrome). Before, i can browse (using IE8 & Firefox) both private (LAN) and pub

  • Message splitting 1:n without BPM error : 404   Not Found

    hi, is u r server is updated with sps14 please once check this.. may be this is the problem Thanks, Madhav. Note:points if useful

  • Home network not displayed in AirPort list

    My home wireless network suddenly won't show up on my 1st-gen MacBook. It is showing up on other computers, and other networks are showing up on my MacBook - it's only the combination of the two that isn't working. I have tried basically svery soluti

  • MASS change sales order condition value

    I have to change few thousands of sales order to correct condition value for tax per item. I tried with MASS but there is no way to change conditions per item. I tried with BAPI_SALESORDER_CHANGE, but I can only add new tax condition or do update pri