Combining results two LDAP queries or/and LDAP SQL

Hi,
Is it possible to combine two ldap query results? Just
something like the join function in SQL?
And another question I have if it is possible to combine an
LDAP an SQL query> (just like you can use JOIN to query in two
tables, but then use something to do the same with ldap and sql)
Is there anybody who knows if this is possible?
Regards

Can you provide an example of your code and the desired
result, please? Thanks.
Chris

Similar Messages

  • Combining result of three queries to form a single table

    Hi ..
    I have three select queries. Each of them returns a single column. I want the result of these queries into a single table..
    I tried this way..
    select * from
    (first select),(second select),(third select);
    this gives duplicate rows... Any held would be appreciated

    Hi,
    Welcome to the forum!
    1005370 wrote:
    Hi ..
    I have three select queries. Each of them returns a single column. I want the result of these queries into a single table..Remember that the people who want to help you don't know as much about your tales and your application as you do; in fact, they might not know anything at all about them.
    You might ask a friend: "How can I get to that restaurant we went to last week?", and expect to get a good answer, because your friend knows where you are starting from, and knows, from that brief description, where you want to go. But would you expect a stranger on the internet to answer the exact same question? Of course not! A stranger on the internet wouldn't know where you're starting from, or where you want to go. How could a stranger give you directions with only that information?
    SQL code is like directions. A SQL query can tell you how to get a certain result set from a certain sample data set. No matter how well someone knows SQL, they need to know something about the data in a problem and the results needed fom that data before they can start writing a query to get those results from that data.
    Whenever you have a question, you need to post a little sample data (CREATE TABLE and INSERT statements) for all tables involved, and the results you want from that data in this case, the contents of the new table).
    All this and more is in the forum FAQ {message:id=9360002}. Take a few minutes now to read that page. It can realy help you get better results faster on this forum.
    I tried this way..
    select * from
    (first select),(second select),(third select);
    this gives duplicate rows... Any held would be appreciatedIf duplicate rows are the only problem, then just add DISTNCT t the main SELECT clause:
    select DISTINCT  *
    from    (first select)
    ,     (second select)
    ,     (third select)
    ;However, I'll bet duplicate rows aren't really the problem. It's much more likely that the problem is duplicate values in just 1 column.
    Again, how to get the output you want from your data depends on your data and the output you want. Post CREATE TABLE and INSERT statements for some sample data, and the complete results you want from that data. Explain how you get those results from that data.

  • Display combined results of 2 queries in 1 BEx Web Report.

    Dear Experts
    I tried to achieve this in just 1 BEx Query and found it difficult.
    Then I ended up creating 2 BEx Queries getting partial result and then amalgamating both in WAD. Still I think there should be a way to achieve what I need from just 1 BEx Query. Below is what I am trying to achieve:
    Query 1:
    Overall Result is the Total Number of Invoices restricted by 2 values.
    Credit Invoices is the Total Number of Invoices restricted by 1 value.
    % of Credits over Total Invoices = Credit Invoices / Overall Result
    Query 2:
    I have created a Condition on 'Reason Codes' to pick on the Top N (3 in this case) to display the values in %.
    All the CHARs and KEYFs are in the Rows Column only for both the Queries at the moment. When I am trying to amalgamate both into 1 BEx Query, the Query is throwing up errors and Execution is falling over. Another issue here is, there are 3 Reason Codes in the Third Place when I checked in ListCube and don't know what needs to be done. I am planning to discuss this with the Business Users if this should be extended to Top 5 instead of Top 3. Any ideas..!
    Users want to see the final report only in Web Analyzer as they do currently (so BEx Analyzer & Workbook are out of question). But I will be using Web Templates eventually to bring together 8 (it will be 9 if this report can't be done in 1 BEx Query) BEx Reports.
    How can I achieve this in just 1 BEx Query?
    Thanks for your time in advance.
    Kind regards,
    Chandu

    Hi Suman
    Thanks for your reply. When I am having both the parts of Query 1 & Query 2, the BEx Report is falling over when executed pointing to Condition.
    The second Query will pick the Top 3 Reason Codes for a particular Customer and then the individual Document Count for these 3 Reason Codes is divided by the Overall Result (Document Count) to give the individual Result across each row as %.
    Hope this is clear now. I tried Cell Definitions but didn't find it useful in this scenario, or I might be missing something. Can you please explain me in detail of how this can be done in 1 BEx Query using Cell Def?
    Please let me know if this can be achieved in Single BEx Query.
    Thanks,
    Chandu

  • Combining result states from UI (VC) and CO "Set Configuration" tab

    Dear collegues,
    it seems that one can either use result states defined in Visual Composer end points or defined on CO level in "Set configuration" tab but cannot combine them within an GP action.
    Has anybody of you tried to implement it together?
    The reason is that I would like to strictly decouple UI and process layer - to be able to run UIs without GP process. So I don't want to have eg. "Terminate process" button in VC UI, but still want to provide this termination on processl level.
    Thank you for any hint
    Best regards
    Antonin

    Dear collegues,
    it seems that one can either use result states defined in Visual Composer end points or defined on CO level in "Set configuration" tab but cannot combine them within an GP action.
    Has anybody of you tried to implement it together?
    The reason is that I would like to strictly decouple UI and process layer - to be able to run UIs without GP process. So I don't want to have eg. "Terminate process" button in VC UI, but still want to provide this termination on processl level.
    Thank you for any hint
    Best regards
    Antonin

  • Reg: An ABAP program has to run two SAP Queries via BG to Appl. server

    Hi,
    I have a requirement to develop an ABAP program to be able to run the two Z Queries respectively and be able to download to the file to the application server via background.
        The selection is based on the Query Name, Usergroup and plant.How do we capture the data from the Queries and send it to the application server? Submit Statement is not working. There is a FM: RSAQ_REPORT_NAME from which we get the Query program name when Qery name and User group is given as an input.Through the above FM I have got the Query program name and used Submit statement with List_options to capture the Internal table data of that Query. As the Query program is dynamically generated and not available in TSTC, the Submit is not Working. Kindly suggest me is there any other approach to do it.
      Please provide me the solution.
    Thanks in advance.

    Please refer to thread [Authorization Error|WDA adobe error] where various solution to the problem specified by you are described.
    Regards
    Rohit Chowdhary
    Edited by: Rohit Chowdhary on Apr 7, 2009 9:41 PM

  • How to send two seperate queries from OBI and combine the results

    Hello all,
    I am trying to understand how to combine results of two queries in OBI. Here is the scenario.
    There are three tables, User, Security Roles joined though a Bridge Table Role_User
    Each user has multiple roles, The roles to which a user has access is identified by a flag column with value T or else it will have value F.
    I am trying to create an analysis as below
    User Id
    Roles with Access
    Roles without Access
    So column 2 will show all the roles with flag T for particular user and column 2 will show all the roles with flag F for same user.
    I tried creating two Fact tables and using Filter condition on the flag value, but in analysis I could only use one at a time. When I add both the columns , I get error as None of the fact table are compatible with the query request. I do have hierarchies created for the dimensions and assigned them in the content level for all dims and facts.
    Any hint will be highly appreciated.
    Thanks  

    Got the solution. I am posting it here in case anyone face similar issue.
    I added this SQL code in the advanced tab:
    Select A.saw_0 saw_0, A.saw_1 saw_1, B.saw_1 saw_2
    FROM( Select Col1 saw_0,Col2 saw_1 FROM Table1) A LEFT OUTER JOIN
    (Select Col1 saw_0,Col2 saw_1 FROM Table2) B
    on A.saw_0=B.saw_0
    I created to Logical Facts using same source with two different filter conditions and used them with sub-query as above
    Ref: OBIEE Interviews: Reports

  • Merging two LDAP directories into one clean 10.4 server.

    What I have now is two different OD masters. One is a 10.3.9 server and the other is a 10.4.9 server. What I want to do is combine the two Open Directories into one on a brand new Xserve 10.4.9 install, and make that my only master with several replicas.
    I'm trying to do as much research as possible before attempting this feat. I haven't been able to find much on here via searching. I did however, find this link (http://www.afp548.com/article.php?story=20050615173039158&query=migrate), which should be quite helpful, but I was wondering if anyone on here had anymore input.
    Thanks in advance.

    Hi Celia
    I think you could achieve this using slapcat with a bit of ldapadd/ldapmodify? Manual pages should tell you more?
    Not done it myself with 10.5 but I don't see why not? Export desired information as LDIF file(s). You could do it for for both LDAP Servers and then bring them in. They should just add to each other?
    Worth a try?
    Tony

  • How to combine  two user prompts into 1 single prompt from two Webi Queries

    Hi All,
    I developed a single webi report from two different queries on top of 2 BW OLAP universe .
    Here I have one user input prompt for each query so I want to combine them into one single user input promt which  should pass the user input value to both the Webi queries feeding data to the  single webi report.
    I found that the webi doc has auto checked merge dimensions enabled but it is not providing combined resluts from both the queries .
    Any inputs are greatlt appreciated.
    Thanks

    Stratos
    Firstly ,I appreciate your responses for my two questions.
    Both the prompts I am using are from the masterdata and they are similar.data types.I think the transactional data is not available in BW for one of the prompt ,hence I am not getting consistent data.
    Anyway will do further investigation in finding similarities and let you know.
    Thanks a lot

  • One Portal Two LDAP

    Hello,
    we have the following question: We have a server with Portal 7.0
    Can i configured the authentication against LDAP? The answer is YES, but,
    can i to do this against 2 LDAP? The answer is YES
    BUT... what happen if one LDAP is in my Intranet and other is in my DMZ????
    Someone test something like that??
    Please give me any advice and, it is possible, the steps to follow
    Many Thanks
    Gaby

    Hi Gabriel,
    this should be possible, the biggest problem imo is to make sure that internal and external User IDs are not mixed up, as this can relly become a nightmare in some scenarios, although it is possible to create the same user in two LDAPs and connect them both to the portal. Another point to consider is, whether you want internal users to authenticate from the intranet only or if you want them to be able to logon from the internet, too. In a "default" configuration with two LDAPs anyone can logon from anywhere, so you would have to manipulate the logonstacks, maybe by defining your own login module which checks from which LDAP a user comes and checking the client IP ranges from your intranet or something like that.
    Also, it is possible to put the portal server into the DMZ , but finding all the ports to open to your LAN and all the servers communicating with the portal box in any way can also turn out to be nightmare, and I know what I am speaking of here
    This link to help.sap.com might help you in configuring two LDA Data sources:
    http://help.sap.com/saphelp_nw04s/helpdata/en/4e/4d0d40c04af72ee10000000a1550b0/content.htm
    Cheers,
    Jochen
    Message was edited by:
            Jochen Spieth

  • I have two separate itune accounts under two different email accounts and would like to combine them under one account.  Is this possible and if so, how do I do it?

    I have two separate itune accounts under two different email accounts and would like to combine them under one account.  Is this possible and if so, how do I do it?

    If you go to Settings > iTunes & AppStore , you can sign out from your account, and sign in with the one you've used to purchase apps.This will not remove any apps you already have on it.
    Then you can go to AppStore and download apps you've purchased (either via "Purchased" button in "Updates", or simply search for them and download them.
    That way you can have multiple accounts' apps on your iPad. When updating, you will be prompted for the credentials for account you've purchased given App with.

  • We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    Hello Halfback71,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/ht5622
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    Best of luck,
    Mario

  • HT1473 My girlfriend and I both have iTunes account with our own music libraries and we want to combine our two libraries into one icloude accounts so can both then access our one shared libary at anytime in the cloud.  How do we do this?

    My girlfriend and I both have iTunes account with our own music libraries and we want to combine our two libraries into one icloude accounts so can both then access our one shared libary at anytime in the cloud.  How do we do this?

    No it is not possible.  Content purchased from the iTunes Store is permanently tied to the account from which it was originally purchased, and Apple does not provide a way to change it.

  • I opened an itunes account then forgot my password. I opened a new account now I would like to combine my two accounts into one but I still can't remember my password and now I have a new email account. Help!

    I opened an itunes account then forgot my password. I opened a new account now I would like to combine my two accounts into one but I still can't remember my password and now I have a new email account. Help!

    You can't combine accounts but help here Apple ID FAQ's for resetting your Apple ID password.

  • HT204053 i have two apple id's and id like to combine them to one of the accounts in order to not lose contacts. how do i do that? help...

    i have two apple id's and id like to combine them to one of the accounts in order to not lose contacts. how do i do that? help...

    It is not possible to merge AppleID accounts...once established they stay independent.

  • How to create report with two independent queries and templates?

    Hi,
    I have a requirement where I have to use two queries in Data Template. Now, these queries are unrelated and I need to display data from these two queries in my report. Can anyone let me know how to do this?

    Hi Thanks alot...It works.
    Is it possible to create two independent SQL queries too and display the o/p from both queris in report?
    Thanks alot in advance.

Maybe you are looking for