Find the word in query

Hi,
i want to print the word before _,@
query like first find the _ if underscore is there print before _.
Example:
[email protected]
output like:-vinoth
if not find the underscore print before @ like
[email protected]    
Output like:- vinothkumar

have you tried this
with t as
(select regexp_substr('[email protected]','[^_,@]+',1,level) name
   from dual
   connect by regexp_substr('[email protected]','[^_,@]+',1,level) is not null)
select name
  from t
where rownum<=1;

Similar Messages

  • How to find the backend  SQL query of the JSP page in OIC

    Does anybody how the best way to find the backend SQL QUERY of OIV JSP page?

    How To Generate Trace Files in in HTML/JSP (using Profile Option)
    •     • Note: This requires proper responsibility to set SQL Initialization statement using Profile option.      
         Step 1.     Login to the desired Form application.     
         Step 2.     Select +Profile >> System ('Find System Profile Values' screen will pop up)     
         Step 3.     Check 'User' and Type in the Username (in which the account for that user will be trace)     
         Step 4.     Type 'Initialization%' in the Profile box and Hit 'Find' (Click here for preview.)     
         Step 5.     In the User box, type the following statement and Hit 'Save' (Click here for preview)
         BEGIN FND_CTL.FND_SESS_CTL('','','TRUE','TRUE','','ALTER SESSION SET TRACEFILE_IDENTIFIER = TESTING MAX_DUMP_FILE_SIZE = 5000000 EVENTS ='||''''||' 10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'||'''');END;     
         Note:     specify any name you like to identify your trace, in this case, testing is the end name on the trace. You can also specify the amount of data allowable to be in the trace, in this case, 5000000 is the amount set. Make sure you hit 'Save' afterwards.[Quotes in the statement are all 'Single' quotes.]
              specifying TRACEFILE_IDENTIFIER value is mandatory when setting up the trace using the above profile option value
         Step 6.     Login to HTML / JSP page with username/password and start your flow. (Everything you do once login to HTML / JSP will get trace.)     
         Step 7.     Logout of HTML / JSP application once you completed with your flow.      
         Step 8.     Go back to the Profile option in the Form application and delete the Initialization SQL statement, and Hit 'Save'.     
         Step 9.     Log in to the database server or login server and retrieve your trace file.
         Identify and retrieve the trace file using the tracefile_identifier specified in Step 5.
         In this case the tracefile_identifier is “TESTING”. (Click here for Trace file locations) *     
         Note:     If you need to regenerate your trace or tracing a new flow, then repeat Step 1 to Step 8. To avoid self-confusion, choose a different name for your trace identifier everytime you set to trace.     
         Step 10.     See TKPROF section on how to format trace file into readable text.
         Trace Options Definition
         No Trace          Tracing is not activated
         Activities will not get traced.
         Regular Trace
         (Level 1)          Contains SQL, execution statistics, and execution plan.
         Provides execution path, row counts as well as produces smallest flat file.
         Trace with Binds
         (Level 4)          Regular Trace plus value supplied to SQL statement via local variables.
         Trace with Waits
         (Level 8)          Regular Trace plus database operation timings that the SQL waited to have done in order to complete, i.e. disk access.
         Trace with Binds and Waits
         (Level 12)          Regular trace with both waits and binds information.
         Contains the most complete information and will produce the largest trace file.
    ****Send me an email to [email protected],I will share the document with you.

  • How to find the last execute query

    Hi, Is there a way to find the last executed query of report?
    Thanks
    Aali
    Edited by: aali on 22-Feb-2010 06:39

    Hi,
    if you hold the necessary privileges, you might find the SQL in the shared pool:
    select last_active_time, parse_calls, disk_reads, buffer_gets, cpu_time, end_of_fetch_count, executions, plsql_exec_time, sql_text
    from V$SQLSTATS
    where sql_text like '% some distinctive string %'
    order by last_active_time desc;if you insert some meaningful string in form of comment inside the query itself, say /* report #1 on page 3 */
    you may be able to track it down more easily.
    select last_active_time, parse_calls, disk_reads, buffer_gets, cpu_time, end_of_fetch_count, executions, plsql_exec_time, sql_text
    from V$SQLSTATS
    where sql_text like '% report #1 on page 3  %'
    order by last_active_time desc;Bye
    Flavio
    http://oraclequirks.blogspot.com

  • I tried to follow the instruction of buying iphone apps without a credit card, when I selected United States, but when I fill up the credit card info, i could not find the word "None". Anyone know what should I do?

    I tried to follow the instruction of buying iphone apps without a credit card. I follow the steps and I selected United States, but when I fill up the credit card info, i could not find the word "None". Anyone know what should I do?

    When you tried to contact Support with the card's images how were you trying to do it, on your phone or a browser on your computer ? And have you tried a different browser to see if you get the same error message ?
    As well as images of the card they might also want an image of its receipt.
    And to contact Support you were using : http://www.apple.com/support/itunes/contact/ , and clicked on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes ?

  • How do you find the word count on MacBook, please?

    How do you find the word count on MacBook, please?

    If you are trying to find word count in a Microsoft Word 2011 documemt, for instance, open the document and go to the Tools menu, selecting Word Count. In Apple's Pages application, open the document and look at the bottom of the page, near the left it will say "X Words" where X is the number.
    Best of luck.

  • To find the version of query designer currently installed in BI DEV

    Hi.. Where can I find the version of query designer (BI addon) installed in my BI DEVsystem.

    Hi,
    At the time of opening query designer it will show .
    Open query designer and  on menu bar go to help tab and select about .
    Thanks.

  • Pages IPad: how to  'Find' occurrence of a word in a range starting from somewhere in the middle of document to the end. It seems that 'Find' feature always defaults to finding the word from the start of the document. Thanks

    Pages IPad: how to  'Find' occurrence of a word in a range starting from somewhere in the middle of document to the end. It seems that 'Find' feature always defaults to finding the word from the start of the document. Thanks

    Pages IPad: how to  'Find' occurrence of a word in a range starting from somewhere in the middle of document to the end. It seems that 'Find' feature always defaults to finding the word from the start of the document. Thanks

  • How to find the name of query for a given report

    Hi All,
    I am having the name of a report and i need to find out the name of query for that report . Plz tell me how to find out the name of the query for a given report.
    Thanks.
    Regards,
    Pooja Joshi.

    Use this FM
    RSAQ_DECODE_REPORT_NAME
    This FM takes program name as I/P and gives Query Name as O/P.
    This FM uses the structure AQADEF to fetch the data.
    Hope this helps.
    Regards
    Vinayak

  • Search doesn't find the words water or plants!  What can I do to fix this?

    OK, you're not going to believe this.  Search cannot find any events with the words water or plants in them!  Here's the background.  I had multiple calendar entries for "Water Plants".  I deleted one, then deleted the other.  I then entered a new event called "Water Plants."  Search does not find it.  It finds every other event, but not that one.
    Now, here comes the even stranger part.  I added the word stargaze in front of the entry--so it reads "Stargaze water plants" -- and it finds the event if I search for stargaze.  In fact, I can add virtually anything in front of water plants and it finds it.  It'll even find "Warm water plants" (search for "warm") but not "water plants" or "water water plants."
    I've tried several things.  I  did the home button--power button hold til restart, no change.  I synched via iTunes; no change.  I've deleted the event, switched to a different day, and added it again.  No dice.   I've turned off and on again the Events option in Spotlight Seach setting.  No luck.  I even reordered the search items (putting events at the top of the search or in different places).
    It also won't find the event if I search for just "plants".    I just created two additional events:  "Plants" and "Warm water" and it cannot find them if I search for "water" or "plants".  "Wa" "Pl", etc. do not work.  Create "Stargaze" again and I can find it.
    Any ideas?  It's as if my having deleted two events deleted the words (and subsets of letters) from the Spotlight Search vocabulary.

    Try: Settings>General>Spotlight Search...remove the checks next to every item, then reset your phone: Press the Sleep/Wake button & Home button at the same time, keep pressing until you see the Apple logo, then release. Now, go back into Settings & turn back on what items you want for Spotlight Search.

  • Can't find the ODS in query designer

    Hi Gurus;
    I am using SAP_BW 30B. I just created an ODS but I can't find the ODS under the InfoArea menu in query designer. I am not sure if it is related but, I tried to check the box for BEx Reporting under ODS settings. When I save or activate the ODS again the check in the box disappears. I can view other ODSs that are previousy created and non of them have a check for BEx Reporting under settings.
    I tried to delete the entries in the ODS and try to check again but no difference.
    Need your help.
    Thanx a lot in advance;
    Duygu Sile

    HI,
    Select the option, Create new query when you create for the first time on the  ODS and after designing the query it will ask for the Infoprovider under which the query has to be saved,give the ODS name which you  have created.Later Your ODS will be visible while creating queries.
    Hope this helps..

  • How can I find the words which spans across end of line to next line in pdf ?

    I am using Acrobat Adobe X Pro version for our form development and maintanence. I am writting a Acrobat JAVA batch script which reads through all the words and execute spell check and reports the mispelled words in a excel sheet. Since I am running this script in batch mode for more than 1000 pdfs - I am getting many words joined together. When I looked in to those pdfs all such words are looking okay because it is appearing in end of right margin and the next word is in the next line. Since there was no space between them it was extracted as a single word. Hence the failure.
    I used wordf = this.getPageNthWordQuads(i,j)  to get the word begin and end coordinates. when I closely observe the values are creating a rectangle and that doesnt span across lines. I got the coordinates for the regular word and the word which span acoross two lines. both of the coordinates are same.
    I think I am screwed - I have 8000 such words and no clue of how to get rid of them from the actual misspelled words.
    please help. let me know if any class /method if I call will give me the end of line or do I need to go to next layer to find this split.
    the addnot is somehow marking the words using this coordinates - please hellp me understand how this works. Thanks.
    // for all pages
    for (var i = 0; i < this.numPages; i++ )
    // For all the words
    pg += 1;
    numWords = this.getPageNumWords(i);
    for ( j = 0; j < numWords; j++)
    //get the spell check 
    ckWord = spell.checkWord(this.getPageNthWord(i,j))
    if ( ckWord != null )
    jn=0
    ml=0
    // if mispelled word found.
    wordf = this.getPageNthWordQuads(i,j)
    swordf = wordf.toString()
    var st = swordf.split(",")
    var diffx0 = parseInt(st[0])-8
    var diffx1 = parseInt(st[1])-8
    var diffx2 = parseInt(st[2])-8
    var diffx3 = parseInt(st[3])-8
    var diffx4 = parseInt(st[4])-8
    var diffx5 = parseInt(st[5])-8
    var diffx6 = parseInt(st[6])-8
    var diffx7 = parseInt(st[7])-8
    if (cWord == csword)
    jn = 1
    if ( st[1] != st[3] )
    ml = 1
    //dataLine += "\r\n write "
    else
    ml=2
    dataLine += "\r\n"+this.documentFileName
    + "\t" + this.getPageNthWord(i,j)
    + "\t" + pg
    + "\t" + j
    + "\t" + ml
    + "\t" + jn
    + "\t st[0] " + diffx0 + "\t st[1] " + diffx1 + "\t st[2] " + diffx2 + "\t st[3] " + diffx3 
    + "\t st[4] " + diffx4 + "\t st[5] " + diffx5 + "\t st[6] " + diffx6 + "\t st[7] " + diffx7 
    ck=1

    If Acrobat is reading each word part as separate words, you have a problem.
    The way I approached it in some of my tools was to check if a word ends
    with a hyphen, and if so, to check if it's the last on the line. If both
    conditions are true, combine with the next word on the next line. This is
    not fool proof, of course, as there are documents with columns are other
    structural elements that prevent this from working. Better than nothing,
    though...
    However, it is also possible that Acrobat does see both parts as parts of
    the same word. In that case, getPageNthWordQuads() will return multiple
    quads arrays. As you know, that method returns an array of quad arrays.
    There's usually only one, but in principle there could be more... Something
    to check before giving up.

  • Search - doesn't find the word entered, doesn't link to the word entered

    Hi all,
    Using TCS2 on Windows 7 64-bit - linked FM file to RH. Generating WebHelp (primary layout).
    The SEARCH functionality in RH doesn't seem to work terribly well and I'm wondering if I'm just missing something.
    For example: I have chapters about creating a New Grant. In the search, i enter the words "new grant" >> in quotations, just like that.
    Search returns any topics which have the words NEW or GRANT (I have sub-string enabled; I've tried it with and without this enabled with the same result).
    In addition, in the search pannel where the name of the topics containing the words NEW or GRANT are listed, if I click on the topic name, it takes me to the start of the topic, not to the instances of the words NEW or GRANT.
    I have 2 issues:
    1- If I search for "new grant" I would expect to only see results with both words, not instances of new, grant, or both. Is this something missing? Or a setting?
    2- If I click on the topic name in the search pane, I'd like to be taken to the location within that topic where the found instance of my search words are. Again, is this something missing or a setting?
    I should note that I have heard of ZoomSearch and will read the information about it, but I'm hoping that this works within RH and without extraneous tools.
    Thanks!
    Adriana

    Hi folks
    Assuming that the topic is "long-ish" and the found term is out of view when you display the topic, it should cause the topic to display where it has been scrolled so the found terms are in view.
    Thanks to John Daigle who demonstrated this in the Adobe booth while at a conference.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Can't find the words to Express myself, Nestled parenthesis?

    Hi,
    I have a project I am supposed to turn over to other people so they can "easily edit" and produce the same thing over and over. that would be too simple, so I decided to put as much of the stuff they would need to adjust into a comp "configuration"
    this is the expression I used to change the text at any given time. I like this expression because it's easier to work with than source and lets you move markers over lots of layers without having to twirl down each layer to read or move keyframes:
    comp("configuration").layer("EDIT-TOP-TEXT-PANEL1").marker.nearestKey(time).comment;
    the problem I am having is that it chooses the nearest marker, so you have to guess/tweak till you find the middle. Instead I want to use the last marker until I reach the next
    thisLayer.marker.key(thisLayer.marker.numKeys).time
    when I try
    comp("configuration").layer("EDIT-TOP-TEXT-PANEL1").marker.key(comp("configuration").layer ("EDIT-TOP-TEXT-PANEL1").(numKeys).time.comment)
    I've broken the expression, I've actually tried to reference the external layer a few ways but seem to break everything when I leave tried and true.
    (thanks Mylennium for the pointer to the expression)
    BTW, those learning expressions, should check out this page, it's got some nice reference and examples.
    http://www.jjgifford.com/expressions/basics/index.html

    This might be what you're looking for:
    L = comp("configuration").layer("EDIT-TOP-TEXT-PANEL1");
    n = 0;
    if (L.marker.numKeys > 0){
      n = L.marker.nearestKey(time).index;
      if (L.marker.key(n).time > time) n--
    (n > 0) ? L.marker.key(n).comment : ""
    It should display the comment of the most-recent previous marker (or nothing, if there isn't one)
    Dan

  • Transaction codes used to find the table(s), query/queries, and joins.

    Hi.
    I would like to learn how to find out which table(s) to use to create a query(ies), how tables are joined and how to create a query. Besides SQVI and SE16, what other transaction can I access? I would like to use SAP query tools that requires no programming.
    Thank you.

    Hi Minerva ,
    Its not Read-only it is Display Autorization only.It will be comes from role what they assign to ur User ID.
    coming to SQVI is  the simple and best way to create SAP query without any Programming knowledge, but u have to know what tables u have to use to get desire o/p.
    check these
    http://www.sap-img.com/abap/what-is-sap-queries.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/44f2b5c7f411d296080000e82de14a/frameset.htm
    Regards
    Prabhu

  • I find the Word (Office 4 Mac 2011) seriously flawed in creating labels in WORD from Excel database; any comments?

    I have used the "mailmerge" functions in Snow Leopard with Office 2004 on many previous situations.
    With Mountain Lion and Office 2011, I am not finding success in using "mailmerge" to create labels using WORD and an Excel database. 
    All is well until Mail Merge Manager asks:
              get Recit List
              Convert file from .......
              "choose Excel Wowrkbook"     (I have chosen each of the listed choices with same result)
              ALERT  reads  Excel Workbook text converter     check OK if from trusted source
              ALERT  reads  There was an error opening the file.
    I have checked with the Microsoft online instructions and followed them to the "letter";  with the same disappointing results.

    I have always exported the addresses to a comma-delimited file first, then merged. That may be worth a try.

Maybe you are looking for

  • Performance Issue on a Xraid (Raid 5) for video digitalization

    Hello Everyone I have a Mac Pro (2x3ghz + 8 Go Ram + Fiber channel  card) directly linked to a Xraid via Fiber (there is no Xsan and no Xserve as controller). The Xraid is composed of 8 X 750 Go HD and set up as Raid 5. We are working in video produc

  • Asset Capitalisation date was from deleted PO

    Hi, Assets capitalised date shown on Assests Display was delete PO's capitalisation date. Please advice why the asset didn't pick up the new PO date. TQ Regards

  • Sometimes I take a photo on 4S and it comes out white with no picture.

    Sometimes I take a photo from my 4S and even with removing the cover, the photo still appears blank - a white screen. Anyone can advise why this is happening?

  • TextEdit - "lower-case" an upper-case string?

    I'm using TextEdit to draft postings for my favourite blogs. And I'm forever accidentally pushing the caps-lock down on my PB, resulting in a long upper case string. I used to use BBEdit on Classic for my text drafting purposes. It had a very handy '

  • Hardware Improvement with OS X upgrading?

    Hi everyone I have a MacBook Pro (Late 2011) In recent time I have some issues with my Macbook Pro like overheating and trackpad problems. I have OS X Lion (10.7.5) installed. Earlier this month once my trackpad started to acting such weird but event