To avoid the Cartesian product, but he cannot avoid some how.

Hello

I use oracle 10G.

writing a query which leads to absurd results.

Select i.corr_acc_no, sum (amtsign.amount_6) of the point i.

(select corr_Acc_no, flag_2, decode(fund_code,'C',amount_6,amount_6*-1) point amount_6

where corr_AcC_no in (select corr_acc_no from the bank where local_Acc_no in ('MBL-SEG-NZD")) and flag_2 = 0) AmtSign

where i.corr_acc_no = amtsign.corr_acc_no

and i.flag_2 = 0

I.corr_acc_no group

;

Basically, the inner query, which I use as the second table in the join, gives 13 results. I want to add the amount_6 field in the main select clause that I want to get the results of

(select corr_Acc_no, flag_2, decode(fund_code,'C',amount_6,amount_6*-1) point amount_6

where corr_AcC_no in (select corr_acc_no from the bank where local_Acc_no in ('MBL-SEG-NZD")) and flag_2 = 0)

The sum took too long so I wrote a simple query to check how many lines is returned by removing the sum and I noticed that it gives a Cartesian product with 169 lines instead of only 13. I have 2 join conditions, but the value of corr_Acc_no is the same for all 13 lines, I can't use amount_6 as join because I'm changing its sign in the inner query. Please notify.

Mention being mtefft I think your logic is false - I think that what you want is:

{noformat}

Select corr_Acc_no, SUM (decode(fund_code,'C',amount_6,amount_6*-1))

of the order of the day

where corr_AcC_no in (select corr_acc_no from the bank where local_Acc_no in ('MBL-SEG-NZD'))

and flag_2 = 0

{noformat}

Tags: Database

Similar Questions

  • When in Skype, I can hear the other party but they cannot hear me?

    We both mutually see which is very good and they come loud and clear... but they don't heard me not at all.

    Hi Gayle,

    Thanks for posting your question in the microsoft community.

    I understand that if you can hear the other party but they cannot hear you.

    The question is limited to Skype?

    I suggest that you contact the Skype support, that they would be better suited to help this issue. Check out the link and ask the question.

    https://support.Skype.com/

  • Error: Initiator has tried to get around the security phase, but we cannot

    Hello

    I started working on the new company and tonight we lost storage for about an hour and mistakes came:

    SAN1 storage array error event
    subsystem: MgmtExec
    event: 7.4.3
    time: Sun Apr 21 00:58:18 2013
    "connection iSCSI to target '10.10.10.21:3260, iqn.2001-05.com.equallogic:4-52aed6-cb0bdf198-eee0000000c50212-vss-control' initiator ' 10.10.10.22:53396, iqn.1991 - 05.com.microsoft:sp2 - vm - sql2.company.local' failed for the following reason:
    Initiator has tried to circumvent the security phase, but we cannot.

    On windows this evening first errors began:

    EventID: 4025
    Source: EqualLogic
    connection error iSCSI 0xefff0009 connecting to the vss-control for the 10.10.10.41 group volume

    Event ID: 10
    Source: iScsiPrt
    Logon request failed. The login response packet is given in the dump data.

    These errors I see repetition of the past in the Windows event log.

    It is hyper-v virtual SQL cluster with iSCI Dell storage connection.

    How to solve this problem?

    Thank you

    Hello

    Vss control volume, which is used my MS Volume Shadow service to access the clichés of material, there's a GUY configured username. However, the initiator does not send a name of user and password c...

    If you use the EQL TYPING kit, then you should allow these servers access to this volume.  Or change the ACL on this volume to allow that the servers that need to access.

    Alternatively, you can remove it from the Favorites tab, so that he tries to log in the next time the server starts.

    Finally, you can enable the discovery of prevnet filter this of is re - produce.

    Here is a KB from the Equallogic Web site.

    Solution title error: "initiator wanted to ignore the security phase but we can not." or "initiator has tried to circumvent the security phase but we cannot."

    Symptom of solution of details: event on the web interface of PS log table shows a connection error for a volume that says: "initiator wanted to ignore the security phase but we cannot." This error can be repeated continuously every few seconds.

    Question: by default, volumes that have enabled CHAP authentication will be shown during the process of iSCSI discovery even if the initiator does not have the authentication information c. Discovery is controlled by its address IP ACL, so if a machine matches the IP address of the ACL scope, we will see the volume. Note that multiple initiators such as those that are unix based as the initiator of the Cisco software that uses VMWare will continue to attempt to connect to the target (often, every two seconds), even if each connection attempt fails. This can fill the paper and the performance of the server can have an impact.

    Solution: Limit the discovery of volumes CHAP authenticated by IP address and ensure that only servers with appropriate credentials CHAP can observe the volume at all.

    The most common volume to see this error on is the special volume named "vss control." This volume is for communication with Microsoft's VSS service, using EqualLogic host integration tools. If it is configured for unlimited access, or is configured for the CHAP only, then each initiator on the SAN will be able to find out and may attempt to use it. Set ACL "vss-admin" to enter an IP address for each machine that needs to access, to ensure that no one else does.

    For firmware version 2.2.3 and, before going to the volume named 'vss-control', select the Access tab and change the entries here in a proper way.

    For the later version 2.3.2 (including all versions 3.X) firmware, go to the Configuration Group box and select the VSS/VDS. It's the ACL for the vss-control volume, which you should change as appropriate.

    It may be necessary to restart servers that try to access this volume after changing the ACLs, however. Some initiators do not release a target once they have discovered, even though the table indicates that the target does not exist. An example of this are ESX servers, using the software initiator.

    A second scenario may be a volume that is configured to be seen from in a VMWare server VM Windows using CHAP credentials and also install on the table to use a single connection Cap. Even if the credentials CHAP is setup correctly on each side if the ESX Server uses the software initiator that ESX will attempt to connect to the volume permanently every minutes or seconds depending on factors both. With configuration to several volumes in this way, it can be a drain on performance on ESX.

    To troubleshoot this scenario make sure to activate the iSCSI discovery of the IUG table of PS filter. This is done from the Group/iSCSI Configuration tab. check the box off and save the configuration using the Green disk icon in the upper right of the graphical interface. This makes the servers with the initiators that are correctly setup to see a volume with CHAP will see and try to connect to these volumes. Note: once an ESX Server has seen a volume to continue to try to connect with the software initiator until the ESX Server is restarted after this option is turned on.

    Note that, since the version of the firmware 3.0.5 and later, you can require authentication for CHAP-enabled volumes during discovery, by issuing the command in the CLI:

    GroupName > enable discovery-use-chap grpparams

    Kind regards

  • When I try to make a video call via Skype. I can see and hear the people on the other end, but they cannot hear me.

    I just got a new laptop with the latest softwear Microsoft and McAfee. Everything works fine EXCEPT when I try to make a video call via Skype. I can see and hear the people on the other end, but they cannot hear me.  The microphone settings seem to be OK.  the antivirus that was installed would cause the problem?  I tried to ask Skype. but do not seem to be able to communicate with them...

    The following support Skype may have something that will help: http://support.skype.com/en-us/category/CALL_QUALITY/

  • I bought a new carmera and Photoshop CS4 camera Raw can not read the ARW files.  I downloaded the lateset update but still can not read how can I get this problem solved thanks

    I bought a new carmera and Photoshop CS4 camera Raw can not read the ARW files.  I downloaded the lateset update but still can not read how can I get this problem solved thanks

    Hi tonyf,.

    Greetings!

    Each device is compatible with a minimum version of camera raw.

    Here is the complete list: https://helpx.adobe.com/camera-raw/kb/camera-raw-plug-supported-cameras.html

    Please check if you have this version of the camera installed which include your raw files.

    It would also be that your photoshop will not have to install this version of camera raw as its very old.

    In this case, you can convert your raw files to DNG and can use it.

    To convert the files to DNG, you must download and install the DNG Converter.

    Here is the link:

    Windows: Adobe - Adobe Camera Raw and DNG Converter: for Windows

    MAC: http://www.adobe.com/support/downloads/product.jsp?platform=Macintosh&product=106

    Concerning

    Jitendra

  • When I start my computer, it tries to find the solution center but can not be found how can I download this program?

    When I start my computer, it tries to find the solution center but can not be found how can I download this program?

    original title: Solution Center?

    I think that the solution center is a part of HP.  I go to programs - run and type msconfig.  Click the Startup tab and look for Solution Center, then uncheck the box so that it will not start then click on apply and restart the computer

    Or
    You can put in the HP printer drive and re install the printer that can also work.  Hope this helps
  • Hello. I received the wrong product and need a refund. How should I proceed?

    Hello. I received the wrong product and need a refund. How should I proceed?

    its been 10 days

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • How can I open my application? I loaded the Premiere Pro application with the trail period, but I don't know how to open it

    1.png

    Hello!

    I loaded the Premiere Pro application with the trail period, but I don't know how to open it

    Only 4 CS version is compatible with the 32-bit computer.

    As you had it installed 64-bit on 32-bit computers application, it is not recognizing the app and so do not register among menu start because it is not compatible.

  • I have Acrobat pro on an old pc with windows 7 and now I want to download it on a new pc with windows 8. I found the serial number, but I don't know how to download.

    I have Acrobat pro on an old pc with windows 7 and now I want to download it on a new pc with windows 8. I found the serial number, but I don't know how to download.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • I can see the other person, but they cannot see me

    I have windows 7 on laptop and am using skype7.25

    I see the person, but they cannot see me

    Its only recently its been the case, can you help me?

    Garry

    Thank you, when I'm skyping it says don't send not video, I will use the link now

  • when im on messenger so I call friends, I hear the good ones but they cannot hear me at the microphone

    I have problem with my micrephone when I'm on Skype im trying to have the call or video conference with someone on my list, I can see them on the cam and hear them well, but they cannot hear me at all but they can see me on cam please help me fix my micrephone thanks

    You have a laptop or a desktop computer?

    Laptops usually have a built-in microphone. It can be disabled
    Goto-> material control panel and its-> click on "Manage Audio devices" - click on the recording tab and make sure that your microphone is not turned off.
  • I would turn off the Yahoo toolbar; but can't figure out how.

    I have loaded down the latest version of Firefox, and now I have an AOL and Yahoo toolbar. I want to disable Yahoo; but can't figure out how. Thank you.

    You should be able to disable or remove the toolbar Yahoo here:

    Orange Firefox button or Tools menu > Modules

    On the left side, click on Extensions

    A little luck?

  • Just upgraded my iMac ' 09 end to 16 GB of memory and downloaded El Capitan. At the start, I can use my password very well. Then before he allows me to do anything, he wants the password in the Keychain for the 'local products' but refuses my login passwo

    Being given that I can't access anything ELSE all tips go into Keychain Access etc won't work. I tried to cancel it, but she and the other boxes of menu just POPs back up. It didn't happen when I upgraded my Mac mini to 2012. Please help me solve this problem. I need this computer to work from home, and I've updated because I was told it was compatible and it would read all of my files, Pages, and Numbers to the office where I use the Mac mini. I'm really upset that Apple wants me to pay for answering my questions, when it comes to THEIR PRODUCT! I used Apple machines since nearly 20 years and deserve better treatment!

    Connect password is not the same as the password for the keychain. Check your notes, if you have it written down somewhere. In addition, you can use your computer without any keychain. You just enter all other passwords and logins manually.

    If your Mac keeps asking for the password to keychain - Apple Support

  • Security.cert_pinning.enforcement_level the value 0, but still cannot get around

    Hello!

    I'm testing a security flag in the config of Firefox that will leave my ignore the settings for certificate of the TGV, but seems not really to do. I have sparked a facebook.comcertificate error and tried to set security.cert_pinning.enforcement_level to 0, as shown in the image to ignore the warning, but it will anyway. I know that facebook.com is a protected area (https://code.google.com/p/chromium/codesearch#chromium/src/net/http/transport_security_state_static.json), but I was hoping that config change would nullify the cooked in protection. Can anyone confirm that the list cannot be circumvented?

    I'm not sure that preference actually allows you to bypass the TGV. Have you seen that officially documented?

    If you expand the section Technical Details of the error page, what is the error code that appears towards the end?

  • looked at the e-mails but now cannot find them... How to make a comeback?

    switched fm xp to windows 7, support for put teak thunderbird emails since 7 is not compatible with outlook... so my e-mails appeared and I looked through them, delete junk, would watch emails later. now its more late but the mails I clicked through but did not read disappeared and I can't seams to find... where should I go see? and while even I did not remove the file from the Recycle Bin is empty. What should I do to be able to check my e-mail?

    http://KB.mozillazine.org/Disappearing_mail

Maybe you are looking for