SQL command IN is working , but NOT IN is not working for the below code...

In application code I have the below code.
IF v_service_variant NOT IN(0,1,2,3,4) THEN --Checking whether existing service variant is applicable in 21Cn Fibre.
v_service_variant := 3; --If not making it as a standard service
UPDATE sspt_sessions_table SET service_variant = v_service_variant WHERE sess_id=v_sess_id; --Updating sspt_sessions_table
SELECT DECODE(service_variant_id, 0, 'None', 1, 'Loadbalancing', 2, 'Failover',3, 'BGP4', 4, 'Backup') INTO l_service_variant --To get the service variant name
FROM sspt_maj_resilience WHERE service_variant_id=v_service_variant;
UPDATE sspt_prquote_details SET service_variant = l_service_variant WHERE ftip=l_ftip AND sess_id=v_sess_id; --Updating sspt_prquote_details
COMMIT;
END IF;
Then the statements inside the if condition are not being executed. At the same time if I am replacing NOT IN with IN only and making changes to get if condition true then it is going inside the IF condition.... Could anyone please help me on this

950474 wrote:
In application code I have the below code.
IF v_service_variant NOT IN(0,1,2,3,4) THEN --Checking whether existing service variant is applicable in 21Cn Fibre.
v_service_variant := 3; --If not making it as a standard service
UPDATE sspt_sessions_table SET service_variant = v_service_variant WHERE sess_id=v_sess_id; --Updating sspt_sessions_table
SELECT DECODE(service_variant_id, 0, 'None', 1, 'Loadbalancing', 2, 'Failover',3, 'BGP4', 4, 'Backup') INTO l_service_variant --To get the service variant name
FROM sspt_maj_resilience WHERE service_variant_id=v_service_variant;
UPDATE sspt_prquote_details SET service_variant = l_service_variant WHERE ftip=l_ftip AND sess_id=v_sess_id; --Updating sspt_prquote_details
COMMIT;
END IF;
Then the statements inside the if condition are not being executed. At the same time if I am replacing NOT IN with IN only and making changes to get if condition true then it is going inside the IF condition.... Could anyone please help me on thishow can we reproduce what you report?
while "not working" may be 100%, it is also 100% devoid of any actionable detail.
what results when it is not working?
how would working results supposedly appear?
How do I ask a question on the forums?
SQL and PL/SQL FAQ

