Help in subquery update

I am trying to do the oracle version, thats where I kind of got stuck, what I have to do in the external where clause. Any help is appreciated.
Thanks
/* sybase version
update sale_upgrades_temp
set a.exchangeRate = b.conversionRate
from sale_upgrades_temp a, CurrencyConversion b
where a.chargeCurrency = b.name
and (convert(datetime,convert(varchar(11),a.workCompleted,101))
>= b.effectivePeriodStartDate)
and (convert(datetime,convert(varchar(11),a.workCompleted,101))
<= b.effectivePeriodEndDate
OR b.effectivePeriodEndDate is null)
--trifleet_hyperion_user.
update sale_upgrades_temp
set exchangeRate =(select b.conversionRate
from CurrencyConversion b
where sale_upgrades_temp.chargeCurrency = b.name
and ( to_date(sale_upgrades_temp.workCompleted)
>= b.effectivePeriodStartDate)
and (to_date(sale_upgrades_temp.workCompleted))
<= b.effectivePeriodEndDate
OR b.effectivePeriodEndDate is null))
where (sale_upgrades_temp.chargeCurrency, sale_upgrades_temp.workCompleted)
in (select

I tried this and obviously I got the error, as subquery retursn morethan one row as my external where clause does not have any filter condition. Could some shed some light on this ?
update sale_upgrades_temp
set exchangeRate =(select b.conversionRate
from CurrencyConversion b
where sale_upgrades_temp.chargeCurrency = b.name
and ( to_date(sale_upgrades_temp.workCompleted)
>= b.effectivePeriodStartDate)
and (to_date(sale_upgrades_temp.workCompleted))
<= b.effectivePeriodEndDate
OR b.effectivePeriodEndDate is null))
where sale_upgrades_temp.chargeCurrency
in (select name from CurrencyConversion);

Similar Messages

  • Help needed I updated my ipad2 with iOS5 but few of my dashbaords are not working now can any one let me know how to downgrade the OS

    Help needed I updated my ipad2 with iOS5 but few of my dashbaords (HTML5) are not working now ,can any one let me know how to downgrade the OS as we have a meeting coming up .. its urgent

    Downgrading the iOS is not supported. If you are using Safari this try clearing its cache via Settings > Safari.
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • HT4623 Please help me to update iOS 7.0.3

    Please help me to update iOS 7.0.3

    Read though the article you referenced to find out how to update to the latest iOS level (which is now iOS 7.0.4)
    See here: http://support.apple.com/kb/HT4623?viewlocale=en_US&locale=en_US
    If you are using iOS 4 (or earlier) there is no Software Update in Settings. That feature was first added in iOS 5.
    To update you will have to connect your iPad to iTunes on a computer (preferably the one you sync with and backup to).
    See here: http://support.apple.com/kb/HT4972

  • HT4623 please help me when update my i phone 3G i finish update but face problem , appear me msg There is no SIM card installed in the iPhone You ar attempting to activate. Please disconnect

    please help me < when update my i phone 3G < i finish update but face problem , appear me msg There is no SIM card installed in the iPhone You ar attempting to activate. Please disconnect

    Sounds like your phone was hacked to use with your carrier.  Updating it has relocked the phone to it's original carrier.  You will not get the phone working again without a SIM from the original carrier.

  • Help i have updated my ipod touch to 4.3.3 and itunes to 10.3 and now it wont open on my pc  i can access apps but no music as it cant sync help! itunes wont open at all or reconise the ipod

    help i have updated my ipod touch to 4.3.3 and itunes to 10.3 and now it wont open on my pc  i can access apps but no music as it cant sync help! itunes wont open at all or reconise the ipod

    Try to remove all Apple related software and then reinstall iTunes Removing iTunes, QuickTime, and other software components for Windows Vista

  • While updating my iphone 3gs i always get a message that an error occured downloading iOS 5.1.1. plz help me, while updating my iphone 3gs i always get a message that an error occured downloading iOS 5.1.1. plz help me

    while updating my iphone 3gs i always get a message that an error occured downloading iOS 5.1.1. plz help me, while updating my iphone 3gs i always get a message that an error occured downloading iOS 5.1.1. plz help me

    We dont know yet if he is doing it from the phone itself!
    If you do from the phone try from iTunes and vice versa.

  • Please help!! update fields of delivery order by using BAPI.

    hi, any one can help me to update the fields of a delivery order.
    the fields in the delevery order are : Batch no. quantity. and Stock location.
    i cannot use any BDC to do that, BAPI is prefered in that report.
    batch number and quantity are easy to find in any BAPI,  but stock loc can not change from BAPI...
    i have tried BAPI_OUTB_DELIVERY_SAVEREPLICA , but it always give me errors. (VL 564 and VL 295. but i definitly gave the delevery type)
    so, is anyone can give me a better bapi?or give me a instance for using BAPI_OUTB_DELIVERY_SAVEREPLICA.
    thanks a lot.
    Chris

    Try:
    BAPI_INB_DELIVERY_CHANGE
    BAPI_OUTB_DELIVERY_CHANGE
    Rob

  • Please help me tp update my iPhone 5, because after updating to ios 7 I can no longer update and restore my phone? it always error

    please help me to update and restore my iphone 5? beacause after updating to iOS 7, i can no longer updater and restore my phone. it always comes in error

    I'm having the identical problem on my iPhone 4 after upgrading to IOS 7--no ability to update apps or download new apps.  Here is what Apple tech support emailed to me:
    I understand that you are unable to download or update applications after updating iOS7 on your iTunes. I know you must be eager to get this resolved and I will be happy to help you today.
    ... to help you better with this issue I would request you to please try this steps given below to resolve your issue.
    Please follow this steps:
    1) Double tap the home button
    2) Hold down on an icon
    3) Tap the red "X" on iTunes, and the App Store.
    4) Tap Settings > Store > Tap your Apple ID, and choose sign out
    5) Tap Settings
    6) Tap General
    7) Tap Reset
    8) Tap Network Settings
    Once it has been closed with multi-tasking, and you have rebooted the device in the network settings reset, please sign in, and try again. 
      Howevr, if you are facing the same issue than for this issue, you may need to call our AppleCare technical support team. A technical Advisor will be able to tell you about Apple's complimentary and fee-based support. The technical Advisor can also assist you in determining what option might be most helpful to you in this case.
    Mildly amusing that the instructions for force-closing a program are the IOS 6 instructions, which do not work on IOS 7. 
    Otherwise I'm having a little success with this.  Some apps (not all) are updating. It seems that a few more apps update each time I go through the process (close everything, sign out, and either reset or reboot, then go to the app store, sign in and try to update all).  So far it has been a very lengthy, iterative process. 

  • FileVault2 & no supported helper partition to update

    While a workaround for a problem I had fixed the issue, the root cause remains.
    I am using FileVault2 full disk encryption. It seems on my system the kernelcache never gets updated after the drive has been encrypted with FileVault. To be exact: The kernelcache on the helper partition 'Recovery HD' never gets updated. The kernelcache in
    /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache
    gets updated correctly. What's missing is the part to transfer an updated kernelcache to the helper partition. The last lines of output from
    kextcache -v 6 -update-volume /
    are
    Created prelinked kernel //System/Library/Caches/com.apple.kext.caches/Startup/kernelcache.
    CSFDE property cache does not need update.
    /: no supported helper partitions to update.
    So the kernel cache in the encrypted '/' partition is updated, but since there are 'no supported helper partitions to update', the new kernelcache is not copied to the location which is used during boot. At boot, the kernelcache from the helper partition is loaded. Its location is
    /Volumes/Recovery\ HD/com.apple.boot.S/System/Library/Caches/com.apple.kext.caches/Startup/kernelc ache
    For some reason the helper partition does not seem to be associated with my encrypted root partition. Does anyone know how to associate my helper partition with the encrypted root partition again?
    Here is some background about my system and how I installed it:
    My Mac has one internal disk. I use it for Time Machine backups only. It is not possible to boot from the internal disk. My system disk is an external SSD connected via USB 3.0.
    I installed the system disk by holding CMD-r during boot to get the Mac into Recovery Mode. With Disk Utility I erased the SSD completely, left Disk Utility and installed OS X Mountain Lion 10.8.3. When the installation was finished, I created a temporary admin user and used Migration Assistent to migrate all User accounts and programs from a backup. Then I logged into my user account which Migration Assistent had created, deleted the temporary admin user and activated File Vault. Later, I installed an upgrade for a program that uses a kernel extension. After every boot I got the message, the version of the kernel extension did not match the version of the program. While everything in the encrypted '/' partition had been updated correctly, the kernelcache on the Recovery HD had not. While I can copy the kernelcache to the helper partition manually, I think this a hack and it should happen automatically when the kernelcache is updated in the '/' partition. I am not aware having done somthing that could make Mac OS X loose the association between the '/' partition and the Recovery partition.

    Yuo can't "undo" the update. Bose support may be your best bet.

  • Can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    Hey damien555,
    Thanks for the question, I understand how frustrating this may be. It sounds like the update process may have been interrupted, and to resolve the issue, we’ll need to restore your device in recovery mode with iTunes:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Thanks,
    Matt M.

  • Help! Accidently updated firmware of Laserjet pro 400 with Laserjet CP4525 firmware

    Help!  Accidently updated firmware of Laserjet pro 400 with Laserjet CP4525 firmware.  The printer is now just spewing out pages and never reaches a ready state to put the correct firmware on.  I really hope I haven't bricked it just by a silly click.
    Can anyone help or suggest a way to put the correct firmware on?
    Cheers 
    Glyn
    This question was solved.
    View Solution.

    The product might be receiving the earlier sent firmware update as a job in the print que.  Delete pending jobs from print queue & connect network cable to printer.  The device should perform normal boot till READY state.
    Download and use easy firmware upgrade utility using following HP web link to upgrade priner firmware:
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18...
    Please mark the post that solves your problem as Accepted Solution
    Click the 'Kudos Thumbs Up' if this was helpful. Thank You!
    (Although I am an HP employee, I am speaking for myself and not for HP)

  • Help!! Updated new version of iTunes but I can't open it

    Help!! Updated new version of iTunes but I can't open it nw. It pop up a window said: [the file "iTunes Library.it" cannot be read because it was created by a newer version of iTunes. ] what is it?Tried to remove and install old version iTunes also can't work..

    Manually download from here and install http://support.apple.com/downloads/#

  • Help! Installing updates an error occurred now my MacBook Pro will not restart. "Unable to find driver for this platform"

    Help! Installing updates an error occurred now my MacBook Pro will not restart. "Unable to find driver for this platform"

    Did you try more than once? If so:
    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Mountain Lion or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • I need help! I updated the new 6.1.3 last night. Since that time my phone will not charge. The phone is plugged in and shows as charging but the battery still drains. What can I do? I need help!

    I need help! I updated the new 6.1.3 last night. Since that time my phone will not charge. The phone is plugged in and shows as charging but the battery still drains. What can I do? I need help!

    Restore iPhone with iTunes on your computer.

  • Please HELP! I updated to Lightroom 5.7, and now it won't open!!!

    Please HELP! I updated to Lightroom 5.7, and now it won't open! I have Windows 7. What can I do to fix this ASAP?!?! I was working on an important project that I need to finish pronto for possible publication!!! Can anyone help me out??? Thanks soooo much!

    deepakgahlot wrote:
    Hi
    1. Go to the “Preferences” folder (Win: C:\Users\Name\AppData\Roaming\Adobe\Lightroom\Preferences
    2. Delete “Lightroom 5 Preferences.agprefs” should it be there
    3. Rename the “Preferences” folder to “PreferencesXY”
    4. Start LR5 – it should now start and create a new LR5 catalog
    Of course, the user may not want a new catalog ... in fact, most people don't want a new catalog ...

Maybe you are looking for

  • ACS 4.2 authentication and Privelged exec mode on Test Router.

    The goal is to have ACS authenticate my username via ssh and allow me to get into privileged exec mode once authenticated. Details below. I have ACS 4.2 Solution Engine and I have a test router with the following commands setup: aaa new-model aaa aut

  • Data filter

    I would like to make a suggestion to the development team. Would it be possible to add to the Data Viewer windows a filter to allow a range of data to be selected? Otherwise the usefulness of the tool is limited as potentially thousands/millions of r

  • How do you unlock a second gen Moto X Verizon?

    I have a Moto X Second Generation Verizon what is the process of getting it unlocked?

  • Openoffice and GTK integration

    I got a shock today! I updated my system a couple of days ago to OOo 3.1.0 Archlinux build2. I was previously running 3.somthing I fired OOo just today to discover that it looked good!  Well it seems that the fonts match well now(size and shape) with

  • Delivering plant different in freegoods order

    Hello, Material is created in x and y plants, but Y is the delivering plant defined in Material Master. it does not have CMIR, in customer there is no delivering plant maintained. this material is the free goods material for material A. now when i ra