Using = and =

I have created a function that accepts two parameters fromstyleid and tostyleid. These parameters can either have a % or a value. When I pass in a value for the TOSTYLEID I get all rows up to the specified row but not the value that was passed. If I execute a select against the database using the same syntax I get the top value returned.
This is the portion of the where clause that uses the parameters:
AND (SEWN.STYLE.STYLE_ID >= DECODE(''' || FromStyleID ||''', ''%'', SEWN.STYLE.STYLE_ID,''' || FromStyleID|| ''')
AND SEWN.STYLE.STYLE_ID <= DECODE(''' || ToStyleID ||''', ''%'', SEWN.STYLE.STYLE_ID,''' || ToStyleID|| '''))
This would return 7 rows if it specify 18803 for the fromstyleid and 30011 for the tostyleid
if I execute the following in SQL Plus I get 8 rows
select styleid from styles where styleid >= 18803 and styleid <= 30011
Any suggestions on what is happening would be greatly appreciated.
Thom

Below is the full function. Dynamic sql is being used because one of the parameters, divisionid, is passed in as either a single value or a list of values seperated by ,. The commas are replaced with ',' and a single quote appended to front and back of the new string. If there is a different way to do this then please advise.
create or replace FUNCTION UF_ITM(BusinessUnitID char, DivisionID char, FromStyleID char, ToStyleID char, ProductType char) return types.ref_cursor
AS
itm_cursor types.ref_cursor;
divid varchar(25);
BEGIN
divid := '''' ||replace(divisionid,',',''',''') || '''';
OPEN itm_cursor FOR
'SELECT
STYLE_COLOR_ID.CURRENT_COST_PERIOD_CODE,
STYLE.STYLE_ID,
STYLE.STYLE_DESCRIPTION,
STYLE.UNIT_OF_MEASURE_CODE,
STYLE_COLOR_ID.COLOR_ID,
DIV_LBL.LABEL_ID,
STYLE.STYLE_CATEGORY_ID,
STYLE_COLOR_ID.INVENTORY_GL_CATEGORY_CODE,
STYLE_COLOR_ID.SIZE_RANGE_CODE,
STYLE_COLOR_ID.STY_COLO_IDEN_INVE_USAG_IND,
STYLE_COLOR_ID.DEFA_DEMAND_SIZE_SCALE_CODE,
STYLE_COLOR_ID.DEFA_SUPPLY_SIZE_SCALE_CODE,
STYLE_COLOR_ID.IDENTIFIER_ID,
STYLE.EDI_SELECTION_CODE, STYLE_COLOR_ID.STYLE_COLOR_IDEN_BOM_LEVEL,
STYLE.DIV_ID
FROM
STYLE_COLOR_ID,
STYLE,
DIV_LBL,
SEWN.LABEL
WHERE
( STYLE.BUID=DIV_LBL.BUID(+)
and STYLE.DIV_ID=DIV_LBL.DIV_ID(+)
and STYLE.LABEL_ID=DIV_LBL.LABEL_ID(+) )
AND ( DIV_LBL.BUID=LABEL.BUID
and DIV_LBL.LABEL_ID=LABEL.LABEL_ID )
AND ( STYLE.BUID=STYLE_COLOR_ID.BUID
and STYLE.STYLE_ID=STYLE_COLOR_ID.STYLE_ID )
AND ( LABEL.BUID = ''' || BusinessUnitId || ''')
AND (STYLE.STYLE_ID >= DECODE(''' || FromStyleID ||''', ''%'', STYLE.STYLE_ID,''' || FromStyleID|| ''')
AND STYLE.STYLE_ID <= DECODE(''' || ToStyleID ||''', ''%'', STYLE.STYLE_ID,''' || ToStyleID|| '''))
AND STYLE.STYLE_PRODUCT_TYPE_IND LIKE ''' || ProductType || '''
AND STYLE.DIV_ID IN (' || DivID || ')';
RETURN itm_cursor;
end uf_itm;
/

