Which join  to use in situation below?

Hi,
I have 2 tables with structures as below
table :- Machine
(machinename char(5),
machineid char(6),
starttime date ,
endtime date,
quantity)
table :- shutdown
machineid char(6),
shutdowntime date,
shutdownmins char(5)
What i want to do is change the machine table start and endtimes according to shutdowns in shutdown table.
Basically i will be resulting in table having structures as machine table just having difference in start time and end time according to shutdowns.
Means i will have select query selecting fields only from machine table but shutdown table will only be used for time change calculations.
I am bit confused here which join to use or have any other better way to deal with this problem.
I will need answer in only select query.
Experts help me !!!
Thanks,
Mahesh

Hi, Mahesh,
It sounds like you want an inner join, but the question is rather vague.
Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using.
The CHAR datatype is nothing but trouble. Use VARCHAR2 instead.

Similar Messages

  • Which join used in report?

    Hi,
    Sometimes when adding a field from a folder while building a report, a message is displayed to choose which join to use for that folder. Is there any way to know which join was used in an existing report?
    Thanks.
    Leah

    Hi Tamir,
    I just went through the sql generated. It is not clear - let me explain.
    When I wanted to rebuild the report, I added fields from 3 different folders. When it came to the fourth folder (based on a view), I had to choose which join to use from four or five different joins.
    I saw two possibilities that made sense to me. I first chose one join and got an error message (which I don't remember) and then chose the other which seemed fine.
    In the sql, I see a join of that view with both of those folders:
    (AI.INVOICE_ID = O462241.INVOICE_ID) AND
    (O462238.INVOICE_ID = O462241.INVOICE_ID)
    O462241 is the view for payment_schedule and invoice tables
    O462238 is a view from the invoice table
    AI.INVOICE_ID is from a custom sql folder
    The reason that this is important is because the original report was taking way too long to run. I rebuilt the report in a test environment and chose a join and the report ran quickly. Now I don't remember which join I chose. I know, I know, I should have written it down...
    Thanks.
    Leah

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • I run a mac air on a single user account but multiple people using it, which is ok for the situation. All have their accounts in the apple mail app. what is missing for me is a separate password to access the mail account. otherwise anyone can see anyones

    I run a mac air on a single user account but multiple people using it, which is ok for the situation. All have their accounts in the apple mail app. what is missing for me is a separate password to access the mail account. otherwise anyone can see anyones
    Any clue, how i can add a mail account to apple mail app, but with separate password / pin to open it.
    Years ago there was a program called mail switcher which added this functionality, but thats gone.
    cheers
    Tom

    They would have to be logged in as separate users in order not to see your account in Mail. Whatever accounts put in Mail under your account will show up. All mail accounts usually have there own user and password. The only thing you can do is to remove the password from Keychain and take the account offline so you don't keep getting prompts for passwords each time it checks for mail.
    Not a great solution.
    Best way is to give the other user their own user account with their own mail and enable fast user swithcing to log between the different users if all access the computer frequently.

  • Extended vs joined network - which should I use

    I have a Time Capsule connected to my iMac and in the living room I have an airport express that I stream music to. Which should I use. Extended or joined netowrk. I find that if it is extended my MacBook Air, iPad and iPhone run a lot slower than if it is a joined network. If it is an extended network all my portable devices are sitting on the Airport Express. If it is a joined network they are sitting on the time capsule where I get the better performance.
    In terms of the streaming of my music though it doesn't matter whether it's joined or extended.

    I have a Time Capsule connected to my iMac and in the living room I have an airport express that I stream music to. Which should I use. Extended or joined netowrk.
    For the purpose of streaming only, you will want to configure the AirPort Express to "join" the wireless network provided by the Time Capsule. The Express will, in turn, perform simply as another wireless client on the network and not introduce the bandwidth overhead of an extended network.
    In terms of the streaming of my music though it doesn't matter whether it's joined or extended.
    That is correct.

  • I m not able to connect for the wifi  which i have used earlier ,i m getting an error as unable to join the network how to resolve this please help me

    i m not able to connect for the wifi  which i have used earlier ,i m getting an error as unable to join the network how to resolve this please help me

    We were able to log in this morning and all is working. You should be able to log in at any point today. Please let us know if you are having any other difficulties.

  • Which license to use ?

    When installing 11G XE beta on Windows following license is displayed:
    >
    Oracle Technology Network Early Adopter License Terms
    Export Controls on the Programs
    Selecting the "Accept License Agreement" button is a confirmation of your agreement that you comply, now and during the trial term, with each of the following statements:
    -You are not a citizen, national, or resident of, and are not under control of, the government of Cuba, Iran, Sudan, North Korea, Syria, nor any country subject to United States trade sanctions.
    -You will not download, provide, make available or otherwise export or re-export the Programs, directly or indirectly, to the above mentioned countries nor to citizens, nationals or residents of those countries, wherever located.
    -You are not listed on the United States Department of Treasury lists of Specially Designated Nationals and Blocked Persons, Specially Designated Terrorists, and Specially Designated Narcotic Traffickers, nor are you listed on the United States Department of Commerce Table of Denial Orders.
    You will not download or otherwise export or re-export the Programs, directly or indirectly, to persons on the above mentioned lists.
    You will not use the Programs for, and will not allow the Programs to be used for, any purposes prohibited by United States law, including, without limitation, for the development, design, manufacture or production of nuclear, chemical or biological weapons of mass destruction.
    EXPORT RESTRICTIONS
    You agree that U.S. export control laws and other applicable export and import laws govern your use of the programs, including technical data; additional information can be found on Oracle®'s Global Trade Compliance web site (http://www.oracle.com/products/export).
    You agree that neither the programs nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation.
    Oracle Employees: Under no circumstances are Oracle Employees authorized to download software for the purpose of distributing it to customers. Oracle products are available to employees for internal use or demonstration purposes only. In keeping with Oracle's trade compliance obligations under U.S. and applicable multilateral law, failure to comply with this policy could result in disciplinary action up to and including termination.
    Note: You are bound by the Oracle Technology Network ("OTN") License Agreement terms. The OTN License Agreement terms also apply to all updates you receive under your Technology Track subscription.
    The OTN License Agreement terms below supercede any shrinkwrap license on the OTN Technology Track software CDs and previous OTN License terms (including the Oracle Program License as modified by the OTN Program Use Certificate).
    Oracle Technology Network Development License Agreement
    "We," "us," and "our" refers to Oracle America, Inc., for and on behalf of itself and its subsidiaries and affiliates under common control. "You" and "your" refers to the individual or entity that wishes to use the programs from Oracle. "Programs" refers to the pre-production release version of the Oracle software product you wish to download and use and program documentation, if any. "License" refers to your right to use the programs under the terms of this agreement. "Confidential Information" includes (a) the Programs and all information related thereto, including but not limited to features, requirements, designs, specifications and documentation; and (b) any other information disclosed by Oracle hereunder and marked or identified as confidential at the time of disclosure. Confidential Information does not include information which (a) is or becomes a part of the public domain through no act or omission of you; or (b) was in your lawful possession prior to the disclosure and had not been obtained by you either directly or indirectly from us; or (c) is lawfully disclosed to you by a third party without restriction on disclosure; or (d) is independently developed by you. This agreement is governed by the substantive and procedural laws of California. You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco, San Mateo, or Santa Clara counties in California in any dispute arising out of or relating to this agreement.
    We are willing to license the programs to you only upon the condition that you accept all of the terms contained in this agreement. Read the terms carefully and select the "Accept" button at the bottom of the page to confirm your acceptance. If you are not willing to be bound by these terms, select the "Do Not Accept" button and the registration process will not continue.
    License Rights
    We grant you a nonexclusive, nontransferable limited license to use the programs only for the purpose of internal evaluation and testing of the programs and/or developing a single prototype of your application, and not for any other purpose. If you want to use the programs or the application you develop under this license for any internal data processing or internal business operations or for any commercial or production purposes, or you want to use the programs for any purpose other than as permitted under this agreement, you must obtain a production release version of the program by contacting us or an Oracle reseller to obtain the appropriate license. You acknowledge that we may not produce a production release version of the program and any development efforts undertaken by you are at your own risk. We may audit your use of the programs. Program documentation, if available, may accessed online at http://otn.oracle.com/docs.
    Ownership and Restrictions
    We retain all ownership and intellectual property rights in the programs. The programs may be installed on one computer only, and used by one person in the operating environment identified by us. You may make one copy of the programs for backup purposes.
    You may not:
    - use the programs for your own internal data processing or internal business operations or for any commercial or production purposes, or use the programs for any purpose except as permitted under this agreement;
    - continue to use the programs for a period longer than: (a) six months; or, (b) after the general availability of the programs, if any;
    - use the application you develop with the programs for any internal data processing or internal business operations or commercial or production purposes without obtaining a production release version of the programs by securing an appropriate license from us or an Oracle reseller;
    - remove or modify any program markings or any notice of our proprietary rights;
    - make the programs available or accessible in any manner to any third party;
    - use the programs to provide third party training;
    - assign this agreement or give or transfer the programs or an interest in them to another individual or entity;
    - cause or permit reverse engineering (unless required by law for interoperability), disassembly or decompilation of the programs;
    - disclose results of any program benchmark tests without our prior consent
    - disclose Confidential Information to any third party without our prior consent.
    Feedback
    Any Content that is provided to and Shared with Oracle relating to the programs shall be received and treated by Oracle on a non-confidential and unrestricted basis ("Feedback"), and Oracle shall have a worldwide, perpetual, royalty-free, irrevocable, nonexclusive, fully sublicensable license to use, reproduce, modify, adapt, translate, publish, publicly perform, publicly display, broadcast, transmit and distribute the Feedback for any purpose and in any form, medium, or technology now known or later developed. This includes, without limitation, the right to incorporate or implement the Feedback into any Oracle product or service, and to display, market, sublicense and distribute the Feedback as incorporated or embedded in any product or service distributed or offered by Oracle without compensation to you.
    Export
    You agree that U.S. export control laws and other applicable export and import laws govern your use of the programs, including technical data; additional information can be found on Oracle's Global Trade Compliance web site located at http://www.oracle.com/products/export/index.html?content/html. You agree that neither the programs nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation.
    Disclaimer of Warranty and Exclusive Remedies
    THE PROGRAMS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. WE FURTHER DISCLAIM ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
    IN NO EVENT SHALL WE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. OUR ENTIRE LIABILITY FOR DAMAGES HEREUNDER SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. $1,000).
    Trial Programs Included With Orders
    We may include additional programs with an order which may be used for trial purposes only. You will have 30 days from the delivery date to evaluate these programs. Any use of these programs after the 30 day trial period requires you to obtain the applicable license. Programs licensed for trial purposes are provided "as is" and we do not provide technical support or any warranties for these programs.
    No Technical Support
    Our technical support organization will not provide technical support, phone support, or updates to you for the programs licensed under this agreement.
    End of Agreement
    This agreement, and your right to use the programs, will be terminated: (i) automatically upon the release of production-release versions of the programs, in which case you shall destroy all copies of the programs; (ii) by you, by destroying all copies of the programs; or, (iii) by us if you fail to comply with any of the terms of this agreement, in which case you shall destroy all copies of the programs.
    Relationship Between the Parties
    The relationship between you and us is that of licensee/licensor. Neither party will represent that it has any authority to assume or create any obligation, express or implied, on behalf of the other party, nor to represent the other party as agent, employee, franchisee, or in any other capacity. Nothing in this agreement shall be construed to limit either party's right to independently develop or distribute software that is functionally similar to the other party's products, so long as proprietary information of the other party is not included in such software.
    Open Source
    "Open Source" software - software available without charge for use, modification and distribution - is often licensed under terms that require the user to make the user's modifications to the Open Source software or any software that the user 'combines' with the Open Source software freely available in source code form. If you use Open Source software in conjunction with the programs, you must ensure that your use does not: (i) create, or purport to create, obligations of us with respect to the Oracle programs; or (ii) grant, or purport to grant, to any third party any rights to or immunities under our intellectual property or proprietary rights in the Oracle programs. For example, you may not develop a software program using an Oracle program and an Open Source program where such use results in a program file(s) that contains code from both the Oracle program and the Open Source program (including without limitation libraries) if the Open Source program is licensed under a license that requires any "modifications" be made freely available. You also may not combine the Oracle program with programs licensed under the GNU General Public License ("GPL") in any manner that could cause, or could be interpreted or asserted to cause, the Oracle program or any modifications thereto to become subject to the terms of the GPL.
    Third Party Technology
    The Programs may contain third party technology. We may provide certain notices to you in program documentation or otherwise in connection with such third party technology. If you are permitted to distribute a Program, you agree to include with the distribution all such notices and any associated source code for third party technology as specified, in the form and to the extent such source code is provided by us. For clarity, the existence of a notice does not affect the terms under which third party technology is licensed to you.
    Third party technology will be licensed to you either under the terms of this agreement, or, if specified in the program documentation, readme files or otherwise in writing, under separate license terms ("Separate Terms") and not under the terms of this agreement ("Separately Licensed Third Party Technology"). Your rights to use such Separately Licensed Third Party Technology under the Separate Terms are not restricted or modified in any way by this agreement.
    Entire Agreement
    You agree that this agreement is the complete agreement for the programs and licenses, and this agreement supersedes all prior or contemporaneous agreements or representations. If any term of this agreement is found to be invalid or unenforceable, the remaining provisions will remain effective.
    Last updated: 08/26/10
    Should you have any questions concerning this License Agreement, or if you desire to contact Oracle for any reason, please write:
    Oracle America, Inc.
    500 Oracle Parkway,
    Redwood City, CA 94065
    Oracle may contact you to ask if you had a satisfactory experience installing and using this OTN software download.
    >
    which is different from http://download.oracle.com/docs/cd/E17781_01/license.112/e18068/toc.htm#BABHFGHA regarding production or commercial purposes.

    At first sight, I was surprised too, but after reading both terms thoroughly I came to the same conclusion that orafad posted above: The text you posted is entitled Oracle Technology Network Early Adopter License Terms. Of course, EA-Terms are different from the ones for the production release. To illustrate the example with software from another company: It was possible to download betas of Microsoft Windows "for free", but it was just for evaluation, testing and "early adopting" purposes, not for productive use. Similar rules apply here. The final release will definetly not be published with that EA License. Oracle has published a draft of the final terms so you get an idea of what you'll be allowed to do with the software you evaluate when it will be released.
    -Udo

  • How to find out which BADIs are used

    Hi Experts,
    Is there any tcode where I can give the transaction or program name and find out which BADIs are used in that transaction.
    thanks
    sankar

    Dear Sankar,
    You can first check available BAdis and then go to SE19 to see what all have been implemented.
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Hope this will help.
    Regards,
    Naveen.

  • How can I perform this kind of range join query using DPL?

    How can I perform this kind of range join query using DPL?
    SELECT * from t where 1<=t.a<=2 and 3<=t.b<=5
    In this pdf : http://www.oracle.com/technology/products/berkeley-db/pdf/performing%20queries%20in%20oracle%20berkeley%20db%20java%20edition.pdf,
    It shows how to perform "Two equality-conditions query on a single primary database" just like SELECT * FROM tab WHERE col1 = A AND col2 = B using entity join class, but it does not give a solution about the range join query.

    I'm sorry, I think I've misled you. I suggested that you perform two queries and then take the intersection of the results. You could do this, but the solution to your query is much simpler. I'll correct my previous message.
    Your query is very simple to implement. You should perform the first part of query to get a cursor on the index for 'a' for the "1<=t.a<=2" part. Then simply iterate over that cursor, and process the entities where the "3<=t.b<=5" expression is true. You don't need a second index (on 'b') or another cursor.
    This is called "filtering" because you're iterating through entities that you obtain from one index, and selecting some entities for processing and discarding others. The white paper you mentioned has an example of filtering in combination with the use of an index.
    An alternative is to reverse the procedure above: use the index for 'b' to get a cursor for the "3<=t.b<=5" part of the query, then iterate and filter the results based on the "1<=t.a<=2" expression.
    If you're concerned about efficiency, you can choose the index (i.e., choose which of these two alternatives to implement) based on which part of the query you believe will return the smallest number of results. The less entities read, the faster the query.
    Contrary to what I said earlier, taking the intersection of two queries that are ANDed doesn't make sense -- filtering is the better solution. However, taking the union of two queries does make sense, when the queries are ORed. Sorry for the confusion.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Which effects were used in this video?

    In the link below does any one know which effects were used. I am creating a video but I would like to recreate some of these effects, specifically the two videos over lapping with transparency, the fast reverse clips, and any other you can see from the video would be helpful.  Thanks!
    KNITZ Fall 2014 - For Love & Lemons | Facebook

    Overlapping with transparency is simple enough. Just put on video on track one and the other on track two. Then set the track two video to 50% opacity and adjust to taste.You will probably spend some time changing the position of one or both of the videos.
    Shooting on green screen makes it easier to overlap videos though. Or, if not a chroma key color, at least a solid color.
    Reversing a video is a simple matter of changing the speed to a negative number.
    There really isn't anything too complicated in that video as far as I can tell. A lot of cropping and masking and transparency.  Not much else.

  • We are facing issue to open a static form PDF in Chrome Browser , which is loaded using Adobe FormService.Able to open in other browsers but not able to open the static forms in chrome with LC 11.0 version

    We are facing issue to open a static form PDF in Chrome Browser
    , which is loaded using Adobe FormService.
    Able to open in other browsers but not able to open the static
    forms in chrome with LC 11.0 version
    Below error message:
    The document you are trying to load
    requires Adobe Reader 8 or higher. You may not have the Adobe Reader installed
    or your viewing environment may not be properly configured to use Adobe Reader.
    For information on how to install Adobe Reader and configure your viewing
    environment please see http://www.adobe.com/go/pdf_forms_configure.
    Please let us know do we have any option for disabling
    <NoXFA/> tag by calling formService. RenderPDF() method on adobe service
    For dynamic forms its working by adding <NOXFA/> in
    DDX xml . only for static forms its not working because we are not using
    assembler service for this forms.
    Please let us know how we can disable XFA in static forms??????????????????

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • Workflow API which can be used to avoid sending notification to user

    Hi Folks,
    We want Workflow API which can be used to avoid sending notification to user for particular type of error.
    Say we are using following API which are used to send notification to mailbox as soon as program run into error.
    wf_core.context(c_v_package_name
    ,c_v_func_name2
    ,p_event.getEventName()
    ,c_v_task_id_prompt||l_n_task_id
    ,l_v_msg_data);
    wf_event.seterrorinfo(p_event, c_v_result_error);
    Now we want to restrict certain type of error to send as a notification however we want to keep this record in wf_notifications table for further investigation.
    Thanks and Regards,
    Javed Khan

    Matt,
    It looks like another person had a similar question before, see the following thread:
    https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
    Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
    If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
    https://developer.cisco.com/site/devnet/home/index.gsp
    Hope this information helps,
    Marco Rojas.

  • Which one to use - Customer Interface or TCA APIs? And why?

    Hi,
    Please let me know the answer for the following questions. I have a legacy system in 11.0.3 (which does not have the TCA architecture) and the customers have to be moved to R12. I could get the details in different flat files for the import from source system. Which is the approach I should use?
    1) What does customer interface does NOT do which the TCA APIs can do?
    2) Doesn’t the customer interface use the TCA API within it?
    3) Is it better to use APIs than customer interface? If so, why and what are the criterions I should look for for deciding on what to use?
    Highly appreciate the help.
    Thanks,
    Dinesh

    Hello Dinesh,
    To answer your questions below:
    user3331828 wrote:
    1) What does customer interface does NOT do which the TCA APIs can do?The Customer Interface tables do the same things that TCA API does.
    user3331828 wrote:
    2) Doesn’t the customer interface use the TCA API within it?I have never been able to open a Spawned program to see which packages are used. Not sure if it uses the same API packages.
    user3331828 wrote:
    3) Is it better to use APIs than customer interface? If so, why and what are the criterions I should look for for deciding on what to use?Customer interface might be easier than the to implement than the use of API..
    For customer interface, just right a program to validate the source data and insert into open interface table, submit the import program and view output for errors. Much easy to maintain than API.
    API need a certain level of programming and you will need to investigate for all the flow of creating a customer and their corresponding create procedure to call..
    Hope this help,
    Vik

  • Toplink outer join issue using ExpressionBuilder getAlllowingNull

    I am trying to retrieve some records through a Toplink outer join expression using ExpressionBuilder's getAllowingNull() with an IN clause but I don't get the correct results.
    In my setup I have the following structure
    CREATE TABLE BOX
    MY_BOX_ID NUMBER(10) PRIMARY KEY
    , MY_CODE VARCHAR2(30) NOT NULL CONSTRAINT u_code UNIQUE
    CREATE TABLE ITEM
    MY_ITEM_ID NUMBER(10) PRIMARY KEY
    ,MY_TYPE NUMBER(6) NOT NULL
    ,BOX_ID REFERENCES BOX(MY_BOX_ID)
    INSERT INTO BOX values (1, '001');
    INSERT INTO ITEM values (1, 1, 1);
    INSERT INTO ITEM values (2, 1, null);
    The Toplink mappings are the most common ones and the code that retrieves the results is
    Vector vals = new Vector();
    vals.add(new String('001'));
    Vector dbList = null;
    try
    DatabaseSession dbSession = getToplinkSession();
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(Item.class);
    ExpressionBuilder expBuilder = new ExpressionBuilder();
    Expression exp = expBuilder.getAllowingNull("Box").get("myCode").in(vals);
    query.setSelectionCriteria(exp);
    dbList = (Vector) dbSession.executeQuery(query);
    catch(Exception e)
    e.printStackTrace();
    When I run the piece of code Toplink generates the following DB query
    SELECT t1.MY_ITEM_ID, t1.MY_TYPE FROM BOX t0, ITEM t1 WHERE ((t0.MY_CODE IN ('001')) AND (t0.MY_BOX_ID (+) = t1.BOX_ID))
    which returns just the record for which the foreign key is not null
    MY_ITEM_ID MY_TYPE
    1 1
    However I would have expected to get back two records including the one where the foreign key box_id is null. That have happened if the generated SQL would have been:
    SELECT t1.MY_ITEM_ID, t1.MY_TYPE FROM BOX t0, ITEM t1 WHERE ((t0.MY_CODE (+) IN ('001')) AND (t0.MY_BOX_ID (+) = t1.BOX_ID))
    with the outer join operator applied to the query key as well.
    I was wondering if someone could provide some advice on how to get the correct result.
    Thanks for any help,
    Lucian

    Hello,
    Calling builder.getAllowingNull("name_of_field_in_MyJDO"); returns an expression that is not used anywhere in the following code, and so it is not used in the query.
    The addJoinedAttribute(String) on ReadAllQuery will make a simple join expression using the String as the query key. If you want to use an outerJoin instead of the simple inner join created, try:
    readAllQry.addJoinedAttribute(builder.getAllowingNull("name_of_field_in_MyJDO"));
    instead. You will also want to remove any joining statements added at the mapping level made in trying to get this to work, otherwise the inner join specified though those options will still be used.
    Best Regards,
    Chris

  • Is there a CUCM API which can be used to see what calls are in progress?

    Hello All,
    I am trying to build a basic monitoring application which will display a list of calls in progress along with endpoint information such as IP address etc
    Is there a CUCM API which can be used to see what calls are in progress?
    Thanks
    Matt

    Matt,
    It looks like another person had a similar question before, see the following thread:
    https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
    Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
    If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
    https://developer.cisco.com/site/devnet/home/index.gsp
    Hope this information helps,
    Marco Rojas.

