How to use "like" with variables at right hand side ?.Urgent Pls..

How can I compare a column with a combination of columns.
columns are character
select ...from table1 t1,table2 t2 where
t1.col1 like t2.col1 || t2.col2
eg:
where p.upc = '0' ||r.upc_ccode||r.upc_mnum|| r.upc_mcode
this restricts LHS to start with 0 and values starting with non zero are not taken for comparison.I need to include those values also in comparison
p.upc can start with any char 0 -9.
p.upc ->char(12)
r.upc_commod_code||r.upc_mfg_num|| r.upc_mfg_it -> total char(11)
Any Help would be highly appreciated !
Thanks In Advance!

Hi ,
There is a simple solution to your problem....Its name is Regular Expressions.
Read the docs found in links:
http://www.oracle.com/technology/pub/articles/saternos_regexp.html
http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_regexp.htm
http://www.oracle.com/technology/oramag/oracle/03-sep/o53sql.html
NOTE: You have to use Oracle10g version!!!!!
Regards,
Simon

Similar Messages

  • In the new iTunes 11 where is the genius sidebar that used to be on the right hand side of your music playlist?

    In the old version of iTunes you had a genius sidebar on the right hand side of your music library that showed similar artists and songs to the song that was currently being played or highlighted in your personal library. Where is that function in the new iTunes 11?

    I looked under file but I couldn't find the "Genius & Playlist" option. I also looked under the other options on the top left side but I couldn't find it there either. And all "Genius suggestions" does for me is show similar songs already purchased in my library. It doesn't show me anything new that I haven't purchased.

  • How to use datamerge with variable lengths of text?

    Hello,
    I'm looking for a way to automaticly format brochures from a database . I allready found out that datamerge lets you do this quite easily. But I encounter a problem when I use large amounts of text.
    How I see it, the only solution is to reserve enough space for the larges text in order to make all of the text appear in the document. But this leaves large open spaces and even blank pages in my document when I deal with less text.
    Is there a way to make the document adapt to the amount of text? So that Indesign creates more space for large amounts of text and erases blank pages when there is less text?
    Maybe Datamerge isn't the right solution for my problem, I'm open to suggestions.
    Thanks in advance!
    Iris

    I'm just finishing up a directory that I build with data merge and I have the problem of variable length business descriptions, as well as some have extra mailing addresses or websites. My solution is to do it in several steps with multiple files. I do a normal merge first (and I use a single record per page for this, but only bcause that allows me to create some alphabetical lists of business names and owners's names that I can key to a listing number), then I stitch together the individual stories into a single text thread that I copy/paste into place in the final document. If you have a lot of frames, Rorohiko.com has a nifty text stitch script that will help.
    One tip that helps with this method is to be sure you have a paragraph break at the end of each story so stiching the frames together maintains your paragraphs.

  • How To: Use Like '*' with DoQuery

    As anyone who has tried to use a LIKE in their SELECT statement will know, if you are using the DoQuery method of the SAPbobsCOM.Recordset object, LIKE's are not supported.  Here is a workaround that seems to work fairly well for our needs.
    Code Sample:
    findValueLength = findValue.Length.ToString();
    sqlQuery = "SELECT CardName AS ReturnValue1 FROM OCRD WHERE LEFT(CardCode," + findValueLength + ") = '" + findValue + "' AND CardType <> 'S'";
    rs = (SAPbobsCOM.Recordset) sapConnect.SboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    rs.DoQuery(sqlQuery);
    Basically, if you select anything who's left x characters are the same as the find value, it will return the same results as doing a LIKE findValue*.
    Message was edited by: David Wall

    Thank you for sharing your solution, David.
    Lutz Morrien

  • How do i add a reminders list (to do list?) like there us d to be on the right hand side of iCal?

    How do i add a reminders list (to do list?) like there used to be on the right hand side of iCal?

    Sorry - I linked the article for iOS Reminders. You are posting in the Mountain Lion forum, but you have listed the OS X for Snow Leopard. What OS X are you running?
    Here is the support article for all devices and computers using Reminders:
    iCloud: Calendar Events, Reminders, To Dos, and Tasks behavior differs by application - Apple Support
    GB

  • Where is the scroll bar that used to be on the left hand side of the screen?

    Am very aggrevated at itunes 11.0   trying to search through my 16000 songs on my ipod.  there is no vertical scroll bar that used to be on the right hand side of the screen.  How do I get it back?????

    Thanks! That solved it.

  • Shifting Portlet tabs to Right hand Side

    The Question on building the portlets.
    Can any body suggest me how to shift the tab to the right hand
    side as i create new tabs in the Pages by default its going to
    left hand side.
    I just want look and feel of Oracle website page as tabs are on
    right side.
    Regards
    Suresh

    Hi Muhammad,
    Is {Notes.NOTE_details} and {ABC.old_ENTRY} or images ? Or is it a long text ? what is the data type of these fields ?
    Can you try to right click on the field and go in Format field-- Common--Horizontal Alignment : select Right from the drop down and see..
    -Sastry

  • Screens, like them? hate them? also, how to use actionscript with them.

    So I haven't used a flash version since Flash 8. I've now been given CS4 and inheritid a flash document that uses screens. After 2 weeks of figuring out how the presentation is made to 'go' from slide to slide on keydown, I finally discovered today that it is the default behaviour.
    Ok, so this leads me to my next question. How do people here feel about screens? Like them? Hate them? I feel like I could do half of this stuff easier with actionscript. I feel constrained by this. Not to mention I put some animation into a movie clip and it seems like it's not playing, like it's just poping right to the stop action at the end of that clip.
    Can anyone tell me how to use actionscript with screens? I looked at help, but of course, the help file doesn't give me what I really need to know. I'd like to put my actions on frame one of the root and let that control everything else. But what is the syntax like? The help file recommends external scripts, but that is not an option as the CEO takes this presentation with him and I can't risk having him lose the code.
    Please give me any advice you may have. Thank you!
    Stan

    Not that I'm any kind of expert on this matter, but I've never heard of screens, at least not by that name, and I have been fiddling with Flash for about 9 years now (like this case, I still learn new things all the time... though I'm still clueless as to what they are... chances are I won't miss 'em).
    When you mentioned scenes though, my personal recommendation is along the party lines of avoid them like the plague... use one timeline and/or movieclips for everything.  I have never used them in my own work, and my bias is partly due to having inherited them in other people's work... they make it hard to find things, especially when you have to first discover they're being used to begin with.  From a technical stance, I have found them to be problematic to manage as far as navigation goes.

  • Using LIKE with a variable in a report query

    Probably an stupid question, but I can't find the answer on this forum or by trying. How do use LIKE and a variable together in a query?
    The following solutions don't work f.e.:
    LIKE :P310_ENTITEITID%
    LIKE ':P310_ENTITEITID%'

    Hi Elmo
    Try '%'||:P310_ENTITEITID||'%'
    Elsie

  • Script logic - how to use a selection variable within an allocation logic

    Hi,
    I want to implement a simple top-down distribution to distribute values from a yearly budget (Y20xx.TOTAL) to a quarter budget (Q20xx.Q1, ... Q20xx.Q4) using the actuals of the previous year as reference.
    If we hard code the members it works fine:
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN); USING=<<<; TOTAL=<<<
    *DIM TIME WHAT=Y2009.TOTAL; WHERE=BAS(Q2009.TOTAL); USING=BAS(Q2008.TOTAL); TOTAL=<<<
    *DIM CATEGORY WHAT=SBO; WHERE=<<<; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    Of course, we want to make this dynamic, using the values inputted in the selection screen of the package: time, entity and category.
    So if we start with write the following logic, it does not work anymore:
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN); USING=<<<; TOTAL=<<<
    *DIM TIME WHAT=%TIME_DIM%; WHERE=BAS(Q2009.TOTAL); USING=BAS(Q2008.TOTAL); TOTAL=<<<
    *DIM CATEGORY WHAT=%CATEGORY_DIM%; WHERE=<<<; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    So, how to use the selection variables in this allocation logic? %TIME%, %CATEGORY% also did not work ...
    regards
    Dries
    solved it ...
    Edited by: Dries Paesmans on Feb 22, 2009 8:31 PM

    Hi Dries,
    Looks like you solved this, but if I can just add a small point -- when you use syntax like this:
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN);
    *DIM TIME WHAT=Y2009.TOTAL; WHERE=BAS(Q2009.TOTAL);
    each time the logic runs, it will scan through the dimension from the FIN and Q2009.TOTAL members, one level at a time, until it reaches the base members (where calc = 'n'). This may happen very quickly, if the dimension has very few levels, but could take a bit of extra time if it's a particularly deep dimension. (By which I mean many levels of hierarchy -- not some 1970's Pink Floyd musical reference.)
    You may speed things up by using a member property instead of the BAS(xyz). Flag all the base members using a specific property value, and that way the logic engine can pick up the complete list of members in the WHERE clause, in a single query.
    *DIM Account What=ACC_NOT_ASSIGNED; Where=[FloydProperty]="DarkSideOfTheMoon"; ...
    This adds some maitenance work in the dimension, which may be problematic if your admins are changing it regularly (and will cause problems if they forget to update this particular property).
    I can't predict how much time this will save you (maybe not much at all), but anyway I figure you'd want to know exactly what work you're asking the system to perform.
    Regards,
    Tim

  • How to use BAPI_HELPVALUES_GET with functional location

    I try to create an RFC connection searchhelp for my ECC system to the functional location table.
    I thought of using the bapi_helpvalues_get but I get stuck in determing the right input data
    I have found the right objectype in SWOI
    BUS0010
    now I found out thanks to see where the function was used and how it was filled in with which values
    OBJTYPE                         BUS0010                 
    OBJNAME                         FUNCTIONALLOCATION      
    METHOD                          GETLIST                 
    PARAMETER                       FUNCLOC_LIST            
    FIELD                           FUNCTLOCATION           
    but still I get an error
    ES&003Parameter FUNCLOC_LIST voor objectmethode BUS0010.GETLIST not available
    what do I miss here ??
    and If abnybody nows how I can build a searchhelp with just a searchhelp exit without a view to search for values it will also solve my problem in creating a searchhelp with data from another system which I have to retrieve by RFC
    kind regards
    arthur

    BAPI_PTIMEOVERVIEW_GET
    Just pass in the a From date and To date, and then in tables, pass in a employee no, in EMPLOYEES field.thats all, execute. Any prompts you get to enter a value for anything just click save without entering any values. You will get data returned in Result table of TIMEOVERVIEW.
    You can find the Documentation of this, when you go into display mode of this Bapi, you will find function module documentation on top right hand side of the screen. in any case i am pasting it below.
    Functionality
        This method defines a time data overview for employees.
        The time data determined can be used as a value guide for recording in
        another system (such as in a time sheet or an external system).
    Notes
        An "asynchronous access" to R/3 Time Management data determined by the
        method PTimeOverview.Replicate specifies the employees for whom a time
        data overview is to be created.
        A "sysnchronous access" to R/3 Time Management data determined by the
        time period entered and the external application specifies the employees
        for whom a time data overview is to be created.
        The employees selected are returned in the EMPLOYEES parameter. A list
        of the time types for these employees also to be included in the
        overview is returned in the TIMETYPES parameter.
        The time data overviews are returned in the TIMEOVERVIEW parameter.
        The selected time types and the applicable number of hours are returned
        in the TIMETYPEVALUES parameter.
        The overviews are transferred to the other systems by the method
        PTimeOverview.SaveReplica.
    Parameters
        FROMDATE
        TODATE
        EXTAPPLICATION
        EMPLOYEES
        TIMETYPES
        TIMEOVERVIEW
        TIMETYPEVALUES
        RETURN
    Exceptions

  • How to use Terminal with KeySpan USB serial adaptor cable?

    I own a KeySpan model USA-19HS to use with our MacBookPro when working on clients networking equipment that require serial communication. I have used ZTerm with excellent luck, but it costs, and is yet another application that I dont really want. I would like to know if any one out there has exacing instructions on how to use Terminal with this adaptor. If I could write a file that had, say, the couple most common settings (9600-8-n-1, 57600-8-n-1, et cetera) that I could simply click on, to open a new Terminal window with those settings, then simply close that, and open a new window (apple+n) in order to get back to a default settings terminal window. All feedback is most appreciated.
    Thanks so much, Jason Sjobeck

    Hi, Jason. Welcome to the Discussions.
    You wrote: "All feedback is most appreciated."OK.
    1. Have you considered discussing this with Keyspan Support?
    2. Have you read the section "OSX has Terminal.app - why do I need ZTerm?" on the ZTerm Home Page? That seems to explain why one needs an app like ZTerm.
    3. A quick search of Keyspan's FAQ for your product and terminal doesn't yield much more than how to find the serial ports using Terminal.
    Likewise, this Google search also yields little, and variants of that search of such weren't particularly help either.
    It appears your inquiry seems to be a somewhat esoteric topic.
    4. Apparently, ZTerm X is a bit long in the tooth and there's no Universal Binary for it. It sounds, however, like you've tried it running on your MBP under Rosetta, yes?
    5. In researching alternatives to ZTerm for you, I note the followng:• The comment from "Reverb" on this page suggests C-Kermit or Kermit as a free alternative.
    • This tip on Mac OS X Hints cites Minicom as another option.6. You may want to try your question on the Unix Discussion.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to Use Gmail With Apple's Mail?

    Answer:
    Now Itis not a Problem, Please go to this link and know how to solve this problem, Ihave configuir this in my mac pro. Have enjoy.
    http://picturemuseum.blogspot.com/2011/08/how-to-use-gmail-with-apple-mail.html
    http://mobilesuggestion.blogspot.com/2011/08/how-to-use-gmail-with-apples-mail.h tml

    I notice that it's possible to have sticky posts in these forums. See
    http://forum.java.sun.com/forum.jspa?forumID=534
    the Concurrency forum for an example. Posting a link to the FAQ in a sticky post might reduce the number of FAQs asked here by maybe 1%? Or posts like this one might do well as a sticky?

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

  • How to use setSoTimeOut() with socket ??

    HI All!
    I eagerly need to know how to use setSoTimeOut() with socket (on server side).
    Actually the scenario is that My Server accepts connection and waits for connected client to send data to it. I WANT TO KEEP, IF CLIENT DOENS'T SENDS ANY DATA TO SERVER WITHIN 5 min. THEN SERVER MUST CLOSE THE CONNECTION, BUT IF SERVER RECEIVES STILL A BYTE FROM THE CLIENT WITHIN 5 mins., THE SERVER MUST RESET CHECKING TIME OUT FOR NEXT 5 MINUTES.
    How can i do that??
    Any help with example will be appreciated!!
    Thanx in advance

    you'd have to do something like this:
    (this is all assuming you want to read Strings from the socket. setSoTimeout works for any read() call to the InputStream associated with the Socket)
    ServerSocket ss = new ServerSocket(myPort);
    Socket s = ss.accept();
    s.setSoTimeout(5*60*1000); // 5 mins * 60 secs * 1000ms
    BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
    boolean running = true;
    while(running)
    try
    String readIn = in.readLine();
    // do whatever you want with the data read
    catch(SocketTimeoutException)
    running = false;
    Now. That's what I think needs to be done. I don't have Java on the machine I'm currently on, so I can't test/verify it, but it goes something like that.
    Good luck,
    Radish21

