How to perform Set operations in ODI?

Can anybody suggest me how to perform a set operations in ODI?

Hi ,
May be the below threads helpful for u....
UNION operation in ODI
How to use Union, Union all, MINIUS in ODI
Thanks.

Similar Messages

  • Use boolean array to perform set operations

    I am currently taking a computer science class that uses Java as the language of choice. I have no prior experience with Java. We have a homework assignment in which we are supposed to use a boolean array to implement set operations. We have to create a method that inserts an integer into the array, another that deletes an integer element, and several others. I am confused as how to do this with integers, as it is a boolean array. The datr for this class is:
    private boolean base[];The constructor is:
    public largeset(int size){ }We then have to create a method that inserts an integer into the array:
    public void insert(int i){ }And one that deletes the element:
    public void delete(int i) { }I am unsure how to do this using a boolean array. If it were an integer array I would not have any trouble, but I get an error when trying to insert/delete an integer from the boolean array. Can anyone help point me in the right direction? I would prefer advice only, not the actual code, as this is a homework assignment, and I would like to create the code myself so I actually know what I am doing. Thanks.

    This is the assignment exactly as posted on the course website:
    In this homework, we will use a boolean array to implement various set operations. Please create a class called largeset that supports set operations of any number of elements. The data of this class is
    private boolean[] base;The constructor of the class is
    public largeset(int size);  // create a boolean array of size "size" and store it in "base"The methods of the class are:
    public void insert(int i);  // insert number i into the current set, where 0 <= i < base.length
    public void delete(int i);  // delete number i from the current set, where 0 <= i < base.length
    public boolean member(int i); // test if i is in the set
    public largeset union(largeset B); // return the union of two sets
    public largeset interset(largeset B); // return the intersection of two sets
    public largeset subtract(largeset B); // return the subtraction of two sets
    public largeset complement(); // return the complement of the current set
    public boolean subset(largeset B); // test if the current set is a subset of set B
    public int cardinality();  // return the number of elements in the current set
    public String toString();  // return a string which is a printing of the current setThen create another class called testset that uses the largeset class. At first, please create the following two sets:
    X = { 1, 3, 5, 7, ..., 999 };
    Y = { 9, 18, 27, 36, ..., 999 };
    Please perform the following tests:
    1. display the cardinalities of X and Y, respectively.
    2. display the content of substraction of Y by X.
    3. display the square root of the sum of all the elements of X (Math.sqrt(x) will return the square root of x in double type).
    4. For every pair of distinct elements x and y in Y, compute the sum of (Math.max(x, y) - Math.min(x, y)) (or equivalently, Math.abs(x - y)), and report this sum.

  • How to perform aritmetic operations on interna table's fields ?

    i have an internal table containing entries from ekpo table.
    while displaying the internal table's entries i would like to add the field containing net price for the same po numbers.
    so, how do i perform arithmetic operations on this itab ? plz help..

    HI,
    see this example.
    u can do like this.
    DATA: BEGIN OF seats OCCURS 0,
            carrid   TYPE sflight-carrid,
            connid   TYPE sflight-connid,
            seatsocc TYPE sflight-seatsocc,
          END OF seats.
    DATA seats_tab LIKE HASHED TABLE OF seats
                   WITH UNIQUE KEY carrid connid with header line.
    SELECT carrid connid seatsocc
           FROM sflight
           INTO table seats.
    loop at seats.
      COLLECT seats INTO seats_tab.
    endloop.
    LOOP AT seats_tab.
    write:/ seats_tab-carrid,seats_tab-connid,seats_tab-seatsocc.
    ENDLOOP.
    rgds,
    bharat.

  • How to perform loop action in ODI

    hi all,
    i want to implement a function which fetches data from 3 tables and then inserts into one table
    but the problem is there with the loop.
    the function contains a loop and i dont know how to implement a loop in odi.
    anyone can give a solution.
    regards,
    prateek.

    hi guru,
    yes i have fk between the tables but i am not able to understand that how to apply the exit condition and how to tell the interface that if the exit condition is not satisfied then again loop back.
    can you please explain this in detail.
    thanks and regards,
    prateek sharma.
    Edited by: user11116379 on May 21, 2009 5:32 AM

  • How to perform CRUD operations on joined tables created with Fluent API on Azure Mobile Services?

    I've been following the
    Field Engineer example project from the Windows Development Center to guide into mapping many-to-many relationships on my model. What's been bothering me is how to insert entries into many-to-many relationships.
    Take my model as example:
    An Organization can have many Users.
    An User can belong to many Organizations.
    My model class for User looks like this:
    public class User
    public User()
    this.Organizations = new HashSet<Organization>();
    public int Id { get; set; }
    public string Email { get; set; }
    public string Password { get; set; }
    public string PasswordSalt { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public bool Active { get; set; }
    public string Picture { get; set; }
    public string PictureMimeType { get; set; }
    public bool Confirmed { get; set; }
    public string ConfirmationKey { get; set; }
    [JsonIgnore]
    public virtual ICollection<Organization> Organizations { get; set; }
    My UserDTO class is this:
    public class UserDTO : EntityData
    public string Email { get; set; }
    public string Password { get; set; }
    public string PasswordSalt { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public bool Active { get; set; }
    public string Picture { get; set; }
    public string PictureMimeType { get; set; }
    public bool Confirmed { get; set; }
    public string ConfirmationKey { get; set; }
    My Organization class:
    public class Organization
    public Organization()
    this.Users = new List<User>();
    public string Id { get; set; }
    public string Title { get; set; }
    public string LegalName { get; set; }
    public string TaxReference { get; set; }
    [JsonIgnore]
    public virtual ICollection<User> Users { get; set; }
    My OrganizationDTO class:
    public class OrganizationDTO : EntityData
    public string Title { get; set; }
    public string LegalName { get; set; }
    public string TaxReference { get; set; }
    public virtual ICollection<UserDTO> Users { get; set; }
    With those classes in mind I created the controller classes, I mapped the DTO and the Model classes using AutoMapper as follows:
    cfg.CreateMap<Organization, OrganizationDTO>()
    .ForMember(organizationDTO => organizationDTO.Id,
    map => map.MapFrom(organization => MySqlFuncs.LTRIM(MySqlFuncs.StringConvert(organization.Id))))
    .ForMember(organizationDTO => organizationDTO.Users,
    map => map.MapFrom(organization => organization.Users));
    cfg.CreateMap<OrganizationDTO, Organization>()
    .ForMember(organization => organization.Id,
    map => map.MapFrom(organizationDTO => MySqlFuncs.LongParse(organizationDTO.Id)))
    .ForMember(organization => organization.Users,
    map => map.Ignore());
    Using Fluent API, I defined the relationship between these two entities using an EntityTypeConfiguration class like this:
    public class UserEntityConfiguration : EntityTypeConfiguration<User>
    public UserEntityConfiguration()
    this.Property(u => u.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
    this.HasMany<Organization>(u => u.Organizations).WithMany(o => o.Users).Map(uo =>
    uo.MapLeftKey("UserId");
    uo.MapRightKey("OrganizationId");
    uo.ToTable("OrganizationsUsers");
    I created a TableController class to handle UserDTO and OrganizationDTO, I have no problem inserting new Users or new Organizations, but the endpoints from each TableController class only allows me to add Users or Organizations individually as far as I understand.
    To create an entry into the OrganizationsUser table, how can I achieve this?
    I was thinking a PATCH request should be a way to do this, but is it the right way? Do I have to define a TableController for this? How can I expose the Insert, Update, Select and Delete operation for the elements in this relationship? What would be the JSON
    to be sent to the endpoints?

    Hi,
    if you accept lists to hold the LOV data, then here is an example : http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples --> sample 70
    Frank

  • How to perform DML Operations on Spatial Table Using ADF

    Hi
    I have an urgent requirement. I have a table with Spatial column. I have generated Business components based on Spatial Table.
    Now I have to perform Create,Read,Update and Delete operations using ADF Business Components on Spatial Table.
    I have written custom create(),read(),update() and delete() methods in my Application Module and i have to implement those methods.
    Can any one help me out how to acheive above four functionalities using ADF Business Components.
    Thanks in Advance

    HI,
    see this example.
    u can do like this.
    DATA: BEGIN OF seats OCCURS 0,
            carrid   TYPE sflight-carrid,
            connid   TYPE sflight-connid,
            seatsocc TYPE sflight-seatsocc,
          END OF seats.
    DATA seats_tab LIKE HASHED TABLE OF seats
                   WITH UNIQUE KEY carrid connid with header line.
    SELECT carrid connid seatsocc
           FROM sflight
           INTO table seats.
    loop at seats.
      COLLECT seats INTO seats_tab.
    endloop.
    LOOP AT seats_tab.
    write:/ seats_tab-carrid,seats_tab-connid,seats_tab-seatsocc.
    ENDLOOP.
    rgds,
    bharat.

  • Set operations in ODI

    Hi,
    I have a requirement where I need to do a MINUS operation on two SQL queries. How do I implement this in the ODI Designer?

    Hi,
    Trying to help you,
    You can create a view with the MINUS operator and reverse that view from your model. Use that view as source at your interface.
    Thanks,
    G

  • How to perform merge operation using Data services designer?

    I am new here and new to Data Services Desinger as well.
    And currently, I want to do a merge operation using query transform or table comparison transform. But sadly, neither one of them is giving me what I want.
    So, wonder if you could help clarify if either one of them could achieve MERGE operation between and source and target tables?
    if positive, then how?
    PS:
    by MERGE, i mean, if data exists in target table, then only do update, else, do insert. same with the standard MERGE operation of oracle.
    If you need any more info, let me know!
    Thanks in advance.

    You can do this.
    You don't need the Tabe_Comparison transform actually.
    Just query the data you need and output the flow from your query to your target table.
    Then, you'll have to check the "Auto correct load" option: this will insert new lines and updates old ones. One checked, you can ckeck the "Auto correct load" checkbox.
    By default, BODS will know a line already exists based uppon the primary key columns of your target table. If you want to change the columns used to determine if a line should be inserted or updated, use the "Use input key" checkbox (and define some PK column in your query).
    Hope this helps
    Guillaume

  • How to perform Update operation in Ios using Odata Services

    Hello,
          I want to do PUT(update) operation on odataservice... I am using followin code to get the proper Entry property to update
    SDMODataEntry * entry1=((SDMODataEntry *)[ArraySelectedCell objectAtIndex:0]);
        SDMODataPropertyValueObject* obj = ((SDMODataPropertyValueObject*)[entry1getPropertyValueByPath:@"rm_comment"]);
    But i am getting following error
    __NSDictionaryM getPropertyValueByPath:]: unrecognized selector sent to instance 0x10166620
    Please help...
    Regards,
    Ravindra

    Ravindra Dolas
    Can you please look at this thread SMP 3.0 - OData CRUD Help
    I hope you will get some inputs.
    Rgrds,
    Jitendra

  • How to perform delete operation on Delete Column In Advance Table?

    Hi All,
    I have to add a delete column in seeded page(Advance table).
    For that I have followed jdev tutorial.Now after clicking delete image the column is not deleting also it is not throwing any error except mine.
    Please Help.
    Regards,
    SHD

    Hi AJ,
    In the seeded table there is a seeded column correct.Where it is using above parameter.But while I am using same parameter it is doing nothing.
    For deleting is it necessary to extend VO or EO?
    Here is my code in pfr
                                    String recordNumber = pageContext.getParameter("record");
                                    OAException mainMessage =
                                    new OAException("Are you sure you want to delete this employee"+recordNumber);
                                    OADialogPage dialogPage =
                                        new OADialogPage(OAException.WARNING, mainMessage, null, "",
                                    String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
                                    String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
                                    dialogPage.setOkButtonItemName("DeleteYesButton");
                                    dialogPage.setOkButtonToPost(true);
                                    dialogPage.setNoButtonToPost(true);
                                    dialogPage.setPostToCallingPage(true);
                                    dialogPage.setOkButtonLabel(yes);
                                    dialogPage.setNoButtonLabel(no);
                                    java.util.Hashtable formParams = new java.util.Hashtable(1);
                                    formParams.put("compElementId", recordNumber);
                                    dialogPage.setFormParameters(formParams);
                                    pageContext.redirectToDialogPage(dialogPage);
                                } else if (pageContext.getParameter("DeleteYesButton") != null) {
                                    String recordNumber = pageContext.getParameter("record");
                                    Serializable[] parameters = { recordNumber };
                                    OAApplicationModule am = pageContext.getRootApplicationModule();
                                    OAApplicationModule compElementAM = (OAApplicationModule)am.findApplicationModule("xxCompElementsAM");
                                    if(compElementAM==null) {
                                        compElementAM=(OAApplicationModule)am.createApplicationModule("xxCompElementsAM","xxmycompany.oracle.apps.per.selfservice.competency.profile.server.xxCompElementsAM");
                                    compElementAM.invokeMethod("deleteRecord", parameters);
                                    MessageToken[] tokens =
                                    { new MessageToken("compElementId", recordNumber) };
                                    OAException message =
                                    new OAException("Are you sure you want to delete this employee"+recordNumber);
                                    pageContext.putDialogMessage(message); regards,SHD
    Edited by: SHD on May 6, 2011 3:31 AM

  • How to perform series operation in SSIS

    I have scenario in which I am getting a row from XLS and in that ro I have data for multiple tables based on if one table has some data or not
    EXAMPLE :
    Search a table in database on basis of column in the xls row
    STEP #1 If TABLE A has that row then do nothing and move to next step else insert new row into TABLE A and move to next step
    STEP #2 If TABLE B has that row then do nothing and move to next step else insert new row into TABLE B and move to next step
    STEP #3 If TABLE C has that row then do nothing and move to next step else insert new row into TABLE C and move to next step
    STEP #4 If TABLE D has that row then do nothing and move to next step else insert new row into TABLE D and move to next step
    STEP #5 If TABLE E has that row then do nothing  else insert new row into TABLE E
    Currently I am trying to achieve this by using multicast and from that multicast putting inputs into 5 OLE DB DESTINATION but by doing this some time one step execute earlier then previous and integrity constrain violated so getting error
    prakash kumar jha

    I think what you need is to use a series of lookup tasks
    Inside data flow task add OLEDB source to point to source table
    Then add a lookup step to each of table based on which you want to do the row comparison. Link the nonmatch output of lookup task to a script task which will do insertion of record and fetch the generated id and then link both match and script task outputs
    to union all task which will linked to next lookup task input. This will keep on repeating for each of the lookup tasks and finally have OLEDB destination to insert records to your final table.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page
    currently I am doing this can you suggest me more
    prakash kumar jha

  • How to Perform Group By operation in OBIEE 11g

    Hi,
    I have created a report for the "Nationality count in department wise manner", since for this i need to give 'group by department' for getting correct answer...
    But in OBIEE 11g on presentation service how i need to give "Group BY" operation....for viewing correct count in nationality wise......
    Regards,
    Harry...

    Hi sai,
    U mentioned, but i couldn't clearly able to understand that.......Since to perform Group By i need to make some setting changes in content in Advanced Tab setting like that it is mentioned, but i need to perform in the following manner
    select count(nationality), nationality
    from per_all_people_f, per_all_assignment_f, hr_all_organization_units
    group by department
    Note: per_all_people_f-----------> dimension table, per_all_assignment_f--------------> fact table
    nationality from per_all_people_f and count(nationality) from per_all_assignment_f
    But department is from hr_all_organization_units--------->dim table
    I dont want to see the departments but i need to group the result in department manner that i was taking from the table hr_all_organization_units.....
    How to perform Group BY in OBIEE 11g.......
    Thanks,
    Harry.........

  • I need to sort very large Excel files and perform other operations.  How much faster would this be on a MacPro rather than my MacBook Pro i7, 2.6, 15R?

    I am a scientist and run my own business.  Money is tight.  I have some very large Excel files (~200MB) that I need to sort and perform logic operations on.  I currently use a MacBookPro (i7 core, 2.6GHz, 16GB 1600 MHz DDR3) and I am thinking about buying a multicore MacPro.  Some of the operations take half an hour to perform.  How much faster should I expect these operations to happen on a new MacPro?  Is there a significant speed advantage in the 6 core vs 4 core?  Practically speaking, what are the features I should look at and what is the speed bump I should expect if I go to 32GB or 64GB?  Related to this I am using a 32 bit version of Excel.  Is there a 64 bit spreadsheet that I can us on a Mac that has no limit on column and row size?

    Grant Bennet-Alder,
    It’s funny you mentioned using Activity Monitor.  I use it all the time to watch when a computation cycle is finished so I can avoid a crash.  I keep it up in the corner of my screen while I respond to email or work on a grant.  Typically the %CPU will hang at ~100% (sometimes even saying the application is not responding in red) but will almost always complete the cycle if I let it go for 30 minutes or so.  As long as I leave Excel alone while it is working it will not crash.  I had not thought of using the Activity Monitor as you suggested. Also I did not realize using a 32 bit application limited me to 4GB of memory for each application.  That is clearly a problem for this kind of work.  Is there any work around for this?   It seems like a 64-bit spreadsheet would help.  I would love to use the new 64 bit Numbers but the current version limits the number of rows and columns.  I tried it out on my MacBook Pro but my files don’t fit.
    The hatter,
    This may be the solution for me. I’m OK with assembling the unit you described (I’ve even etched my own boards) but feel very bad about needing to step away from Apple products.  When I started computing this was the sort of thing computers were designed to do.  Is there any native 64-bit spreadsheet that allows unlimited rows/columns, which will run on an Apple?  Excel is only 64-bit on their machines.
    Many thanks to both of you for your quick and on point answers!

  • How do set operation timeout in tomcat server?

    hi all
    suppose i have one endless loop program(jsp) that program run under tomcat server,
    so it's keep on runing in tomcat server.
    i want, after some time the server send error message like operation timeout.
    how do set operation timeout in tomcat server?
    if anybody know help me.
    my mail id [email protected]

    Well, the server.xml file has connection time outs, but that is for idle time, I think... I'm not sure what would happen in a loop... , especially if you are sending some data back to the client in each iteration. Generally you shouldn't be starting a loop that will really run forever. Maybe have some type of counter to break out if something hasn't occurred within x iterations, or create a separate thread that can sleep for x seconds and set a flag to break the loop after that time.

  • How to perform operations on table control

    hello experts,
                         will u plz tell me how to perform operations like delete and update on tablecontrol in module pool.
                                thanks in advance,

    Hey Aravind,
    In case you want to delete just from your table control and not from database table, then you can use the commands:
    clear <workarea_name>
    delete <workarea_name>
    for your selected rows.
    And for deleting from database tables also, use:
    Delete from <Database_table_name> where <where_clause>.
    clear <workarea_name>
    delete <workarea_name>
    This will delete both from the table control and database table also.
    Reward if it proved useful to you.
    Regards
    Natasha Garg

Maybe you are looking for

  • Failing all pre-requisite checks for 11.2.0.2.0 RAC on HP-UX Itanium 64

    Hi Guys, For Typical OR Advanced Grid Installation (GUI), all pre-requisites are failing on both nodes, like memory, swap, node reachability, groups, user & lot more..... But when I try to check Pre-requisite from command line, everything seems to be

  • Access to itunes on shared folder

    I moved my itunes library to the shared folder following the directions on line. When i open the other user account on my mac it says there is no folder, i click on locate and then select the shared itunes folder and it says that it is locked or you

  • Problem with internet connect?

    Hi, I have installed a Netgear wireless router, which is connected to my eMac by an ethernet cable. I can access the internet through Firefox without a problem, but when I try to check software update or get to the itunes store it says it cannot conn

  • How to Add and Remove Apps from Launchpad?

    I have noticed that I have apps missing in launchpad that I do have in my apps folder. How do I add these to launchpad. On the flip side, then how can I remove apps from launchpad that I hardly ever use?

  • How to have sticky column headers in a large list?

    I have a list in sharepoint 2013.  It was created from a Microsoft Access database and so it displays like a spreasheat type list.  It is quite large and it would be nice to make the column headers "sticky" so that when you scroll down the page/list