If then else , any other way?

Requesting your idea in reforming my code to pass through 3 sets of validation process.
Each "if validation_passed" checks are function calls and return a boolean true or false and proceed to the next validation
and any failure would result in a table update with "Failed" Status.
Is there a efficient way of writing the code to avoid dml redundancy?
if validation_passed1 then -- p1
if validation_passed2 then --p2
if validation_passed3 then --p3
dbms_output.put_line('succes');
else --p3 
update table set status='Failure'.
end if; --p3
else --p2  
update table set status='Failure'.
end if; --p2
else --p1
update table set status='Failure'.
end if; --p1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

If I understand you, your concern is whether Oracle would have to evaluate all 15 conditions every time. If that is your concern, it need not be. Oracle can short-circuit the evaluation of multiple predicates as soon as the first predicate fails. See the documentation on short-circuit evaluation
For this reason, you would generally want to put the most restrictive condition first (unless, of course, that function is substantially more expensive than the other functions)
Justin

Similar Messages

  • I can no longer change my song names like i used to. i use to be able to right click and go to "get info" and then change the song name, artist and album, now i can't is there any other way to change the songs name and info

    When I get songs and put them on my itunes accout on my computer I used to be able to rename them right clicking, going to "get info" and then renaming everything I wanted like song name, album and artwork. I also use to be able to click on the song then click and hold on it and be able to rename it. But all the songs I have gotten after the last update have not been able to be renamed in any of the old ways I use to be able to. Is there any other way to rename songs because I know I can't undo updates and that seems to be whats causing it.
    Thankyou for your time

    You are describing an iTunes problem, not an iPod touch problem. Try posing in the iTunes forum.

  • Every time I try to restore my ipod it downloads the software then it says its processing it, then it says it cant download it right now.  Is there any other way to unlock a locked ipod touch without the lockcode?

    My son can't remember his passcode for his iPod touch and for some reason every time I try to restore it, the software gets updated and it starts processing it then it says there was an error and to try again later.  Later, it still does and says the same thing.  Is there any other way to unlock it without the passcode?

    The only way to clear off the passcode is to restore the device.  You could always try the restore process on another computer that has iTunes just to get the iPod working again, then you could plug it back into your comptuer to sync all of his content back on the iPod.

  • HT5312 I can't buy any thing with money on my iTunes I fregot my security questions and I can do it any other way I now my password and every thing else

    I can't buy any thing with money on my iTunes I fregot my security questions and I can do it any other way I now my password and every thing else

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 on the page that you posted from should let you reset them.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use

  • I have an older ipod shuffle that will not continue to charge when i plug it into my laptop.  is there any other way to charge an ipod shuffle?

    my older ipod shuffle will not charge on my laptop.  it starts and then stops after the light blinks four or five times.  is there any other way to charge a shuffle?

    Hello there, gallo2432.
    The following Knowledge Base article offers up some great  information on how to charge your iPod shuffle:
    iPod shuffle: How to charge the battery
    http://support.apple.com/kb/HT1477
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Is there any other way to get Adobe Captivate help?

    Hi guys,
    is there any other way to get Adobe Captivate specific help? I've posted a question twice with no help, it's very specific, so no one here might actually know the solution. I'm wondering though, since the chat is obviously not for Captivate users with product or service questions.
    Is there a tech team I can somehow contact? We really need an answer to the problem.
    Thanks,
    Nat
    P.S. I'll post the problem again here:
    We publish mp4 training videos as HTML5 content and have the problem that we need to restrict the player to only play/pause.
    Adobe Captivate 7 works fantastic for us on almost all devices, many Androids, many browsers, and even on iPad. Captivate, after adding the video as a multi-slide video to one slide and publishing it as HTML5 content, only lets the student play and pause the video - just what we need.
    But then we test it on iPhone and the iPhone's internal quicktime player recognizes the mp4 video and kicks in, gives the student all the functions they want, totally overrides the HTML5 published Captivate restricted playback options.
    Is there ANY way we can get around that? Any function or box we haven't checked before publishing the HTML5 content?
    We would even be happy, if the video wouldn't play on iPhone - just as long as they can't use it to fast forward to the end of the video.
    Does anyone here know how to bypass the internal iPhone 5 player?
    Thanks,
    Nat

    By the way, I have updated to the newest Captivate 7 version and am using iOS version 7.0.4.
    Again, it's fine on iPad, but not on iPhone 5.

  • Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?

    Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?Is there anyway I can use my iPod Touch serial number or Apple ID to trace and find back my iPod Touch? Cause I lost it recently(as you know iPod Touch can only go online if there is WiFi). is there any other ways too, apart from contacting the police?

    No.
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • HT1430 My ipad mini is frozen in an app and the home button is stuck.  Pressing down on the sleep/wake button does not give me the red slider to turn the ipad off.  Is there any other way I can reset?

    My ipad mini is frozen in an app and the home button is stuck.  Pressing the wake/sleep button does not bring up the red slider to turn the ipad off. Is there any other way I can reset the ipad?  Can I remove the battery? and then put it back in?

    barbarafromnl wrote:
      Can I remove the battery?
    No the battery is non removable.
    Try a Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • Is there any other way to  limit the data a user can see

    We are using Discoverer 10.2.xxx
    We are running it against an Oracle applications database but we do not have Discoverer integrated with the apps. I have created database users for discoverer and granted access to the data at the db level.
    We have about 40 salesreps and we only want each rep to see their own data. We have a high turn over with the reps
    For now, I have created the row level security in that folder in my eul. If the username = XXXX then Salesrep = XXXXX
    OR
    If username = YYYY then DSM = YYYY
    etc.. This goes on for about 40 users We have 3 levels of "users" - Salesrep, DSM or RSM (District or Region sales manager)
    These users are setup in my apps and I can write a database procedure to select their salesrep name based on their username.
    Is there any other way to limit the data that the salesreps can see ?
    Possibly with a stored procedure some way?
    Thanks
    Angie

    At a previous client's, I had created a system not too unlike what you're describing.
    Basically, I created an Oracle table that stored information concerning the salesperson as in Oracle Apps the data was not reliable for what they were doing (ie: with adding Apps modules, sometimes salesperson data was there, but with say, CRM, it was in another place, etc.).
    So, since this table was going to be used for driving everything about a salesperson (commissions, who they report to, when they started, territory, when / if they moved territories and/or manager, etc, etc.) I put lots of good stuff in it that would make life easier for them.
    The end user in charge of all this had was given a Form to add, edit, delete all this good stuff and they were happy.
    When it came time for security, it worked like a charm in that I used the concept of the BIS views where a user has an apps id associated to them and all data was filtered by that id. All I really had to do was to create this view that simply filtered data to that user's id. Then whenever I had a Discoverer report for salespeople, managers, etc. I just made sure the folder used had a join to this filtering view and I chose an item from the filtering view and all worked fine. All Discoverer reports only returned row level information for the salesperson who ran it.
    Likewise, the same Oracle table was queried by another security view that only brought back the same IDs for the salespeople associated to each manager. When this simple view was joined to any sales Discoverer folder (and used in Disco), it limited all data to the salespeople the manager was responsible for.
    Obviously this is just an overview and would take pages to explain, but essentially, if you can associate some kind of unique ID to each salesperson (I used the one returned in BIS views when someone logs into Apps, but you could just assign a different in your case), then you can create a view that filters to that id. Then when that view is brought into the EUL and joined to any other folder in the sales area (and you choose a column from the security view), you'll have what you're referring to - row level security for all salespeople and managers.
    When it works - it sure does look impressive.
    Russ

  • TS1368 don't have PC right now - is there any other way to synch my iPod with iTunes?

    This is likely a dumb question but I need to ask...
    I am in between PC's, meaning I don't currently have a home computer (actually looking to purchase a MacBook but not for another 1-2 months).  I want to synch my iPod with the music we've been purchasing via my iPad. 
    I am figuring it is possible to go to a friend's house and use their computer to access my iTunes account and synch...is there any other way?  Just asking, just in case...
    Thanks so much!

    The only way to clear off the passcode is to restore the device.  You could always try the restore process on another computer that has iTunes just to get the iPod working again, then you could plug it back into your comptuer to sync all of his content back on the iPod.

  • HT1430 Is there any other way to reset my ipod touch? I am asking because my home button is broken.

    Is there any other way to reset my ipod touch? I am asking because my home button is broken.

    If you mean this
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    then no
    To place the iPod in recovery mode yo can use:
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    for a PC
    and
    The Firmware Umbrella - TinyUmbrella
    For a PC or MAC

  • HT1725 hi i did not have a credit to purchase  any paid app or songs. is there any other way to purchase

    hi. i did not have a credit card to purchase a paid app or songs. is there any other way to purchase. and i  already purchased a paid app any song by using my debit card . what can i do to purchase

    Is you debit card no longer accepted ? If not then do you have a different debit card that you could try, or are iTunes gift cards available in your country - they are not available in all countries, and they are country-specific (they can only be redeemed and used in their country of issue. If not then the only payment methods that you can use are those that show on the payment details screen on your account.

  • Western Digital My Book World EditionI have bought a WD My Book World Edition to use for back-up of my iMac, but when I try and log onto the drive with Apple time Machine (back-up software) or connect in any other way i get the message 'There was a proble

    I have bought a WD My Book World Edition to use for back-up of my iMac, but when I try and log onto the drive with Apple time Machine (back-up software) or connect in any other way I get the message 'There was a problem connecting to the server "MybookWorld.local" The version of the server you are trying to connect to is not supported. Please contact your system administrator to resolve the problem'
    It is a brand new iMac and running Lion OSX
    Any ideas on how to solve would be gratefully received?

    Followed the directions on this page and it worked!
    http://forums.macrumors.com/showthread.php?t=1102423
    Part One - Turn on SSH (in the admin panel)
    [1] Go to to http://mybookworld.local
    [2] login: username will be admin, password will be whatever you have setup. If you can't remember it should be in your Mac OS X keychain (Utilities > Keychain Access, search for "mybookworld"). If you have not changed if from the default the password will be admin as well.
    [3] Switch to advanced mode.
    [4] From the System tab, pick Advanced.
    [5] Enable SSH Access, and click submit.
    [6] Click on the network tab and then the LAN button
    [7] Make a note of the IP address
    Small, maybe obvious, but nevertheless important point: For the install to work, your NAS needs to be connected to a router with internet access.
    Part Two - Install netatalk2.2
    [8] Open Terminal.app (Utilities > Terminal)
    [9] Enter the following command (substitute in 127.0.0.1 for the actual IP address you noted down in step 7), then hit return:
    Code: 
    ssh [email protected]
    [10] When prompted, enter the ssh password (will be welc0me).
    [11] You are now going to download the installer. Enter the following command, then hit return:
    Code: 
    wget http://mybookworld.wikidot.com/local--files/netatalk2-2-on-whitelight/install_netatalk.sh -O install_netatalk.sh
    [12] Once completed, you will need to run the installer. Type:
    Code: 
    sh install_netatalk.sh
    [13] You will be asked a number of question during install, answer yes to all. When asked about the "DHX2 login process", I opted to install the modified version, so I can confirm it works.
    [14] Once the box has restarted, you should be able to connect to your afp shares and continue to use Time Machine.

  • HT1212 When i connect to iTunes it says that i have enter my passcode to go in, but i have forgotten my passcode, and the power button is not worrking, is their any other way to do it without the computer or any other internet stuff or stores,

    When i connect to iTunes it says that i have enter my passcode to go in, but i have forgotten my passcode, and the power button is not worrking, is their any other way to do it without the computer or any other internet stuff or stores,

    No. You need a computer with iTunes and an internet connection.
    Place the iPod in recovery mode using one of these programs and then restore via iTunes:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • HT6154 I lost my IPhone. I tried to download the "lost my Iphone"app, but my iCloud isn't on. Is there any other way to locate it?

    I lost my IPhone. I tried to download the "lost my Iphone"app, but my iCloud isn't on. Is there any other way to locate it?

    If you didn't set up Find My Phone before you lost it, then there is no way to activate it while it's lost.
    Sorry.

Maybe you are looking for

  • How to read Excel file in flex

    Hi,      I am new to Adobe flex and i dont know how to read Excel in flex and i need coding for that. So anybody help me... thanks in advance...

  • Down Payment scneario in SAP

    Hi Colleagues, How we can handle down the payment scenario in MM? Say, a business scenario where you have to pay 30% of the order value as soon as you order the item and the rest 70% payment you make after the delivery. How can we deal such scenario

  • [FLEX 3 AIR]

    This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C82210.F130FDC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hola, por favor alguien podria ayudarme, estoy haciendo una pequena =

  • Questions on SQL executed by Answers about Row_number

    While debugging from the log file of sql executed by OBIEE Answers, I found the following sql statements: -------------------- Sending query to database named DW_TESTING (id: <<10886>>): select D1.c2 as c1, D1.c3 as c2, D1.c1 as c3 from (select D1.c1

  • Wanted: Help from an experienced AEBS user

    The setup is: Airport Extreme Base Station G4 Gigabit Ethernet PowerMac with original Airport card OS X 10.4.2 I found the instructions to configure logging on AEBS straight forward, but I'm getting stuck. I don't understand what we're doing when we'