Extract all used symbols in column

Hi all,
I've got varchar2 column where users can type all desired symbols. My need is to extract all used symbols (suppresing doubles).
select 'abcabcd123.,,,,%' from dual union all
select 'qqwwweabcabcd123.,,,,%' from dual My need is to extract "abcdeqw123.,%".
How do I perform it?

A list of used symbols could be extracted like this:
SQL> ed
Wrote file afiedt.buf
  1  with test as (
  2  select 'abcabcd123.,,,,%' txt from dual union all
  3  select 'qqwwweabcabcd123.,,,,%' txt from dual
  4  )
  5  --
  6  -- end of testdata
  7  --
  8  select
  9  character,
10  count(*)
11  from (
12     select
13     substr(test.txt,dummy.col,1) character
14     from test
15     join (
16        select level col
17        from dual
18        connect by level <= 40
19     ) dummy
20     on (
21        dummy.col <= length(test.txt)
22     )
23  )
24  group by character
25* order by character
SQL> /
C   COUNT(*)
%          2
,          8
.          2
1          2
2          2
3          2
a          4
b          4
c          4
d          2
e          1
q          2
w          3
13 rows selected.Change *40* to the maximum length of your column.
Will this suffice to get your list of used symbols? Or do you need it to be in one string?

Similar Messages

  • Extract list of tables and columns in a Form ?

    Hi, Is it possible to extract all the table names and its column names used in a Form? I just need a list of all the tables and its columns, does Oracle Forms has a tool inbuilt extract such list (metadata like)
    Thanks, Aj.

    Arun, Thank you for your reply. I learned a new thing today. I do wish Oracle comes up with an inbuilt utility to identify its Objects (tables used and their columns). My current task is a little small then parsing the XML but I did try the command and its works and will use it in the future. Regards, Aj

  • How to Extract data using Query or any data fucntion in Excel.

    Dear Users,
     i want to ask one question about excel..............
    i have a parts list sheet, it contains part-number , price, name........ in columns. now my question is this that for example  part names are as under ,
    fix contactor
    moveable contactor
    half contactor
    contactor gm
    contactor skf
    as you saw in the names of parts contactor is the same in all the column. i want such a query that extract all the entries which contain contactor and make a new column or highlight them in the same column. my requirement is very similar to dos command when
    i want to see the list of all files which have exe extension ...dir *.exe.
    Best Regards
    Tahir Mehmood

    =IFERROR(IF(FIND( "contactor" ,LOWER(A1))>0,TRUE,FALSE), FALSE)
    This formula checks cell A1 and will flag TRUE if it matches the requirements of the specified text.  Have wrapped a lower function around the cell to mitigate for different upper or lower case mismatches.
    Alternativey you can use conditional formatting > "Use a formula to determine which cells to format" and use the following formula  =FIND("contactor", LOWER(A1)) >0.  Change the format to colour in the cell and copy the
    format down to all corresponding cells.  This will now highlight those that match the text value.
    Regards

  • Extracting all values from multiple menus

    Hello all,
    Basically I have a jsp that consists of three of what FrontPage calls drop down boxes but I will hereafter call list boxes, each containing a number of options extracted from a database; these values can be moved from one box to another using java script. When I hit a submit button I wish to be able to extract all the values from two of these lists and add them into a database. I know how to extract selected values but I need all the values of both lists regardless of what the user selects and I need the contents of each kept distinct.
    Any help provided will be appreciated and I apologize if this question is something all the forum vets have already seen before.
    Philip

    Only the values that are selected will be submitted
    with the form. So, add a call to your form tag's
    onSubmit event to call a function like this:<form name='myForm' onsubmit='selectAll()'>
    <script language='javascript'>
    function selectAll() {
    for(i=0; i<myForm.mySelectList.options.length; i++)
    myForm.mySelectList.options.selected = true;
    // do the same for the other two select lists
    </script>
    Thanks for the tip, but unfortunately this means that the two list boxes that I want will become intermingled. Is there a way to keep the information in the two lists seperate?
    Philip                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    Yes, windows to Mac too.
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    Windows users see tip at: https://discussions.apple.com/message/18879381

  • Is there a way to extract ALL my music from my ipod touch 1st gen?

    My ipod touch has been really gritty and slow the past few months and im planning in getting a new touch. But ive manually installed music onto it from random computers but i want keep my recent music. I have around 2,000 songs.
    So is there a way to extract all that? I dont really care about my videos, apps, or pic's.
    Im running on windows.

    iTunes will only give you the option to copy your iTunes Store purchases directly from an iPod to the computer, you'll find details in this article: Copying iTunes Store purchases from your iPod or iPhone to a computer
    Purchased applications can be downloaded over again, see this article for details: How to redownload purchased applications from the App Store
    For everything else (music from CDs etc.) there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod Touch or iPhone. You'll find that they have varying degrees of functionality and some will transfer data (such as playcounts and ratings), movies, videos, photos, podcasts and games as well.
    A selection of iPod/iPhone to iTunes utilities:
    Senuti Mac Only (iPod Touch & iPhone compatible)
    SharePod Windows Only (iPhone and iPod Touch compatible)
    TuneJack Windows Only (iPhone and iPod Touch compatible)
    iPodRip Mac & Windows (iPhone and iPod Touch compatible)
    Music Rescue Mac & Windows (iPhone and iPod Touch compatible)
    iPod Music Liberator Mac & Windows (iPhone and iPod Touch compatible)
    iGadget Mac & Windows (iPhone and iPod Touch compatible)
    iRepo Mac & Windows (iPhone and iPod Touch compatible)
    iPod Access Mac & Windows (iPhone and iPod Touch compatible)
    TouchCopy Mac & Windows (iPhone and iPod Touch compatible)

  • How to use a calculated column in the same query

    Hi All,
    I need some help with using a calculated column in the same query.
    For eq
    I am joining a couple of tables and some of the select columns are calculated based on the columns of the tables and i want a new column in the same query to use this calculated feild in some other calcualtion.
    something like this...
    select (12+3) as Sum1, (12-3) as Sum2, (Sum1 + Sum2 ) as Sum3
    from dual
    or
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( "Sum1" / "Sum2" * 100 > 0 ) THEN 'Yes' ELSE 'No' END
    from dual
    Thanks

    user548171 wrote:
    select (12+3) as Sum1, (12-3) as Sum2, (Sum1 + Sum2 ) as Sum3
    from dual
    or
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( "Sum1" / "Sum2" * 100 > 0 ) THEN 'Yes' ELSE 'No' END
    from dual
    ThanksWhat about just repeating the column values:
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( (12+3) / (12-3)  * 100  > 0 )  THEN 'Yes' ELSE 'No'  END FROM DUAL

  • Batch file extracting all files from nested archives

    I have managed to leverage a powerful
    forfiles command line utility with the mighty
    7z compression program.
    Below is a simple batch file extracting all files from nested archives hidden at any depth inside other archives and/or folders. After the extraction each archive file turns into a folder having the archive file name. If, for example, there was an "outer.rar"
    archive file containing nothing but an "inner.zip" archive with only "afile.txt" inside, "outer.rar" becomes "...\outer.rar\inner.zip\afile.txt" file system path.
    @echo off
    rem extract_nested_archives.bat
    move %1 "%TMP%"\%2
    md %2
    7z x -o%1 -y %TMP%\%2
    del "%TMP%"\%2
    for %%a in (zip rar jar z bz2 gz gzip tgz tar lha iso wim cab rpm deb) do forfiles /P %1 /S /M *.%%a /C "cmd /c if @isdir==FALSE extract_nested_archives.bat @path @file"
    ARCHIVES ARE DELETED DURING THE EXTRACTION! Make a copy before running the script!
    "7z.exe" and "extract_nested_archives.bat" should be in folders available via the %PATH% environment variable.
    The first parameter of extract_nested_archives.bat is the full path name of the archive or folder that should be fully expanded; the second parameter is just the archive or folder name without the path. So you should run "c:\temp\extract_nested_archives.bat
    c:\temp\outer.rar outer.rar" from the command line to completely expand "outer.rar". "c:\temp" must be the current folder.
    Best regards, 0x000000AF

    Incredibly useful!  Thank you so much.  I did make a couple of small changes to make the script a little easier to use from the end-user perspective.
    First - I don't like making the user input the redundant second parameter, so I added this snippet which extracts it from the first parameter.  The first line of the snippet enables delayed expansion so that special characters in our file name don't
    break anything.  The second line pulls the parameter into a variable, and the 3rd line uses delayed expansion on that new variable.  Before implementing delayed expansion I had problems with file paths which included parentheses.
    SetLocal EnableDelayedExpansion
    Set SOURCE=%1
    For %%Z in (!source!) do (
    set FILENAME=%%~nxZ
    set FILENAME=%FILENAME:"=%
    Anyway once that was done, I just used %FILENAME% everywhere in the script instead of
    %2 (making sure to correct quotes as needed)
    This way, to run my script all you need to run is:
    C:\temp\extract_nested_archives.bat C:\temp\Archive.zip
    Second - I didn't want to modify the Windows environment variable.  So I replaced
    7z with "%PROGRAMFILES%\7-zip\7z.exe"
    I also replaced extract_nested_archives.bat with "%~f0" (which represents the full path+filename of the current script).
    Here is my full script now.  Tested on Windows 8 with the 64-bit version of 7-zip installed:
    @echo off
    Setlocal EnableDelayedExpansion
    Set source=%1
    For %%Z in (!source!) do (
    set FILENAME=%%~nxZ
    set FILENAME=%FILENAME:"=%
    move /Y %1 "%TMP%\%FILENAME%"
    md "%FILENAME%"
    "%PROGRAMFILES%\7-zip\7z.exe" x -o%1 -y "%TMP%\%FILENAME%"
    DEL "%TMP%\%FILENAME%"
    for %%a in (zip rar jar z bz2 gz gzip tgz tar lha iso wim cab rpm deb) do (
    forfiles /P %1 /S /M *.%%a /C "cmd /c if @isdir==FALSE "%~f0" @path @file"

  • Extract All Embedded Files in All Folders and Save Each? Copy/Paste from PDF to Word?

    I have most of what I need here, but I’m missing 2 important pieces. 
    #1)  I want to copy/paste from all PDF files in a folder and paste the copied data into a single Word file. 
    It works fine if I have ONLY Word docs in my folder.  When I have PDF files and Word files, the contents of the Word files are copied in fine, but the contents of the PDF files seem to come in as Chinese, and there is no Chinese in
    the PDF, so I have no idea where that’s coming from.
    #2)  I want to extract all embedded files (in all my Word files) and save the extracted/opened file into the folder.  Some embedded files are PDFs and some are Excel files.
    Here the code that I’m working with now.
    Sub Foo()
    Dim i As Long
    Dim MyName As String, MyPath As String
    Application.ScreenUpdating = False
    Documents.Add
    MyPath = "C:\Users\001\Desktop\Test\" ' <= change this as necessary
    MyName = Dir$(MyPath & "*.*") ' not *.* if you just want doc files
    On Error Resume Next
    Do While MyName <> ""
    If InStr(MyName, "~") = 0 Then
    Selection.InsertFile _
    FileName:="""" & MyPath & MyName & """", _
    ConfirmConversions:=False, Link:=False, _
    Attachment:=False
    Dim Myshape As InlineShape
    Dim IndexCount As Integer
    IndexCount = 1
    For Each Myshape In ActiveDocument.InlineShapes
    If Myshape.AlternativeText = PDFname Then
    ActiveDocument.InlineShapes(IndexCount).OLEFormat.Activate
    End If
    IndexCount = IndexCount + 1
    Next
    Selection.InsertBreak Type:=wdPageBreak
    End If
    On Error Resume Next
    Debug.Print MyName
    MyName = Dir ' gets the next doc file in the directory
    Loop
    End Sub
    If this has to be done using 2 Macros, that’s fine. 
    If I can do it in 1, that’s great too.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hi ryguy72,
    >>When I have PDF files and Word files, the contents of the Word files are copied in fine, but the contents of the PDF files seem to come in as Chinese, and there is no Chinese in the PDF, so I have no idea where that’s coming from.<<
    Based on the code, you were insert the file via the code Selection.InsertFile. I am trying to reproduce this issue however failed. I suggest that you insert the PDF file manually to see whether this issue relative to the specific file. You can insert PDF
    file via Insert->Text->Object->Text from file.
    If this issue also could reproduced manually, I would suggest that you reopen a new thread in forum to narrow down whether this issue relative to the specific PDF file or Word application.
    >> I want to extract all embedded files (in all my Word files) and save the extracted/opened file into the folder.  Some embedded files are PDFs and some are Excel files.<<
    We can save the embedded spreadsheet via Excel object model. Here is an example that check the whether the inlineshape is an embedded workbook and save it to the disk for you reference:
    If Application.ActiveDocument.InlineShapes(1).OLEFormat.ClassType = "Excel.Sheet.12" Then
    Application.ActiveDocument.InlineShapes(1).OLEFormat.DoVerb xlPrimary
    Application.ActiveDocument.InlineShapes(1).OLEFormat.Object.SaveAs "C:\workbook1.xlsx"
    Application.ActiveDocument.InlineShapes(1).OLEFormat.Object.Close
    End If
    And since the Word object model doesn't provide API to save the embedded PDF, I would suggest that you get more effective response from PDF support forum to see whether it supports automation. If yes, we can export the PDF as embedded spreadsheet like code
    absolve.
    Hope it is helpful.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to Extract All KM Content?

    Hi experts,
    I would like to seek your advice how I can extract all the KM content in a readable format, outside of any SAP application. The SAP application will be decommissioned, but the requirement is to preserve any discussions and files that have been uploaded by users into KM, for their future reference.
    From my own research, I have only managed to find information on the ICE protocol, which can be used to perform a dump of all the data in KM, and then restored onto another server. However, this does not fit my requirements as content exported using ICE protocol will become XML files, and cannot be consumed in its original form (e.g. as plain text, or PDFs) until restored onto a SAP application server.
    I have provided some screenshots of the data I'm talking about.
    Thank you!
    Best regards,
    Kwong How

    Hi Steffi,
    Thanks for your reply!
    When you say "portal drive", do you mean to access the directories on the portal server drive (perhaps via Putty or FTP to the UNIX server)? Or are you referring to some virtual directory structure within the SAP Portal itself at the application level?
    Could you point me to any resources or screenshots where I can learn more about the creation of network sharing to the KM structure?
    For the discussion contents, I am guessing that they would be stored in some database table at the backend. Would you happen to have any idea what tables are used by KM? I was unable to find any results when searching for the info on Google.
    Thanks so much for your help!
    Best regards,
    Kwong How

  • How to use a Formula Column in the main query?

    Hi All,
    I've tried to use a formula columns defined in some query in the condition of that query like this:
    where (:cf_ex - :cf_ex2) >= 5
    but when I run the report no data returned! Why? and how to use it the condition of the query?
    Note: I'm using Forms 6i

    where (:cf_ex - :cf_ex2) >= 5You cannot do that. Formula columns are not part of the select statement (which runs in the database), but are processed in the report.
    When you created this query, my guess is that you got the message "Note: the query Q1 has created the bind parameter(s) cf_ex, cf_ex2". Check these User Parameters in your data model. So, you are actually referencing user parameters in the query, not formula columns.
    I made a computations and things using PL/SQL that can't be done in the select statement in the data model!If it's pl/sql you can probably use that in your query. Create some database functions for cf_ex and cf_ex2 and use these in your query.

  • Need solution for using Symbol LRT3840 with Apps 10.7 and/or 11i?

    Any suggestions for using Symbol's scanner/terminal with Oracle 10.7 and/or 11i? The symbol unit runs a telnet session (with a 1/4 viewable area). I'm looking for some alternate screen templates and/or a software solution that will allow me to remap the existing full screen forms so all critical information is displayed on the symbol unit in the allowable viewing area. I understand that version 11i of Oracle Apps does not support character-based telnet sessions, so I'm also interested in a fix that will be transparent to my material handlers when we upgrade from 10.7 to 11i. Any help would be greatly appreciated.

    Hi
    We are developing solutions in that area.
    If we can know more of the exisitng solution you have implemented or PDA and how it is integrated with Oracle Application(whether it is a third party tool?)
    then we can discuss about arriving at a solution.
    My mail-id is [email protected]
    Thanks and Regards,
    Bibs

  • Get and hide all child symbols

    I'd like to target all child symbol instances of my mT symbol and hide them.
    Something like this (except this doesn't work):
    childsymbols_d1 = sym.getSymbol("holder").getSymbol("d1").getSymbol("mT").getChildSymbols();
    for(var i=0; i<childsymbols_d1.length; i++){
              childsymbols_d1[i].hide();
    I don't want to use the timeline because I have a lot of child symbols, and would like to do this operation on several other symbols.

    i tried this and it works.
    I grouped the symbols in mT into a div called rect.
    sym.getSymbol("holder").getSymbol("d1").getSymbol("mT").$('rect').children().hide();

  • How to extract all keys (PK, FK) and constraints from the schema?

    hi,
    How to extract all keys (PK, FK) and constraints from the schema?Thanks!

    I have no idea about any tool which only extract the DDL of constraints.
    In oracle 9i or above you can use DBMS_METADATA to extract DDL of a table which also shows contraints defination.
    You can take the tables export without data and use databee tool to extract the DDL.
    www.databee.com

  • Problem to extract data using DS 2LIS_11_VAHDR & 2LIS_11_VAITM

    Hello Experts,
    my requirement is to extract the SD sales Item & sales header data int BI.  while executing the Reports in BI  I find some incosistencies in data
    Ex:  for for some Sales organizations  
          0CRM_NUMDOC = 17 and the corresponding   0NETVALORD = 0,00  
    and for some sales organization
         0CRM_NUMDOC = 0 and the corresponding   0NETVALORD = 5200,00  
    we are using  the data sopurce 2LIS_11_VAHDR to load Document header data  and the data sopurce 2LIS_11_VAITM to get  Item Net value data. and used two trtansformations to the same SAP standard cubes 0CSAL_C05 & 0CSAL_C03.
    asper  my analysis in development system I find 
           VBAK contains  1405 records but the DS 2LIS_11_VAHDR extracts only 1235 records.
    but
           VBAP conains   2665  records and the DS 2LIS_11_VAITM extracts all 2665  records.
    is it creats the problem?
    I deleted the setuptables and again fill them  even thought I have the same problem ?
    If you have any idea regarding this issue please share with me.
    Thanks in advance.
    cheers.............

    HI,
    Check indeed the extraction in your source system with RSA3.
    Also perform the load and check your data in PSA (before any transformation takes place).
    Are you going to use delta or full loading? I assume it's delta? So if you perform your initial load with data, no use of the setup table is required...
    If you have too much data to do this, try an initial load without data, first delta load and next a full repair load (which will read your setup table). Do not forget to fill your setup table with all the historical data you need in transaction SBIW.
    Hope this helps.
    Best Regards,
    Michel Hoefkens

Maybe you are looking for