Maybe you are looking for

  • Can't connect to password protected wifi with the correct password.

    So, here's the deal. I have a program on my Mac called Self Control. It's a program that allows you to block all access to either the entire internet or a select amount of websites that you choose from, for a specific time. I had it going today, and

  • Error while installing ECC 6.0

    Dear All,                 Trying to install ECC 6.0 in my standalone system with Oracle 10g as backend. Hardwire Requirements Met: 2 GB RAM 360 GB Hard disk Logical Partition Done: C:  10 GB D: 243 GB E: 82 GB Windows Server 2003 is in E: drive Appro

  • Converting RoboHelp7 FlashHelp project to RoboHelp8

    Hi!  Was looking for some best practices regarding converting existing help projects (FlashHelp) from RoboHelp 7 to RoboHelp 8. What you need to copy down so that you can verify and if necessary, recreate in RH8. Also, what major differences in just

  • CLEANING UP Address Book Duplicates and Errors

    *I'm looking for a way to clean up duplicates in Address Book.* The built-in solution doesn't seem to work Are there any plugins or 3rd party software for Address Book that does better than what its doing now....nothing! Any other suggestions? It is

  • Apex access fails

    Hello, Folowing the manuals I installed: Database 10g HTTP server 10g Apex 3.2.1 unlocked users, changed paswords, moved images, edit dads.config, restarted (many times) the HTTP server and opmn services=> The web acces fails Service Temporarily Unav