Similar Messages

  • Apparently I have MULTIPLE Apple ID's, many linked to very old computers/emails that I no longer use and I have no clue what they are nor what the passwords could possibly be. I just want to be able to listen to music THAT I OWN!

    I am trying to play music on my iTunes that I had burned from either CD's that I had bought & own (in order to preserve the CD from damage and it is all only for my personal use) or purchased through iTunes. Much, but not all of this was done on an old computer, and on old e-mails that no longer exist, and for that matter I have no clue what the passwords could possibly be! The computer that I use now is at least 10 years old, so how am I supposed to remember passwords from that long ago? I am constantly being told to reset my password, but that apparently just seems to compound the issue. One account will not even accept my birthday and my security question which I know with 100% certainty are correct. I JUST WANT ACCESS TO MUSIC I OWN OR HAVE PURCHASED over the past 20+ years, and I don't care what computer I did it on or what e-mail address I used, and forget about trying to recall my password! Apple makes it so difficult to do passwords it's ridiculous! I would need a book to write down every password that I have tried, and apparently not succeeded in using! add to my frustration is that my son put literally TONS of his music onto my computer and used his various Apple ID's and passwords, and it's just a bumble cluck of a mess. AGAIN, I only want access to MY MUSIC!

    You're supposed to remember them or make note of them because they are key to a resource in which you have invested financially, just like keeping records for bank accounts you have or keys to your car.  It is just that people haven't woken up to the importance of having a digital legacy too.
    Here are resources for forgotten passwords:
    https://iforgot.apple.com/
    http://www.apple.com/support/appleid/contact/
    Contact Apple for help with Apple ID account security - http://support.apple.com/en-us/HT5699 "This article provides country-specific Apple Support contact information for customers seeking help with their Apple ID password or other security-related issues."

  • I need to do a clean install of maverick on my 2010 mbp what disk do i use and how do i move certain files from an external hard drive

    I want to do a clean install of maverick on my 2010 mbp.  I need to know what disk to use and also how i take certain files off my external hard drive and put on my computer.  When I was having problems with my airport they did a clean install and they pulled files of my time machine.   however they forgot to put the partition back in for a windows side.  Originally I had Parellels on my computer.  After my external hard drive got corrupted i called apple and they fixed the problem but didn't have me set up the time machine except for the external hard drive.  Now my only back up is from the external not from the laptop.    I am not sure how to do any of this.  I am not computer savvy...PLEASE I NEED  HELP>

    First, you need to make a backup of your MBP onto your external drive. I suggest you start by cloning your MBP drive to the external drive:
    Clone Mavericks, Lion/Mountain Lion using Restore Option of Disk Utility
    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.
         1. Select Disk Utility from the main menu then press the Continue
             button.
         2. Select the destination volume from the left side list.
         3. Click on the Restore tab in the DU main window.
         4. Select the destination volume from the left side list and drag it
             to the Destination entry field.
         5. Select the source volume from the left side list and drag it to
             the Source entry field.
         6. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    This clone is fully bootable and also contains a clone of your Recovery HD.
    Second, you need to do a clean install of OS X onto your MBP as follows:
    Install or Reinstall Mavericks or Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    OS X Mavericks- Erase and reinstall OS X
    OS X Mountain Lion- Erase and reinstall OS X
    OS X Lion- Erase and 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.
    This should accomplish your goals. You will have a clean install of OS X on your MBP and a bootable clone of your old system and all your files on the external drive.

  • I am getting frequent lock-ups and blue screens during boot up. The lock ups occur during normal use and I cannot click anything or force quit. The cursor shows something is loading, but never stops. I have to use power button. Ideas?

    I am getting frequent lock-ups and blue screens during boot up on my Mac Pro.  The lock- ups occur sometimes during normal use and I cannot click anything or force quit. The cursor shows something is loading, but never stops. I have to use power button.
    I had the Mac Defender malware and I have used apple jack but still having issues.

    I am getting frequent lock-ups and blue screens during boot up on my Mac Pro.  The lock- ups occur sometimes during normal use and I cannot click anything or force quit. The cursor shows something is loading, but never stops. I have to use power button.
    I had the Mac Defender malware and I have used apple jack but still having issues.

  • I have a contact I no longer use and have deleted it from Contacts on my iMac and iPad, but it still keeps appearing in the To: box when I enter a similar contac, obote the iMac and iPad. How do I completely delete it to prevent this from happening? Thank

    I have a email address I no longer use and want, so have deleted it from my address book on my iMac and iPad. It kept reappearing when I started to type a similar email address, so I was advised to delete it by going to Mail on the iMac...  Mail > Window > Previous Recipients... and Delete from there... which worked, and it now no longer appears in the To: box when typing a similar email address in Mail on my iMac.
    However, even though I have deleted the same contact/email address on my iPad, it still appears when typing a similar email address in Mail on the iPad. How do I perform a similar action as I did on my iMac, to prevent it from reappearing?
    Hope someone can help.
    Thanks, Simon.
    On the iMac..

    The only way that I currently know of to remove old and invalid email addresses on the iPad is to restore back to factory defaults, which I assume that you won't want to do. You could try leaving feedback for Apple, and maybe in a future update we'll be able to edit them : http://www.apple.com/feedback/ipad.html

  • When trying to update  Apps in iTunes on my computer my old Apple ID appears, which is no longer in use and has no password; even when I try to create a password for this Old ID, Apple won't let me. When I go into see my Account settings My new Apple ID /

    When trying to update  Apps in iTunes on my computer my old Apple ID appears, which is no longer in use and has no password; even when I try to create a password for this Old ID, Apple won't let me. When I go into see my Account settings My new Apple ID / iTunes ID are listed and the passwords are correct obviously so why can't I update my Apps?   Why does my Old apple ID keep appearing and how can I get Apple to change this?

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • I changed my AppleID a long time ago to an email that I no longer use and I have updates for apps that I can't update because my old email is filled in to where i sign in and it wont let me change it to my new one???

    I changed my AppleID a long time ago to an email that I no longer use and I have updates for apps that I can't update because my old email is filled in to where i sign in and it wont let me change it to my new one???

    The problem with those two apps is that they are supposed to be in your Apple ID and you didn't set up the Mac properly/completely when you got it.
    You might try deleteing them and using OS X Recovery to install them again.
    OS X Recovery -
    http://support.apple.com/kb/HT4718
    After that, before you open any iLife apps go to your Mac App Store account, to the Purchased pane and Accept them into your account.

  • I am trying to use an education program that needs Java applets to install and use and it will not use Safari. When I download IE from the web it will not install. How can I get a browser that will work on my MacAir for travel use of this program?

    I am trying to use and education program that needs Java applets and it will not run on Safari. IE will not install from the web. How do I get a browser that will work to install so I can use this program when I travel.

    Try using FireFox. IE will only run on a Mac if you run Windows on the Mac.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • My iPad has a different Apple ID than the Apple ID on my computer. The iPad Apple ID has an email address that I no longer use. If I try to add the email address that I now use (and which is my Apple ID on the computer), it won't allow me to add it.

    My iPad has a different Apple ID than the Apple ID on my computer. The iPad Apple ID has an email address that I no longer use. If (while on the iPad) I go to My Apple ID and try to change or add the email address that I now use (and which already is my Apple ID on the computer), it won't allow me to add it. It says : "Email address is already verified for another Apple ID"  I haven't really been aware of this as a problem until I tried (for the first time) to sync my iPad to the computer and became aware that certain things wouldn't transfer. What is the solution to this?

    What are you having problems with ?
    This post was about having updated the primary email address on an iTunes account via a computer - if you do that you might need to log out of the account on an iPad by tapping on the id in Settings > iTunes & App Store and then log back in with the updated version of the account for that email address change to be recognised on your iPad. If you don't log out and back in then an iPad (or iPhone or iPod Touch) might continue to show the old version of the iTunes account id.

  • Hi! ... When configuring my new iPad, it says the UserId is already in use and I cannot progress any more. Of course it's in use, it's my UserId. How do I continue ?? ... Thanks in advance

    Hi! ... When configuring my new iPad, it says the UserId is already in use and I cannot progress any more. Of course it's in use, it's my UserId. How do I continue ?? ... Thanks in advance

    Did you select "Sign In with an Apple ID" as opposed to "Create a free Apple ID" when setting it up?

  • I am trying to delete an XLS file from a network drive and am getting a message that says the file cannot be deleted because it is in use.  I can't see where it is in use and have tried to reboot the computer to no avail.

    I am trying to delete an XLS file from a network drive and am getting a message that says the file cannot be deleted because it is in use.  I can't see where it is in use and have tried to reboot the computer to no avail.  I can delete other files but several XLS files are giving me this message.

    You said it was a network drive.  So is someone else on the network using that same file or may have have left with excel still accessing it on their system?

  • IPhone 4 I can't use my Safari app. Every time I try to open it, the LAST app that I had used (and closed out of) opens instead of Safari. Any ideas? Thanks!

    Sorry! I didn't realize that a message window opened up, so am not sure if my entire question showed up. I can't use my Safari app at all. Every time I try to open it, the app I used (and closed) previously opens instead. It doesn't matter what app it is, it is just the previous app used. Settings: 4.2.6 (8E200). Model MC676LL.  Please help...Thanks!
    Kimmons09

    Thanks Meg,
    I had tried that, but tried it again. No luck...this is so frustrating! Can anyone help? I tried calling Tech Support but I am one month over the "Phone Support" warranty even though I pay monthly for a continued warranty. GRRRR Any ideas?? Thanks!
    Kimmons09

  • My 6th generation Ipod Classic will not eject, works fine otherwise and properly goes thru sync cycle.  A message shows files are in use and device can't be ejected.  If I close my internet browser it will eject properly every time.

      I have a new HP Pavilion running Windows 7 with lots of memory and a terabyte of storage, using iTunes 11 with a 6th generation Ipod Classic.  Have used my current iPod for years with no problem until today; when I try to eject the device iTunes stops responding, there is a delay of about 10-15 seconds until a message box pops up: "the ipod cannot be ejected as there are files in use."  It also won't eject from the windows taskbar, same type of message appears. iTunes remains unresponsive until I click "ok" on the message box. I've reset the ipod twice and disabled the "enable disk use" button for the ipod -- with no change in symptom.
      I am not certain as to the fix but am 100% sure that the problem does not occur if I close my open browser; it occurs only when I have an Internet browser open.  I experimented with Google Chrome that I normally use, and also with Internet Explorer -- when either browser is being used the ipod cannot be ejected.
      I've used iTunes 11 for about 3-4 weeks and this problem had not occurred until today.

    I have had similar issues with mine, happens mainly if I transfer songs and then decide to disconnect my iPod to listen to them with my IEMs (I use Interenet Explorer in my case and it is not neccessarely up when this happens, so I seriously doubt it is an issue conencted to the web browser). I have no patience for this so my trick is I try to eject it from iTunes, if that does not work, then I bring Windows explorer up, right mouse click on the iPod mounted drive and select Eject. It gives me the same warning but there is a third button selection called Continue. When I choose that it just disconnets the drive anyway and the iPod is finally disconnected. It seems to work each and every time I do it so this solution is fine for me. Would be intersting to see what the real root cause of this is because I started getting this problem with the newer iTunes 11.

  • On my iphone, icloud is set to an apple id that i no longer use and i keep getting asked to enter a password. Cannot remember the password. When i try to re-set the password, it sends a email to a address no longer used. Will not accept any dob i enter

    I have icloud on my phone with an apple id that I no longer use. I keep getting asked to enter the password for this ID. However I can't remember the password.
    When I try to re-set the password, a e-mail will be send to an address I no longer use and can't access.
    I then try to answer the security questions, but the date of births I enter are not accepted
    Any ideas?
    Paul

    Welcome to the Apple community.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID, verify the changes, enter the password as requested on your device and then turn off "find my phone".
    You should then change your Apple ID back to its current state, verify it once again, delete the iCloud account from your device and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • I do not use and do not want an iCloud account and I keep getting requests to sign in....how do I stop the request?

    I do not use and do not want an iCloud account and I keep getting requests to sign in....how do I stop the request?

    If you bought the machine new yourself, and did not enter a password when configuring it, leave the field blank.
    If you bought it used, then you need to reset the password, as described here:
    Apple Article to reset the password

  • How do I use the same Icloud address on my Ipad and Iphone ? I went to put my icloud address on my Iphone, but ttells me it is already being used and to create another one, which I dont want to do

    I have just bought an Iphone 4s to compliment my Ipad Air, I want to use my Icloud address on both machines but cant get my iphone to accept my icloud address, it tells me it is already in use and to create a new one, which is not what I want.. How do I get the same email on both devices?

    it tells me it is already in use
    You will need to contact the previous owner of the iPhone in order to change the Apple ID.

Maybe you are looking for

  • Adobe Cloud Which Software does it come with

    With Adobe Cloud Which Software or apps does it come with?

  • Extract text file from a folder and read the content

    Hi I have "n" no.of text files saved in a folder with automatically generated naming convention which include DD/MM/YYYY and also some measurement output value. Eg: 1) Die_1_DUT_outputvalue_DD_MM_YYYY.txt     2) Die_1_DUT_outputvalue_DD_MM_YYYY_ABC.t

  • ITunes 8 will not install

    Since my old iPod died I invested in a new iPod Classic only to learn that I had to upgrade to iTunes 8 to use it. Unfortunately after trying everything suggested in this and other forums, I have had no success in getting iTunes 8 to install. When I

  • I have windows 7 64 and downloaded ADE but cant open library book

    I checked out books from my local library to read on my laptop but ADE says file corrupt. Deleated everything and re downloaded but still wont open. Contacted library and they told me to uninstall then reinstall. I also checked out another ebook and

  • Common Libraries are only showing up graphic symbols, nothing else

    I've created my own common library but when i retrieve it from the common libraries drop down, the library only contains  graphic symbols even though there are movie clips, bitmaps and folders in the master file. If I open up the library by importing