Keep cardinality with lookup-operator?!

Hi I am using a lookup operator to get values from a source table. The match criteria often results in multiple search results. (on purpose)
What I want to do is, to take only the first searchresult of the lookup and put it in my destination table... so I need to get rid of the other ones. I need somethink like the first() function but I did not get it working in this context.
How do I do that? Is there an operator for it? Any Ideas?
Thanks in advance...

In my case, if multiple rows are found, it is regardless which one is taken. I agree with you, that it is not a good idea in general to do that...
The value look up operator is okay I think because it generates an outer join anyway... it is just a bit more clearer in the mapping than doing a join by hand...
Okay you mentioned the deduplicator, I have a question to it, sth. thats not clear to me:
the deduplicator distincts all input columns, right? How can I achive that it destincts only one column and selects the others too at the same time?? Something like:
Name Surname Age
Peter Pan 20
Justin Prison 65
John Smith 20
and now "select distinct Age" but also get columns Name and Surname:
Result should look like:
Peter Pan 20
Justin Prison 65
Understand what I want? A distinct over all three columns would deliver all rows but I need only rows with distinct age, regardless wich one...

Similar Messages

  • KEY LOOKUP Operator using TCL

    Hi,
    I am trying to create a key lookup operator using tcl.
    OMBALTER MAPPING 'TESTMAP' ADD KEY_LOOKUP OPERATOR 'INSTITUTION_CHARACTERISTIC_DIM'\
    SET PROPERTIES (BOUND_NAME,CREATE_NO_MATCH_ROW, LOOKUP_CONDITION)VALUES
    ('INSTITUTION_CHARACTERISTIC_DIM','true','OUTGRP1.INSTITUTION_CHAR_SRCKEY
    = INGRP1.INST_CHAR_SRCKEY')
    and then adding an attribute to the INGRP
    OMBALTER MAPPING 'TESTMAP'ADD ATTRIBUTE 'LAST_ACTIVITY_DATE' OF GROUP 'INGRP1' OF OPERATOR 'INSTITUTION_CHARACTERISTIC_DIM'
    This is creating a key lookup operator by the name
    INSTITUTION_CHARACTERISTIC_DIM, and i can see the Bound Name in the
    properties window, but when i double click and open the key lookup, i
    dont see the result table under the LOOK UP tab.Because of this, the
    attributes dont get added in the OUTGRP of the key lookup.
    Am i missing some important property of a key look up?
    can some one please help me with this...
    Thanks in advance...

    Hi,
    you have to bind the lookup operator to the table:
    OMBALTER MAPPING 'MAP_LOOKUP' ADD KEY_LOOKUP OPERATOR 'MY_LOOKUP' BOUND TO TABLE '/MY_PROJECT/MY_DB/DIM_CUSTOMERS'
    OMBALTER MAPPING 'MAP_LOOKUP' MODIFY OPERATOR 'MY_LOOKUP' SET PROPERTIES (CREATE_NO_MATCH_ROW, LOOKUP_CONDITION)VALUES ('true','OUTGRP1.ID_CUSTOMER=INGRP1.ID_CUSTOMER')
    OMBALTER MAPPING 'MAP_LOOKUP' ADD ATTRIBUTE 'ID_CUSTOMER' OF GROUP 'INGRP1' OF OPERATOR 'MY_LOOKUP'Regards,
    Carsten.

  • What is the best way to keep up with "RED" agents?

    TES 6.03.265
    Hello all,
    I'm fairly new to Tidal, and have a question mainly for those managing a hundred or more agents.
    We have several hundred agents, and it is difficult for the operators to track & follow-up on all of the "RED" agents.
    In the GUI, one cannot sort by "red or green"....and the other view of agents -  the "master" view of connections -  does not distinguish between disabled agents and broken (red) agents...it shows them all as "grey".
    We REALLY need for our operations team to worry about RED agents....not so much the disabled agents (which are grey in both views).
    A job that runs at a regular interval, and emails a list of any "RED" agents that it finds....would probably work just fine for us, if nothing better was available.
    But I can't figure out the query....the closest I can get is to report on all inactive agents with "null" time zones....but I have seen where agents are green with no timezone (the master's agent) and red WITH a timezone (an aix agent)....so that is not 100% reliable.
    I guess my question boils down to this:  how does that agent status dot turn "RED"?
    Is that value extracted from a table, or does something trigger it to go red?
    What does everyone else who manages hundreds of agents do to keep up with all the RED ones?
    Thanks, - Steve

    Thanks Tracy,
    Guess I need to drill down a bit deeper.
    My goal is to give the operators the ability to take a list of "RED" jobs - that they could generate by running a "report" or running a "report job", or by grouping them together in the client so they could copy/paste only the rows with RED dots....anything to generate a list that they could save as a txt file or attach to an email to another team, things like that. Sometimes we have a lot of broken agents to keep up with.
    I've had mixed results with the alerts/events, anyway, in terms of general monitoring...sometimes we have a lot of agents that go from green to red back to green before the operator could even isolate the agent in question....a lot of false alarms...tweaking the timeout settings didn't help much, and a value too big seems to hang up the agent processes...not a good thing.
    Thanks again for the response!
    -Steve

  • HT1338 Update bundle just released for Aperture 3.4.2, Safari 6.0.2, and iPhoto 9.4.2 will not install.  Keep getting error "The operation couldn't be completed. (NSURLErrorDomain error -3001.)(102)"  Any one else having this issue?  Please help.

    Update bundle just released for Aperture 3.4.2, Safari 6.0.2, and iPhoto 9.4.2 will not install.  Keep getting error "The operation couldn't be completed. (NSURLErrorDomain error -3001.)(102)"  Any one else having this issue?  Please help.

    Hi there!
    Yes, same problem too; I've already sent an email to apple support and just received a very vague and unpractical response with "call apple support in your country" as main advice. I've obviously emailed back stating that I need a clearer response and I don not have any intention to spend money calling for support when updates is a free tool. I do also believe this is a probem generated on Apple's end, I just wish they learned to say "sorry, it's us;  working on it!"
    Message was edited by: MacLuc

  • Macbook pro early 2011 keep crashing with no reason.

    My macbook pro early2011 keep crashing with no reason. What can I do? Is this a sign of virus? It just started a few days ago.

    Un-install Avast and CleanMyMac2.
    Avast Un-install
    You do not need to use cleaning programs. They can destroy your computer operation as they may already have done.
    CleanMyMac - Uninstall
    CleanMyMac2 Un-install
    After un-installing, run this program to make sure you got all the pieces.
    EasyFind – Spotlight Replacement

  • Backup keeps failing with error 0x07EF9

    Started an initial backup (manually) over a weekend then stopped it before it had completed. Selected the option to start next backup at where it was stopped. Since then, the backup job keeps failing with the error
    An unexpected error occurred during the operation. (0x07EF9)
    Any ideas how to fix this. I have cancelled the schedule then rescheduled it but still the same result.
    I have tried manually running it as well but it still fails.
    John

    Hi John,
    Thanks for posting here!
    It looks like something is blocking Azure backup. Could be an Anti Virus software on the computer, which is locking the files the Azure Backup is trying to access while backup is initiated. OR if there is a 3rd party backup software which is running at the
    same time while azure backup is scheduled to backup files and folders. As a result the backup is failing with no luck.
    You might want to start looking at the logs and see if you find anything which is causing this problem. This might help narrow down the issue.
    Regards,
    Sadiqh

  • Save site as template with lookup columns

    Hi,
    I created site template from my subsite where I use custom list with lookup columns and parent child list relationship, but If i create new subsite with the custom site template I get more errors:
    System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, StackTrace:   
     at Microsoft.SharePoint.SPWeb.GetList(String strUrl)    
     at Microsoft.SharePoint.SPListInstanceElement.EnsureListExists(SPWeb web, Boolean bCreateFromSTP, Boolean bUserFeature)    
    Failed to instantiate list 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\Features\HierarchyTasksList\hierarchy'
    Application error when access /_layouts/15/newsbweb.aspx, Error=<nativehr>0x8107058a</nativehr><nativestack></nativestack>Unable to perform the operation. Please try again.  
     at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate,
    Int32& plWebTemplateId)    
     at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32&
    plWebTemplateId)
    Unknown SPRequest error occurred. More information: 0x80070002
    Can anyone help me, how can I create subsite what I can use more times?
    Thanks,
    Mykie

    Hi Tailorworld
    please try the power shell script because you are facing problumn with default content type feature
    Run the SharePoint 2010 Management Shell as Administrator.  
    Run the following command to disable the default content type feature:
    Disable-SPFeature –Identity ctypes –url http://SiteCollection
    Then enable the content type feature:
    Enable-SPFeature –Identity ctypes –url http://SiteCollection
    If you look at your content types, they should now all be there.  Try saving the subsite as a template again, it should succeed.
    --------OR----
    You can try Check the link
    http://sharepoint.stackexchange.com/questions/32076/unhandled-exception-when-saving-a-site-as-a-template
    https://support.office.com/en-ie/article/Save-a-SharePoint-site-as-a-template-5a4eb024-d1fa-4681-a4ac-e6bd1e3209ba
    Please mark the Answer and Vote me if you think that it will help you to resolved your issue

  • Blazeds client can't keep up with realtime updates = discard?

    Hi all,
    I'm doing an application that provides realtime data to users via blazeds, the flex client uses a long pooling mechanism to get stream of data from the server. The question that my team has is, if multiple clients connected to a topic and one of the clients couldn't keep up with the rate of data produced, will the message be kept in blazeds until that client can retrieve it? If it is, then this will create a bottle neck for that particular client and will burden the server as more and more messages have to be kept in the server. Is there anyway to set an expiry time on a message and discard those messages?
    Thanks in advance.
    - Andrew

    I am also facing tghe same problem today. I cannot believe I
    was unable to find a single help on this. i've been trying many of
    the options but things are getting worse and worse. Now I can't
    publish from Dreamweaver and Contribute also!! Why Adobe doesn't
    support the ones who upgrade their software?
    quote:
    Originally posted by:
    akaijen07
    I'll first start by saying that my client has been happily
    editing and publishing files since February. Recently, she was on
    vacation so I made a couple of minor updates using Dreamweaver. Now
    she's back, and is no longer able to publish. I'm not sure it's
    related. The error message is:
    "Contribute encountered a network or file system error.
    Please try the operation again, and contact the administrator if
    the error continues to occur."
    The problem started yesterday, but briefly corrected itself.
    Now she can't publish at all. I have asked her to go step-by-step
    through the process of editing files and I can see the following
    activity on the server:
    -- She opens the file (index.html) and the following file
    appears on the server: index.html.LCK
    -- She hits "publish" and the following file appears on the
    server: index.html.new
    -- Then the error message appears for her.
    When she closes the page, the index.html.LCK page disappears,
    but the index.html.new sticks around.
    Interestingly, the .new file is 0k.
    We turned on I/O logging, but all it does is confirm that the
    PUT isn't happening. However, there are lots of complaints about
    missing files on the local drive. They run Active Directory on
    their network, and I'm curious if there could be some kind of
    mapping problem with their user settings directories, and
    Contribute is getting hung up when it tries to PUT the changes.
    I'd appreciate any help troubleshooting this issue or any
    tips before I call Adobe. :)
    Thanks!

  • What Service Pack and where to keep up with this?

    How can i tell if i have the latest bug fixes in photoshop cs4. I have been using the full version now for about 6 weeks and its hopeless. I can't do anything without it crashing, oh i can open it
    Thank god i have CS3 .. it works fine doing all the same work.
    If adobe ppls read this .... Can i ask what the you are doing? - i can't believe i paid lots of $$ for this .. Photoshop CS4 is very very flakey. in the last 24 hours i have had 7 crashes from CS4 .. not one from CS3 ....  Total crashes using CS4 over two machines would exceed 50-60 crashes now, it seems it cannot even make an action without crashing 5 times.
    Can i have a refund or can you appease me and tell me i don't have the correct service pack. Someone please help i actually need to get work done .. not develop software for adobe and fix there problems by been on the phone to them 24/7. I would even be keen to hear I'm not alone and this is a flop.
    I can't tell you enough how dissapointed i am with phtoshop cs4 ..  dreamweaver cs4 is fine so far.

    Thanks Tracy,
    Guess I need to drill down a bit deeper.
    My goal is to give the operators the ability to take a list of "RED" jobs - that they could generate by running a "report" or running a "report job", or by grouping them together in the client so they could copy/paste only the rows with RED dots....anything to generate a list that they could save as a txt file or attach to an email to another team, things like that. Sometimes we have a lot of broken agents to keep up with.
    I've had mixed results with the alerts/events, anyway, in terms of general monitoring...sometimes we have a lot of agents that go from green to red back to green before the operator could even isolate the agent in question....a lot of false alarms...tweaking the timeout settings didn't help much, and a value too big seems to hang up the agent processes...not a good thing.
    Thanks again for the response!
    -Steve

  • Firefox prompted me to download an incompatible update that its website claims is compatible with my operating system (Mac OS 10.4.11). Why prompt an incompatible download AND claim it is compatible?

    I have an iMac and use OS 10.4.11 & Firefox 3.6.19. Firefox prompted me to download an update (to 7.0.1). I looked up the system requirements on your website, and it stated the update is compatible with OS 10.4.11. But after I downloaded and installed the update, it failed to work on grounds of incompatibility. Hence 2 questions: (1) Why did Firefox prompt me to download an incompatible update? (2) Why did your website claim the update is compatible with my operating system when it is not?

    Sorry, it's because Firefox 4+ are only compiled for the Intel processors.
    There is a separate project for PPC Macs called Ten Four Fox. You might give it a spin when you're tired of 3.6.
    http://www.floodgap.com/software/tenfourfox/

  • How do I access "Firefox is NOT compatible with this application. For best performance, please use Internet Explorer 5.0 and above...." web sites; when I try to download any alternate browser, then a warning that alternate is "imcompatable with your opera

    How do I access websites that warn: "Firefox is NOT compatible with this application. For best performance, please use Internet Explorer 5.0 and above...."? When I try to download any alternate browser, all I get is another warning that the alternate is "not compatible with your operating system." Is Firefox preventing this? The site listed below is a job application site. I've had this same problem with other job application sites also.
    == URL of affected sites ==
    https://storefront.kenexa.com/lithia/cc/Home.ss

    There should be a User Agent Switcher menu item under Tools, which gives you the browser names you can impersonate.
    The menu item name changes to the browser UA you are presently using.
    There is also a User Agent Switcher button, you can add it using View -> Toolbars -> Customize, and dragging the button to your toolbar.
    See http://chrispederick.com/work/user-agent-switcher/features/ and http://chrispederick.com/work/user-agent-switcher/help/
    You can just start trying IE versions (or the versions it says on the site) until it lets you in.

  • How to use tree tables with CRUD operation for begineers ADF 11g

    This is Friday night call for help.
    This is only few sample ressources on the web for tree table and only one with CRUD operation.
    I used this one http://jobinesh.blogspot.com/2010/05/crud-operations-on-tree-table.html because this is the only one that address CRUD.
    And it is shaky. Deletion works fine but insertion not very well. This is working using custom code provided below.
    Depending if the user selection in the tree, the code insert from the master node to the children node.
    Any other options because it is not working well.
    Also where Oracle describes how to use the row, rowset, itorator API? This is really hard to understand like almost if we should not use it.
    then if not how can I insert in tree with two nodes and insert in the parent or children depending the users selection.
    Lately I 'been posting questions on this forum with no response. This hurts. I understand developers cannot spend their time on this but People from Oracle, please help. We pay licenses...
    public void createChildren(RowIterator ri, Key selectedNodeKey) {
    final String deptViewDefName = "model.DepartmentsView";
    final String empViewDefName = "model.EmployeesView";
    if (ri != null && selectedNodeKey != null) {
    Row last = ri.last();
    Key lastRowKey = last.getKey();
    // if the select row is not the last row in the row iterator...
    Row[] found = ri.findByKey(selectedNodeKey, 1);
    if (found != null && found.length == 1) {
    Row foundRow = found[0];
    String nodeDefname =
    foundRow.getStructureDef().getDefFullName();
    if (nodeDefname.equals(deptViewDefName)) {
    RowSet parents =
    (RowSet)foundRow.getAttribute("EmployeesView");
    Row childrow = parents.createRow();
    parents.insertRow(childrow);
    } else {
    RowSet parents =
    (RowSet)foundRow.getAttribute("EmployeesView");
    Row childrow = parents.createRow();
    childrow.setAttribute("DepartmentId",
    foundRow.getAttribute("DepartmentId"));
    parents.insertRow(childrow);
    } else {
    System.out.println("Node not Found for " + selectedNodeKey);
    }

    I am looking for a sample that describe how to design a jsf page with a tree table.
    So you have Department and employees. In the tree first comes Department and if you click the node you see the employees assigned to this department.
    I need to be able to insert a new department or a new employee from the tree table by clicking on a insert button in the panel collection toolbar depending on user selection in the tree.
    I got part of it working but not good enough.
    By problem is the get insertion working
    I have a createChildren method in my AM implementation that get in input a RowIterator and selected node key.
    To goal is to create new records depending of the user selection and the input parameters get populated by the binding like this:
    #{backing_treeSampleBean.selectedNodeRowIterator} #{backing_TreeSampleBean.selectedNodeRowkey} via method binding with parameters.
    Is it the right approach?
    First to be able to insert a parent record, I select nothing in the tree and ri and selectedNodeKey comes to null
    we run this code
    ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
    //ViewObjectImpl vo = getDepartmentsView1();
    Row foundRow = vo.first();
    Row childrow = vo.createRow();
    vo.insertRow(childrow);
    A new blank entry appears in the parent node and we enter a value.
    The the problem starts when we want to add a child to this parent.
    We select the created parent and press the insert button, this code get executed
    if (nodeDefname.equals(deptViewDefName))
    //list of the children of the parent and create an new row
    RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
    Row childrow = childRows.createRow();
    childRows.insertRow(childrow);
    But the new entry does not appear, it is almost like it would be created for a different parent because this is a mandatory field that is not feel in yet and the interface complaints of a missing value. It is created somewhere just not a the right place... This is my guess.
    Do you see something wrong with the code?
    The full code og my create children method is there below
    I am using jdeveloper 11.1.1.3.0 any issues with tree table to know about with this version?
    Thanks for your help
    public void createChildren(RowIterator ri, Key selectedNodeKey) {
    final String deptViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidaySchedExceptionsView";
    final String empViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidayExceptionDatesView";
    if (ri != null && selectedNodeKey != null) {
    // last row
    Row last = ri.last();
    Key lastRowKey = last.getKey();
    // if the select row is not the last row in the row iterator...
    Row[] found = ri.findByKey(selectedNodeKey, 1);
    if (found != null && found.length == 1) {
    // foundRow is the row selected
    Row foundRow = found[0];
    // The row selected can be the parent node or the child node
    String nodeDefname = foundRow.getStructureDef().getDefFullName();
    // if parent row
    if (nodeDefname.equals(deptViewDefName))
    //list of the children of the parent and create an new row
    //works but we try to resolve the creation of a parent
    RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
    Row childrow = childRows.createRow();
    //childrow.setAttribute("HolidayDate", new java.util.Date().getDate());
    System.out.println("insert child row from master");
    childRows.insertRow(childrow);
    } else
    //RowSet ParentRow = (RowSet)foundRow.getAttribute("SchHolidaySchedExceptionsView");
    //RowSet childRows = (RowSet)ParentRow.first().getAttribute("SchHolidayExceptionDatesView");
    Row childrow = ri.createRow();
    System.out.println("insert child row from child ");
    } else {
    System.out.println("Node not Found for " + selectedNodeKey);
    } else {
    System.out.println(" param null try creating for first row : " +
    ri + " * " + selectedNodeKey);
    ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
    Row foundRow = vo.first();
    Row childrow = vo.createRow();
    vo.insertRow(childrow);
    }

  • Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Doesn't do that for me. Try resetting the phone

  • My MacBook Pro version 10.7.5 4GB (keeps crashing with the error message 'Your MAC OSX start up disk has no more space available for application memory' - what do i do

    My MacBook Pro (version 10.7.5 4GB)keeps crashing with the error message 'Your MAC OSX start up disk has no more space available for application memory' - what do i do.  I keep force quitting the applications and turning the computer off but it happens again after a while

    Hhow much goal and free hard disk space is available? Sounds like you need to move some things off of that hard drive.

  • Problem with multiple sub-panels through Enum case structure: "The VI is not in a state compatible with this operation"

    Hello,
    I am using LabVIEW 8.0 and I am attempting to create a sub-panel that displays the front panel of a sub-vi depending on the selection made by the user via the Enum dropdown menu.  I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.  However, I receive an error "The VI is not in a state compatible with this operation."  I was able to successfully make a single sub-vi work within a sub-panel using a true/false case structure and the exact same coding.  However, now that I am using an Enum box wired to a case structure, I receive this error.  I have attached my block diagram as well.  Could anyone assist me as to where it is that I am going wrong?
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    enum subpanels.JPG ‏22 KB

    torm wrote:
    I have attached my block diagram as well
    I only see a picture. Can you attach the VI instead? At what point do you close the reference?
    torm wrote:
    I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.
    Well, if the code is identical except for the source, only the source should be inside the case, right? Why duplicate code?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for