ODI: Way to select Distinct data while doing Join of tables at Source

HI,
Our requirement is to do a join on multiple tables selecting distinct data from those table at source.
But we are not able to see the Distinct Box in flow tab.
Any thoughts to resolve our problem
Pratik

You can not put DISTINCT clause selectively .
If you choose to opt for DISTINCT then Oracle will apply the distinct to all columns present in the select list .
So at your IKM level just click the distinct check box .. run your interface and find out the query generated .
See if your requirement is getting fullfilled or not .
Thank,
Sutirtha

Similar Messages

  • HT1414 I lost all my data while doing the latest software upgrade, how do I get it back if I dont have a backup on iTunes?

    I lost all my data while doing the latest software upgrade, how do I get it back if I dont have a backup on iTunes?

    If you don't have a backup, then all your pics/text/notes are gone.
    You can sync back music and app.  If you were syncing your contacts with a program in itunes, then you'll get that back.
    Not sure why you didn't do a backup, especially prior to doing an upgrade.

  • How to Hide/show the columns data while doing Drill down or drill up

    Hi ,
    How to Hide/show the columns data while doing Drill down or drill up in webi report .
    Does it possible BO 3.1 version ?
    Please suggest me on this.
    Thanks & Regards
    Venkat

    While that is not there yet, you can make use of the show when empty yes/no in combination with alerters.
    So I have an alerter applied to every cell of the table.
    When a condition is true (say I drilled down) I just put = "" in every cell, emptying the table,
    because its now empty and doesn't need to show, it wont.
    For the detail table I use the opposite, so when you drilled down it becomes visible...
    Hope this helps all that do not have 40 yet
    Good luck,
    Marianne

  • Select distinct problem with muliple join tables, help needed

    Hi,
    I have two main tables. Each has its of sub joined tables.
    guest_id_for_reservation connects two major tables. This has
    to be that way
    because my guest may change the room status from single to
    double (and the
    similar exceptional requests).
    guests reservation
    guest_id_for_reservation
    countrytable hoteltable
    delegationtable roomtype
    I form a query. I want to select distinct those results. But
    it does not
    work.
    If I do not include any table related to reservation table
    and its sub
    joined tables (disregarding guest_id_for_reservation), it
    works.
    Is there a specific syntax for select distinct of this type
    or any
    workaround.?
    Thank you
    Hakan

    Hi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
    So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
    And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
    I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
    Any ideas would be great!

  • Error While Doing GR "Check table YMSEG:"

    I am getting following error while doing GR for sales set  article 303387.
    Check table YMSEG: entry 303384 0001  does not exist
    Sales set header 303387
    sales set Component 303384 & 303386.
    can't find any issue with the article (material) setup

    YMSEG is a standard internal table used in import and export of function modules.
    if you search SAP notes on YMSEG then you get about 230 hits.
    Unfortunately the info given is by far not enough to tell you the reason for this error.
    The number from the error explains just that it is one of the sales set Components
    But you need to describe the process and what changes you eventually did compared to standard process. Only then we might be able to help you further.

  • Select distinct and 2 inner joins in same select statement

    can anyone guide me how to write the below query for higher performance. can I use for all entires or shall i split this,
    please let me know your opinions.
    SELECT DISTINCT werks matnr b~stlal idnrk postp d~aennr
       sortf potx1 c~lkenz b~stlty stlst
       INTO TABLE ltab_one
       FROM mast AS a INNER JOIN stko AS b
         ON  a~stlnr = b~stlnr
         AND a~stlal = b~stlal
         INNER JOIN stas AS c
         ON  b~stlnr = c~stlnr
         AND b~stlal = c~stlal
         AND b~stlty = c~stlty
         INNER JOIN stpo AS d
         ON  c~stlnr = d~stlnr
         AND c~stlkn = d~stlkn
         AND c~stlty = d~stlty
      WHERE a~werks IN s_werks
         AND ( ( d~andat IN s_datum
            OR d~aedat IN s_datum
            OR a~andat IN s_datum
            OR a~aedat IN s_datum
            OR b~andat IN s_datum
            OR b~aedat IN s_datum
            OR c~andat IN s_datum
            OR c~aedat IN s_datum
            ) AND d~datuv >= lv_effdt )
         AND a~stlan = '1'
         AND matnr IN s_matnr.

      WHERE a~werks IN s_werks
         AND ( ( d~andat IN s_datum
            OR d~aedat IN s_datum
            OR a~andat IN s_datum
            OR a~aedat IN s_datum
            OR b~andat IN s_datum
            OR b~aedat IN s_datum
            OR c~andat IN s_datum
            OR c~aedat IN s_datum
            ) AND d~datuv >= lv_effdt )
         AND a~stlan = '1'
         AND matnr IN s_matnr.
    This part determines your performance, not the DISTINCT and not the joins.
    What is in s_werks, s-datum, s_matnr typically? I guess there are better and worse conditions.

  • Three select statement data in to One Internal table

    HI All,
          By using 3 select statement, data is displying by using work area (classical report). Now i want define three internal table for three select statements, and finally get the data in one final itab, and pass this to function module (ALV Report).
    looking for response

    hi,
    just go through this simple example. no need of declaring 3 itabs.
    data: begin of st1,
            a1 type c,
            a11 type i,
          end of st1.
    data: begin of st2,
            a2 type i,
            a22 type c,
          end of st2.
    data: begin of st3,
            a3 type i,
            a33 type i,
          end of st3.
    data: begin of fin_struct.
              include structure st1.
              include structure st2.
              include structure st3.
    data: end of fin_struct.
    data: fin_itab like table of fin_struct with header line.
    *1st structure  values
    move 'a' to fin_itab-a1.
    move 1 to fin_itab-a11.
    *2nd structure values
    move 11 to fin_itab-a2.
    move 'b' to fin_itab-a22.
    *3rd structure values
    move 15 to fin_itab-a3.
    move 12 to fin_itab-a33.
    *appending 1st record.
    append fin_itab.
    *1st strcuct values
    move 'b' to fin_itab-a1.
    move 3 to fin_itab-a11.
    *2nd structure values
    move 22 to fin_itab-a2.
    move 'c' to fin_itab-a22.
    *3rd structure values
    move 20 to fin_itab-a3.
    move 30 to fin_itab-a33.
    *appending 2nd record.
    append fin_itab.
    loop at fin_itab.
    write:/ fin_itab-a1, fin_itab-a11, fin_itab-a2, fin_itab-a22, fin_itab-a3, fin_itab-a33.
    endloop.
    here structre1,2,3...
    i used move statement.
    here u write select statement.. into struct1,2,3....
    using move u move all the values ...
    finally append it to final itab...
    rest of and all common for ALV...
    Regards,
    Shankar.

  • I can't find a way to preserve app data while upgrade from iOS 3 to 4

    During the weekend I am helping one family member to upgrade the iOS on her iPhone 3G from 3.1 to the latest available, 4.2.1, and I ran into a problem which mades me frustrated.
    Before the upgrade, iTunes warns me "Upgrading to iOS 4.2 will delete all of the apps and media......" and suggest me that I should apply this update on teh compuetr where I syn apps, music, videos, and photos from.
    The problem is, this user has  never sync it with a computer. She had been using this phone for over 2 years, she has 5 pages worth of apps, and of course she would have data in some apps.   She has no problem letting me make my computer as THE computer that her iPhone syncs to, and I even created a new iTunes profile for her, authorized her Apple ID, and transferred her purchase into iTunes.  But when I check "Syn App" on, it tells me that all apps and data on the iPhone will be replaced with the data in the iTunes library. Well, I know what this is about, this is like.. one way overwrite type of sychronization.
    But when I looked over everything again,  it seems like in the iOS3 era, if you don't sync your apps with a computer on day 1 before you start using the phone, you permanately lose the ability to backup the apps' data and restore to another device?  I like to emphasize again that my focus is in data, not apps, I know I could transfer purchases from phone A to iTunes to phone B, it's the inability of backing up data makes me frustrated.
    Do I miss anything here?  Is there still a way I could upgrade this phone from iOS 3 to iOS4, without losing her app data?

    iTunes is required to initially activate the phone. Back when the iPhone 3G was sold, you would take it out of the box and see a "Connect to iTunes" screen. She HAD to connect to a computer in order to begin using the phone. Does she remember what computer this was?

  • Best way to select distinct values based on another column?

    I have a table with three columns: id (NUMBER), data_dt (DATE), and data_value (NUMBER).
    There is a primary key on id and data_dt.
    I want to select the record with the latest data_dt for each unique id.
    What is the best way to do this?
    I have three different methods, but there may be something I am missing.
    First:
    SELECT *
    FROM
      SELECT id, data_dt, data_value,
             FIRST_VALUE(data_dt)
             OVER (PARTITION BY id ORDER BY data_dt DESC) AS last_data_dt
      FROM the_table
    WHERE data_dt = last_data_dt;(I use ORDER BY...DESC instead of just ORDER BY so I don't need the ROWS BETWEEN clause)
    Second:
    SELECT t1.*
    FROM the_table t1
    JOIN
      SELECT id, MAX(data_dt) AS last_data_dt
      FROM the_table
      GROUP BY id
    ) t2 ON (t2.id = t1.id AND t2.data_dt = t1.data_dt);Third:
    SELECT t1.*
    FROM the_table t1
    WHERE t1.data_dt =
      SELECT MAX(t2.data_dt)
      FROM the_table t2
      WHERE t2.id = t1.id
    );-- Don

    Hi,
    There are more possible scenario's, for example:
    select t1.*
    from   the_table t1
    where not exists ( select null
                       from   the_table t2
                       and    t2.data_dt > t1.data_dt
    What is the best way to do this?Only you can tell:
    Test all scenario's, check the execution plans, set timing on and pick the best/fastest one ;-)
    If it's not clear, please post the execution plans here.

  • Sql*loader to select distinct data

    Hi,
    i am getting the following data from a csv file.
    For repeated values of phone and dept, i am getting duplicate records of empno, empname and sal
    I need to load the distinct record of empno,ename into a emp table
    and then move the data salary and phone numbers into different table.
    Is it possible to do at sql*loader level
    >
    EMPNO EMPNAME SAL PHONE DETP
    1 TOM     2000      99999 20
    1 TOM 2000      22222
    2 BEN 3000     33333 30
    2 BEN     3000      40
    >
    thanks
    sunil

    sunil_dba wrote:
    Hi,
    thanks
    sunilSo what's stopping you then to create primary key on empno column ?

  • Take some data while doing a CALL TRANSACTION

    Hello,
    I am trying to make a call transaction to HU02 (standard). The problem is that when I do this, I generate a handling unit.
    My call transaction is next:
        CALL TRANSACTION 'HU02' USING I_BDCTAB
                                MODE 'A' UPDATE 'S'
                                MESSAGES INTO IMESSAGES.
    The problem is that in the messages it doesn't say the number of my new handling unit and I need to know that name.
    I would like to know how can I obtain that number. Can I save the number while I am doing the call transaction??
    I know that I can use, export and import sentences, but this is an standar program and I can't make any change on it.
    How can I resolve my problem??
    Thank you very much in advance.
    Best regards.

    I have already resolved the problem.
    Thanks

  • How to transform data while populating an external table

    Hi Folks,
    I have to populate the first four fields of my external table from the data in a csv file. While the last field should have the "SYSDATE". My code to create an external table (and to populate the first four fields) is as follows
    create table T_XT
    (PNODE VARCHAR2(10),
    NODE VARCHAR2(15),
    SUB_NODE VARCHAR2(12),
    NODE_COUNT NUMBER,
    CREATE_DATE DATE
    organization external
    (type oracle_loader
    default DIRECTORY topology
    access parameters
    (records delimited by NEWLINE
    characterset US7ASCII
    badfile 'TOPOLOGY':'Modem_Count.bad'
    discardfile 'TOPOLOGY':'Modem_Count.dis'
    logfile 'TOPOLOGY':'Modem_Count.log'
    fields terminated by ','
    optionally enclosed by "'"
    location ('Modem_Count.csv')
    reject limit unlimited parallel;
    Can somebody please let me know where this data transformation (for the last field) should be specified ? And the syntax to do so.
    Thanks in advance
    rogers42

    Hi,
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6790030213850#59876418675556
    You'd rather just:
    select pnode,
           node,
           sub_node,
           node_count,
           sysdate
    from   t_xt;

  • Poblem with java.sql.Date while inserting to a table

    Hi All,
    I have a PostgreSQL database table which contains fields(columns ) of type date. I want to insert values to the table in the[b] �dd-MMM-YYYY� format using the prepared statement.
    My code is as follows
    java.text.DateFormat dateFormatter =new java.text.SimpleDateFormat("dd-MMM-yyyy");
    String formatedDate=dateFormatter.format(theDate);
    currentDate = new java.sql.Date(dateFormatter.parse(formatedDate).getTime())
    �������������������
    �������������������
    �������������������
    pst.setDate(12,currentDate);The problem is the currentDate variable gives date only in the �YYYY-MMM-dd� format but requirement is the currentDate variable should give date in the �dd-MMM-YYYY� format and this should be save to table as java.sql.Date type
    There is any solution???? please help me...
    Thanks and Regards,
    Hyson_05

    Hi,
    What are you talking about? A Date does always wrap a millisecond value, and doesn't have any formatting. It's the database, or your program which formats the date that you see.
    In short. You should format the value when you print it, and not when you store it.
    Kaj

  • How to give line items in flatfile while doing BDC for Table control

    Hi all,
    I am writing BDC for Multiple line items and Transaction  is : FSE5N.
    How do i give the data in the flat file. I mean how do we give the multiple line items in flat file , i.e for second line item again we have to header data or not ?
    ex:
    1015;ALL;demo;kr;INR;01;0001;3000172;100
    1015;ALL;demo;kr;INR;01;0001;3000172;200
    for first lineitem  : 3000172;100
    for 2nd line item : 3000172; 200.
    header data : 1015;ALL;demo;kr;INR;01;0001.
    Thanks in advance
    krupali

    Hii ,
    u can give in the same format as u have done in the example.
    A       B    C     D  E    F   G        H          I
    1015;ALL;demo;kr;INR;01;0001;3000172;100
    1015;ALL;demo;kr;INR;01;0001;3000172;200
    and while writing the loop u can give
    loop at it_head.
    loop at it_head where a = it_head-A and b = it_head-B ..........upto G = it_head-G.
      endloop.
    endloop.
    check this
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    Neeraj

  • Problem in Selecting the data from EKPO and KONV tables

    Hi Experts,
    Presently I am working on Report with Comparision-Sheet Between the vendor's Quotations. I have to display the Discount, Freight, Packing and Forwarding, Vat in Item level data based on the conditions made in PO.
    As per my Knowledge, Condition Types are stored in KONV Table. But there is no relation between KONV and EKPO tables.  So, I am unable to print the data for Discount, Freight, Packing and Forwarding, Vat... How can I get the values from EKPO and KONV tables?
    Thanks in Advance.
    Thanks n Regards,
    Muralikrishna.

    Don't recall if this is correct, but you may need the condition number from the header (EKKO) combined with EKPO-EBELP or other field as you key to access KONV (KNUMH and KPOSN).  My site doesn't run PP, so can't verify if the data is actually stored that, so just a possibility.

Maybe you are looking for

  • Disable genelink?

    HI  and merry xmas by the way. I got here K7T Turbo Limited Edition(MS-6330 Ver3.0), and amongst many things it has the ONBOARD GENELINK USB LAN. I was wondering if there was a way to disable it? Can't seem to find it in BIOS, and have looked for a j

  • Itunes/AppleMobileDeivce not responding when syncing large files..

    As stated above, Itunes or apple mobile device not responding everytime i sync a large file. for exmaple.. 1 or 2 songs i will nt encounter this error, but syncing an 400mb abv item, itune/apple mobile device will just appear not responding and crash

  • How can I disable iMessage for some of my contacts?

    I have unlimited text, but limited data on my iPhone 5s. I only want to receive/send iMessages to a select few on my contacts list who have iPads and then use SMS for my iPhone friends. I tried disabling my phone number as a receive/sender, but it on

  • RCU Install error - Timeout while connecting to the datbase

    Hi All, I am trying to install the OBIEE 11.1.1.7 in my Laptop - OS is Windows 7.I am at the level of RCU Creation. While I am running the rcu.bat, I entered all the database connectivity details such as host name, service name, port number etc.But w

  • ERROR maunwally creating OEM

    WARNING : While repository is dropped the database will be put in quiesce mode. Do you wish to continue? [yes(Y)/no(N)]: Y Oct 15, 2010 7:54:32 AM oracle.sysman.emcp.EMConfig perform INFO: This operation is being logged at c:\oracle\product\10.2.0\db