Maybe you are looking for

  • Can't get movies I already rented on apple tv to download or show on my ipad

    I rented a movie form iTunes it's taking forever to download to my apple tv so I tried downloading it to my iPad instead but apple is asking me to rent the movie again. Is there a way to watch movies I rented on any apple device ?

  • Midi Error with Digitech RP355

    I'm having major problems with X-Edit on my MacBook Pro running OS 10.6.3. Anyway, when I connect my RP355 via USB to my computer and start up X-Edit, I get a message saying: "Alert - Unable to load component and connect the device. Application is go

  • Can I install Tiger without DVD drive?

    Hello all! I need your advice and help! Today I finally added more RAM to my iMac and proceeded to upgrade to OSX. I bought v10.4.3 Tiger at a retail location. Nothing happens after I inserted the installation DVD. Then I realised that I probably do

  • Embed jpg in a pdf without re-compressing it during export or save?

    I need to create a pdf-portfolio. Therefore I want the images included to look their best. I thought it a small matter to individually compress the images in photoshop for optimal appearance and size, and then to include them in a document for pdf-ex

  • Problem with 'sort' command in iTerm, X11

    Dear All, I find it there some problem in using 'sort' command to sort the data in file. For eg: the command 'sort -g -k 1 t.txt' gives the following result. (actually I am doing generic sort based on column 1) 1.46e-01 N 1.46e-13 H 1.53e-11 H 1.54e-