Any workaround for - Like '%VALUE' to reference the index

Hi
I have an index on Col1 but it is not referenced because i am making like '%value'
EX:
where Col1 LIKE '%VALUE'
this is a business request to search %Value and not Value%
is there is any workaround for that ?
Thanks

Define working perfectly.
Just because it's using an index doesn't mean it's efficient.
One proper solution here is to create a function-based index to reverse the string.
You could use the undocumented, unsupported REVERSE function to test but as a proper implementation you should probably implement your own reversing function.
That way, instead of a leading wildcard, you end up with a trailing wildcard and you can use an appropriate index when suitable.
e.g. something like
CREATE INDEX i1 ON t1 (REVERSE(col1));
SELECT *
FROM    t1
WHERE REVERSE(col1) LIKE REVERSE('%Value');

Similar Messages

  • Any workarounds for the 2880 pixel size limit?

    I have a client that would like a Flash animation that's 5440
    pixels wide, to span 3 widescreen monitors for a tradeshow
    presentation. Flash won't let me make the stage any bigger than
    2880 - does anyone know any ways around that limit?
    I Googled it and found out that you used to be able to scale
    the SWF beyond 2880 in an HTML file, and it would show well using
    Flash Player 7, but apparently that trick no longer works in
    Players 8+.
    Any other ways to make a single SWF that can span 3 large
    monitors?
    Thanks in advance,
    - Frank

    The problem here is the legacy flash document size constraint of 2880 x 2880 pixels. Why is this limitation still in place? Most screen have landscape orientation and we have this square constraint that turns out to be a waste if you are developing for larger screen displays and anything that is 4:3 or 16:9. Something does not add up here. What if someone needs to make a dual wide screen HD show that measured 3840 x 1080 pixels? We can do setup documents at 3840 x 1080 pixels in PowerPoint, PDF, Silverlight (at least this is what I have read regarding Silverlight), but not in Flash. Why not?
    If Flash is a platform… then it needs to spread its wings a bit and embrace all the potential uses that are non-web. Flash represents multimedia delivery to millions, but shackling it to the 2880 x 2880 pixel limitation for a document size is problem for many people now and looming for those working toward have the flash engine as a core component in media delivery. At least give us a dual Wide screen monitor resolution of 3840 x 1080 pixels instead of a square of 2880 x 2880 pixels – which no one really uses (at least I have not seen any sqaure screens lately). Hey, if Adobe decided to shave off on the unused pixels from the 2880 height (2880 – 1080 = 1800) of the format you get an additional 1800 pixels that could applied where it is needed – to the width of the document size… giving us a 4680 x 1080 pixel document. This could then be used for immersive simulation, game situations, and real-world wide-screen experiences.
    Sorry I don't have an answer, just the same question. "Any workarounds for the 2880 pixel size limit?"

  • Any workarounds for the X11 apps segmentation faults on intel with 10.4.8 ?

    Hi,
    We've an X11 application, compiled for PPC, which runs fine with a G5 iMac on 10.4.8. However, it crashes with a segmentation fault on a MacBook Pro with 10.4.8 (running through Rosetta).
    Searching the web, we found that this seems to be a widespread problem for X11 apps running on Intel Macs with 10.4.8.
    Has this been submitted as an important bug to Apple?
    Are there any workarounds for it?
    Is the problem specific to PPC-only builds, or does it also happen with Universal builds?
    Thank you for any hints you could give about this,
    cesar
      Mac OS X (10.4.8)  

    A powerpc-binary program running under Rosetta can only load powerpc-binary modules...can't cross in and out of emulation within a single process. Perhaps your program is trying to load a module from X11 that is present as an intel-only binary? Rosetta is certainly no future-looking cure-all, just a stop-gap to allow one to keep using older stuff, and it is kinda fragile sometimes. If your target audience is both powerpc and intel machines, compile as a universal binary so it's native for everyone.

  • Is there any workaround for URL & TABS

    Hi ,
    1.I have the following case mentioned at :
    URL region error when changing tabs
    2. I would like to know if there are any workarounds for this case, due to we urgently need this functionality.
    Thanks in advance
    Etay G

    Etay,
    The question on the post you referenced was answered thoroughly and has nothing to do with the subject of this post.
    If you have a new question, please post it here in full detail.
    Scott

  • Any workaround for mixed media playlist on ipod classic?

    On Itunes I can create a mixed media playlist (music and music videos)
    I can put that playlist on my ipod.
    But when it comes to playing the video the ipod will only show the audio if coming from the playlist.
    It shows up fine when being accessed via music videos.
    If I plug the ipod into itunes, and click "on this ipod" my playlist shows up.
    When I play the playlist on the ipod and a video comes up, the video starts in itunes with no problem.
    Does anyone have a workaround for this to happen on the ipod classic?
    Can I encode audio only in mp4?
    Then maybe all songs will be listed as music videos, and those with audio only will display the cover?
    Just brainstorming out loud here.
    Thanks,
    Dan
    P.S. Just noticed other people had a similar question.  A lot of discussion but no definitive answer.
    Maybe someone will have discovered a workaround since the last thread.

    I found the problem !!! I had many smart playlist with a rule that was -> "Album - is - "empty"". It seems that the new iTunes this kind of "empty rule" would not accept. I had to add a new rule -> "Playlist - is - Music". Now it shows all the songs on the iPod.
    It seems to be an Apple Bug on iTunes. I hope they can resolve this problem.

  • The billing address it's correct ! why we can't place any order for this address ? On the screen appear that the address is not correct !

    the billing address it's correct ! why we can't place any order for this address ? On the screen appear that the address is not correct !

    Adobe Reader is free; you don't need to order it.
    If you try to order another product or service I suggest to Contact Adobe Customer Care.

  • Where is the bookmarks stored? I Install the Firefox once again since I upgrade my computer.Is there any folder just like "favourite"to store the html file? I really want to find out the bookmarks because actually i can't remember all the website that ar

    Where is the bookmarks stored?
    I Install the Firefox once again since I upgrade my computer.
    And I try to move the bookmarks from the old computer to the new one.
    But I can't find anyone of them.
    Is there any folder just like "favourite" to store the html file?
    I really want to find out the bookmarks because actually i can't remember all the website that are important to me~ URGENT!!!~THANKS~

    You can move file named places.sqlite from your old profile to the new one. It contains bookmarks and browsing history.
    Here's a knowledge base article about it: [[Recovering important data from an old profile]]
    If you don't care about saving your current bookmarks, you can skip creating new profile (Firefox does it by itself at first run anyway).
    I'd might suggest you to install addon https://addons.mozilla.org/en-US/firefox/addon/2410/|Xmarks Bookmark and Password Sync]. It is a free web service which synchronizes bookmarks and (optionally) passwords with central server, and then to other computers, if you installed it on more. You may treat is as a backup too.

  • Is there any way for my ipad to piggyback the internet from my iphone when i am not in a wifi area... The guy at the ATT

    Is there any way for my ipad to piggyback the internet from my iphone without having to purchase a "plan" from ATT&T....The guy at the store said that I had to purchase a new plan with "so much" GB per month and loose my unlimited amount that I am grandfathered into with my current plan... any thoughts?

    Unfortuneatly, you would have to give up your unlimited plan. In the US you would have to get the 2GB plan for $25 and add the teathering plan for $20 more.  The teathering plan would give you another 2GB of data for a total 4GB.

  • Is there any workaround for Bug 6644652 ?

    Hi
    This issue is documented in DBAppTables GTC Connector at Known issues:
    "Bug 6644652
    Reconciliation of account deletion is not supported. In other words, if a record is
    deleted from the target database, then this deletion is not reconciled into Oracle
    Identity Manager"
    Is there any workaround that can be used ?
    Thank You in advanced,
    Ionut

    EHLO!
    Today I ALMOST finalized my delete-recon (is for AD objects, but I think it may work in many contexts). As the pals said, you have to use the createDeleteReconciliationEvent method from the operations API.
    I had a big problem: I spent a day looking for a NullPointerException that was raised just when this method is called. I realized that there is not a problem itself, the exception was raised because I was launching from the Eclipse project! So, instead of develop all the stuff and then pass it to OIM, I had to maje the jar, put it into the ScheduleTask folder, and execute it with the Task Scheduler from the Design Console, or from the Admin Console.
    For a brief:
    1) make a class that extends com.thortech.xl.scheduler.tasks.SchedulerBaseTask
    2) implement the execute() method
    3) for creating the operator, you can call (tcReconciliationOperationsIntf)getUtility("Thor.API.Operations.tcReconciliationOperationsIntf") (getUility is inherited from SchedulerBaseTask)
    4) Make some Map object, with key/value pairs. Keys have to be the same as they appear in the Reconciliation Fields of the Resource Object, and at least you have to put the required ones. Call the method, the first parameter is a String with the RO ("Xellerate User", "AD User", "Exchange", etc).
    For example, you can make something like this:
                   HashMap hm = new HashMap();
                   hm.put("User ID", "drldap");
                   hm.put("objectGUID", "12345679");
                   try {
                        reconOps.createDeleteReconciliationEvent("AD User", hm);
                   catch(Exception e) {
                        e.printStackTrace(System.out);
    Hope it was helpful. Enjoy!
    DrLDAP!

  • Crosstab problem:  Any workaround for that?

    Post Author: jef.zapata
    CA Forum: Charts and Graphs
    Hi,
    I've got a mater report, in which I use a subreport as detail. My subreport consist as a crosstable. For each record of the master report, I pass in parameter a key to the subreport to get the appropriated crosstable. The problem is that for one crosstable, I can get multiple page, and when printing/previewing the master report, if the record row returns a crosstable on multiple page, I only got one page print: the next ones are missing.
    Is there a way to prevent that? Is there any workaround? maybee its my method that is not the best one to use in this case...
    Thanks!

    Define working perfectly.
    Just because it's using an index doesn't mean it's efficient.
    One proper solution here is to create a function-based index to reverse the string.
    You could use the undocumented, unsupported REVERSE function to test but as a proper implementation you should probably implement your own reversing function.
    That way, instead of a leading wildcard, you end up with a trailing wildcard and you can use an appropriate index when suitable.
    e.g. something like
    CREATE INDEX i1 ON t1 (REVERSE(col1));
    SELECT *
    FROM    t1
    WHERE REVERSE(col1) LIKE REVERSE('%Value');

  • Are there any shortcuts for creating Value Object Classes?

    Hi,
    I'm using a Remote Object to connect to my server
    (pyAMF/Django). I'm getting stuck with the creation of Value Object
    Classes. It doesn't seem very DRY to have a class on my server
    representing the data model and then have to recreate that class
    and all its properties in my Flex app.
    Are there any shortcuts for creating client side VOs from
    server side data?
    I was thinking about declaring an empty VO class in Flex, and
    then dynamically assigning/casting my Proxy object to that class.
    It seems like that approach may cause problems for the Flex
    compiler though.
    Any hints?
    Thanks!

    quote:
    Originally posted by:
    tptackab
    Oh man, do I feel your pain. I'm not sure what middle-tier
    technology you're using, but I'm using Java (w/Spring) and I
    absolutely hate having to create and maintain two sets of VO (aka
    data transfer - DTO) object for Java and Flex.
    One thing that has helped me in that area is a free tool from
    Farata Systems called
    DTO2Fx. If you're using Java and Eclipse, it's a great time saver.
    You simply install a (very lightweight) Eclipse plugin, add a
    single annotation to your Java VO classes, and it automatically
    generates your Flex VOs. It even creates a base and extended
    version of each VO on the AS3 side so you can add code to the
    extended VO without fear of having your changes overwritten when it
    regenerates your Flex VOs.
    Here's a like to thier
    PDF that
    gives instructions and a download link. I had it up and running in
    my application in less than 30 minutes!
    I'm using Python/Django serverside (PYAMF is my AMF
    serializer).

  • Is there any workaround for exporting 24 bit AAF of OMF in soundtrack?

    Hi
    Soundtrack pro seems to have only 16bit AAF export function. Is there any workaround to be able to export a multitrack session in higher bit (24bit industry standard) resolution, in AAF or OMF format?
    I know Final Cut has 24bit AAF export funcion, but sending clips from soundtrack to Final Cut seems not possible. Only sending mastermixes to FC is possible. But I want to send individual clips to FC.
    Or any other suggestions are welcome for solving this problem.
    Thanks!
    Xske

    If Premiere offers you the option to use hardware encoding, then your card is recognized. There is normally nothing more to do.  If I understand you correctly, you are concerned that Premiere is not using the card.  There are 2 ways to check if it is:
    1. Install someting like GPU-Z (google it, it's free) to monitor the GPU. Start to encode something that will actually use CUDA cores, and you should see some activity reported, given as a percentage.  Keep in mind that CUDA is only used for some specific tasks (some effects, resizing) when encoding.
    2. Export a file that will use CUDA when encoding 2 times, once with hardware encoding enabled, and then with software only. Is there a difference in the time needed to complete the export?

  • Any workaround for maxTouchPoints=1 issue on Android device?

    Hi all,
    Does anybody know a workaround for incorrect maxTouchPoints (always return 1) on Android device?
    I've reported the bug in the following ticket. I'm urgently looking for a way to work around this issue.
    https://bugbase.adobe.com/index.cfm?event=bug&id=2947368
    Any hint is appreciated.
    Thanks

    Hi,
    I just wanted to follow up.  It looks from your bug comments like the issues you experienced in AIR 3.2 have been resolved AIR 3.3.
    Are there any outstanding problems that you're seeing with regard to the issues you've described that we need to look into further for AIR 3.3? 
    Thanks!

  • Help to search for a string value and return the index in the arraylist

    Hello,
    I just start java programming for the last three weeks and I cannot find a solution for this problem. I have the following List with string and integer value as shown below:
    List<Empl> list= new ArrayList<Empl>();
         list.add(new Empl(1,"Jim", "Balu",88);
         list.add(new Empl(3,"Bob", "Howards",2);
         list.add(new Empl(2,"Chris", "Hup",8);
    I have no problem of sorting this arraylist either by firstname or lastname. However, I cannot think of a way to search for a firstname or lastname and returing the whole row. I do not want to use index since I am asking user to enter the name to search. Here is my code to search for an empl based on index.
    System.out.print("Please enter index to search or (q)uit: ");
              String ans = sc.next();
              System.out.println();
              int ians = Integer(ans);
              if (ans.equalsIgnoreCase("q"))
                        choice = "n";
              else
              System.out.println("index " + list.get(ians)); //this will print out the whole row based on the index
    Since the user will never seen the contents of the arraylist, is there a way that I can search by string last/first name and will get the index location in int if the result is met?
    Please advice and thank you.
    Bob.

    user11191663 wrote:
    Since the user will never seen the contents of the arraylist, is there a way that I can search by string last/first name and will get the index location in int if the result is met?Another possibility is to set up an ArrayList for each thing you want to search on and then every time you add an employee, add the piece of data you want as well, viz:
    Empl e = new Empl(1,"Jim", "Balu",88);
    list.add(e);
    firstNames.add(e.firstName());As long as you always add them in the same order, the indexes will match, so you could do something like
    ians = firstNames.indexOf(nameToFind);to return the index of the name, if it's there (if not, it will return -1).
    I wouldn't recommend this as standard practise, but it should be OK for the level you're at.
    NOTE: indexOf() returns the index of the FIRST matching item. You may want to think about what you want to do if there are more than 1.
    Winston

  • Is there any workaround for log LNs in read-only env. UNEXPECTED_STATE

    I'm at 5.0.43 and encounter the same problem mentioned in The Berkeley DB Java Edition Package: BDB JE Library Version  11.2.5.0 (Release 5.0.55) Change Log
    Fixed a bug that caused an exception such as the following, when opening an Environment in read-only mode. This occurred under certain circumstances when a clean shutdown (final checkpoint) was not performed when the Environment was last used by a read-write process.
    I have below 2 questions:
    1) I want to know if there's any workaround to this problem without having to upgrade BDB-JE.
    2) Just want to make sure we will not have data compatible issue if we have to upgrade to the latest version
    Thanks for your help.

    This is a transient problem when opening in read-only mode.  It does not cause corruption or a compatibility issue.
    If you open the environment read-write and perform a normal shutdown (Environment.close), then it should be possible to open the environment read-only again.
    However, it is possible that it could happen again if the read-write process exits without calling Environment.close.  The only way to guarantee it won't happen again is to always call Environment.close in the read-write process before opening it read-only, or upgrade to the latest version of JE 5.
    --mark

Maybe you are looking for