Similar Messages

  • I am getting entity ref not referenced..end with ';' delimeter for the below code

    <mx:Image click="{navigateToURL(new URLRequest(' http://www.facebook.com/group.php?gid=149134532537&ref=ts'))}">

    You need to use XML entities for some characters in MXML. In your case, you can't use '&' directly: use '&amp;' instead.

  • I just bought a new iMac and used the Migration Assistant to transfer my files. Initially, all was working, but now a week later, I get the message that the application manager is missing, and I cannot get Photoshop and InDesign to launch. I do not want t

    I just bought a new iMac and used the Migration Assistant to transfer my files. Initially, all was working, but now a week later, I get the message that the application manager is missing, and I cannot get Photoshop and InDesign to launch. For my personal use, I did not a need to join Creative Cloud. Have you any suggestions for a work-around?

    Try to install Adobe application Manager from below link and check
    Adobe - Adobe Application Manager : For Macintosh : Adobe Application Manager : Thank You

  • My firefox works but my safari will not load anything

    my firefox works but my safari will not load any websites

    What OS version are you running?
    10.10
    Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. Then try Safari/History/Show History and delete all history items.  Quit/reopen Safari and test. You can also try try Safari/Clear History and Web Site Data. The down side is it clears all cookies.Doing this may cause some sites to no longer recognize your computer as one that has visited the web site.
    Earlier.
    Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. Then try Safari/History/Show History and delete all history items.  Quit/reopen Safari and test. You can also try try Safari/Reset Safari. The down side is it clears all cookies.Doing this may cause some sites to no longer recognize your computer as one that has visited the web site.

  • Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • My printer HP photosmart was working but now says printer not responding. Wireless network test came back with no problems. Any suggestions on how to fix this?

    My printer HP photosmart was working but now says printer not responding. Wireless network test came back with no problems. Any suggestions on how to fix this?

    marie274 wrote:
    My printer HP photosmart was working but now says printer not responding. Wireless network test came back with no problems. Any suggestions on how to fix this?
    What exactly happens between the the time the printer was last working well and no on your system? Any updates or upgrades?
    Lupunus

  • Iphone 4 slide to unlock and slide to power off will not work but all other touch features work

    Iphone 4 slide to unlock and slide to power off will not work but all other touch features work properly

    You will have to get it serviced.

  • My iPhone 3GS (working on iOS 6.1.3) has not backed up to iCloud for the past 10 weeks.

    My iPhone 3GS (working on iOS 6.1.3) has not backed up to iCloud for the past 10 weeks. And whenever I try Backing up to iTunes or to iCloud via either a pc or a Mac, I get the message: "Itunes could not backup the iPhone because an error occured". I tried turning off all apps for backup, but that did not help. I tried deleting all the photos and that did not help either. I tried the backup trobelshooting and I have tried using different computers. I'm completely stomped.

    Hi ShakedG,
    I'm not sure if this is what you were referring to, but I just wanted to make sure that you had seen the following article:
    iOS: Troubleshooting backup issues in iTunes
    http://support.apple.com/kb/ts2529
    Regards,
    - Brenden

  • Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode.

    Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.

    I rewrote code for debugging purpose and tried to catch error using GetLastError();  method,
    but it only printed 0. Below is code snippet; I think Create() throw an exception
    and code goes to catch block. 
    LONG ConnectTS(CString strIP, UINT n_Port)
    try{
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
    // Exception Line
    n_Err = GetLastError();
    return NET_INIT;
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image
    System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Output: -
    ConnectTS is calling Create [is going to call]
    Image System
    0

  • I can't read acsm files on my e-reader after transferring them from the pc with ADE. it seems to work, but then when I try to open the files on the e-reader it says "open failure". what's wrong?

    I can't read acsm files on my e-reader after transferring them from the pc with ADE. it seems to work, but then when I try to open the files on the e-reader it says "open failure". what's wrong?

    The acsm file is not the book, it is a ticket to get the book.  I sometimes get library books online, here is what I do.
    1. Start ADE on the computer
    2. Go to library website and find the book I want to download.
    3. Click on the download link
    4. In windows 7 a box opens asking whether I want to open( or run) or save the acsm file
    5. Click open/run and ADE downloads the book into the "Library"
    6. Transfer the book (epub file) to the reader.

  • HT4623 I have an ipad3, iPhone3gs and iPhone5, my problem is my apple ID works all 3 devices but I need a second ID for the iPhone 5. How do I delete my ID and set up a new one for the iPhone5 but keeping my own apple ID for the iPad and iPhone 3GS

    I have an ipad3, iPhone3gs and iPhone5, my problem is my apple ID works all 3 devices but I need a second ID for the iPhone 5. How do I delete my ID and set up a new one for the iPhone5 but keeping my own apple ID for the iPad and iPhone 3GS.

    http://support.apple.com/kb/he37

  • If my computer is not fully charged but i'm shutting it down for the night, is it better to leave it plugged in or to unplug it?

    If my computer is not fully charged but i'm shutting it down for the night, is it better to leave it plugged in or to unplug it?

    Your computer will not overcharge, even when off. If the battery is sufficiently low, it will top off the battery and stop charging. By morning, the light will be green because it is done charging.
    There is no need to disconnect the power when you shut it off. The SMC microcontroller will continue to supervise charging the battery, even when the main processor is shut down.
    https://www.apple.com/batteries/notebooks.html

  • ICloud is not backing up my contacts for the last month or so. i tried turning it on and off but to no avail. suggestions?

    contacts backup to iCloud
    iCloud is not backing up my contacts for the last month or so. i tried turning it on and off but to no avail. suggestions?

    if you can't get it to reboot then I would let it run out of power that result in a reboot if
    the screen then don't comes on when you charged it again then I would say hardware defect
    and repair needed

  • My macbook has Itunes and I am trying to download some songs that I bought on my Ipad onto the macbook. It has worked in the past, but one song has been downloading for the last day. No more will download it seems stuck downloading.

    My macbook has Itunes and I am trying to download some songs that I bought on my Ipad onto the macbook. It has worked in the past, but one song has been downloading for the last day. No more will download it seems stuck downloading. I don't need the song. But I want the others to download.

    Hi there,
    You may find the information in the articles below helpful.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    -Griff W. 

  • Finally got face time to work - but screen freezes and can't continue the call

    finally got face time to work - but screen freezes and can't continue the call - how can I fix this problem?

    Probably a network problem but see here for troubleshooting: http://support.apple.com/kb/TS3367

Maybe you are looking for

  • My Adobe Photoshop Elements 7.0 (Editor) function has suddenly stopped working. Windows cannot seem to solve the problem. Any anwers

    I receive Adobe updates on a regular basis without any problems. The other day, my Adobe Photoshop Elements 7.0 (Editor) function has suddenly stopped working. Windows cannot seem to solve the problem. I can open all the other function buttons withou

  • Can i use CMSS-3D with my Sennheiser PC-160 heads

    I have X-fi Fatality and Sennheiser PC60 Headset, should i activate CMSS-3D for best sound in games or what?Thanks?Message Edited by freddeman on 0-30-200609:57 AM

  • Seemingly Impossible Problems with iTunes

    I've never had any problems with iTunes until a few months ago, and I've been unable to use the program since. It all started when I upgraded to iTunes 10, and my computer randomly started to freeze every time I tried to open the program. I thought t

  • Jdeveloper 11 preview 4 problem

    at the first time when i trying to start up the server i have the following problem please advice SEVERE: Server start failed processing configuration java.security.AccessControlException: access denied ( CredentialAccessPermission credstoressp.creds

  • Impact on changing material group

    Hi all, May I know what is the pre-requisite/note that I need to pay attention if I wish to change the material group for some existing material? May I know what is the concern/impact if I perform the changes? Thanks and regards, JT