How do the secret string to the number value

Hello

I want to convert the string to a number value

ex: -.

Select col from t1 where p1 = '232';

the query above returns as a value below

'123,343,534,433';

I have to pass the value in another query where condition as below

Select * from t2 where in p2 (123,343,534,433);

P2 is here the number data type,
and I want to take each coma has a distinct value

Thanks in advance...
Bala

Another way

SQL> select *
  2  from  emp
  3  where INSTR(','||'7900,7902'||',' , ','||empno||',' ) > 0
  4  /

     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
      7900 JAMES      CLERK           7698 03-DEC-81        950                    30
      7902 FORD       ANALYST         7566 03-DEC-81       3000                    20

SS

Tags: Database

Similar Questions

  • How do I know how much the number of materialized view columns

    How do I know how much the number of materialized view columns

    Thank you

    Gopal

    Best to include the owner too if you use all_tab_columns

    Select count (*)

    from all_tab_columns

    where owner = "."

    and table_name = "."

  • How do the box values ring to have figures after the decimal point

    How do the box values ring to have figures after the decimal point

    Thanks in advance

    Control properties editor:

    Change the representation in the floating point data Type tab type, DBL will do.

    Then go to the Page of display Format and increment 'Numbers' to something greater than 1

    That toggles the column of values on the tab change the items to % .6f, or 6 digits of precision. Uncheck sequential following, values and you're there.

    If you think that's too restrictive, go back the display Format, then select if rating and you can type anything (but, the editor has a hissing fit, so you must load chains and property [] with a property node values programmatically)

    I've been struggling to get OR improve this editor of properties of the years!

  • How to convert a string to a number Variable and store the decimal

    Hello!

    Here's my problem!

    I get information from a source that I can't control.  He sends me the number in to form chains.

    Ex: 12,200.49

    I tried usingval() but only get '12' because it stops when she sees a comma or a period.

    I also tried using Replace() to remove the comma and period, but then my increase, because the last two digits are now a part of the number and either behind a decimal point.

    Some examples of code

    < cfset price = "12,200.49" >

    < cfoutput >
    #val (Price) #.
    < cfset price = ' #Replace (Price, ",", "","ALL") # ">

    < BR / >
    #val (Price) #.
    < cfset price = "#Replace(Price,".","","ALL") #" >
    < BR / >
    #val (Price) #.

    < cfset price = #NumberFormat (Price, "_. _") # >
    < BR / >
    FINISHED WITH #Price #.

    < / cfoutput >

    The output of the code above is as follows:

    12
    12200
    1220049
    FINISHED WITH 1220049.00

    So, you can see that 12,200.49 is now 1,220,049.00 because the two numbers when added.

    What I would like to end by is a string '12,200.49' which is now a number like this $12 200,49

    Help, please!

    Hello

    Try this


       
       
    #DollarFormat (price) #.

  • How get the number of items in the ListView inside QML?

    QML/JavaScript newbe question here please.

    Suppose I have .qml

    import bb.cascades 1.0
    
    NavigationPane {
        id: navigationPane
        Page {
    ...
            Container {
    ...
                  ListView {
                        id: listviewPlayers
    ...
    

    and I want to do something if ListView does contain all of the elements

        onCreationCompleted: {
            // this slot is called when declarative scene is created
            if (listviewPlayers.AllItems.count() == 0){
                // do something;
            }
    

    but when I run the present I get complain AllItems is not defined in this line:

     if (listviewPlayers.AllItems.count() == 0){
    

    What I doing wron? I can do the same thing in C++ without any problem.

    Thank you.

    Oh, this thing AllItems seems to be a 'Sentinel' or a magic value used in special cases, unrelated to this.

    I think that ListView manages all this, but defers everything to do with the pieces of data to the model, you don't have to go to the model for the data. ListView knows how VisualNodes (the components list item) he created at the time of the display on the screen, but also have to tell you the total number of elements in the model would simply duplicate work. (The reasoning behind this interpretant.)

  • How get the number of records in a DataGrid?

    I was hoping that it would be easy, but it didn't turn out as well.  I need two things:

    1 - the total number of records returned in an ArrayCollection collection

    2 - the total number of rows in a DataGrid

    Explanation: I have an application that gets data using CF and returns that data to a DataGrid control.  I need to get the total number of records returned.  I then filter or query the data and complete a second DataGrid with a subset of records.  Then, I need to get the number of records in the second DataGrid.

    Can anyone provide a good example of how do these two things?

    Thank you

    Lee

    Dg.dataProvider.length is the number of records in the ArrayCollection collection

    Dg.rowCount is the number of visible lines.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • BlackBerry Smartphones how extend the number of rings before the message store?

    'Help' was told go to: options - work - General settings - expand - number of rings, but I don't even have a working under options section... 9000 "BOLD"

    Hi Welcome to the Forum and rubber boots

    Just ring your service provider and ask them to increase the number of rings up.

    It will be useful,

    David

  • How get the number of pages in PDF document assembled?

    I use ES2.  After assembling a PDF multiple entries using DDX result, I was wondering if it is a good way to check

    the number of pages in the PDF (handset) resulting.  The only way I have found so far is to reuse DDX to get an XML document

    containing information on the text page... and then find the number of pages in the assembled document.  This seems awkward... Please share

    If there is a simple way to determine the number of pages in a PDF document that is assembled.

    Concerning

    It's like I do, using DDX.

  • How to convert a string to a number?

    How to convert a numeric string to a number of TestStand?

    Use Val().

    Example Val (Locals.myString)

  • How can I know the number of columns and lines on excel file

    How reading the number of columns and rows on an excel file after you open the file in excel with ActiveX.

    Using the example of excel200dem, I read that the file data is excellent.

    However, in this example, I just give the number of lines and columns.

    I want to know the number of lines and columns not giving those in C code automatically.

    Who knows this things? -?

    Help me please.

    Hello

    (1) this forum provides a search option, you must use in doing so, you will find this post

    (2) don't solve you your earlier questions? If so, you must mark responses that have helped you find a solution.

  • How to limit the number of posts showing?

    Hi there guys...

    I was wondering - how limiting the number of posts showing on a main summary blog post page?

    I want to show him say 5 recent posts, not 15.

    See you soon,.

    Dave

    {tag_postlist, 5}

    That's how. :-)

  • count the number of lines without using the count function

    Hello
    How count the number of lines without using the count function?

    Thank you

    Assuming that your statistics table are updated:

    select num_rows
    from   all_tables
    where  table_name = 'YOUR_TABLE_NAME_IN_UPPERCASE';  
    

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/statviews_2105.htm#REFRN20286

  • How to set the default value of the component selectOneChoice in the table to the ADF

    Hi all

    I use jdev 11.1.1.6.0 version.

    I used an adf table in which an attribute is selectOnceChoice.

    To create the table and selectOneChoice I used the data control java bean.

    and drag and drop a table and after that I have drag and drop one of the attributes as selectonechoice and linked with the return of the method list as < key, value > pair.

    I want the default value to select only one option in each attribute rows.

    I checked with simillar issue on post next, but not yet resolved.

    
    
    
    

    My jspx code is

    <af:column id="c11"
                                             headerText="Invoice To" >
                                        <af:outputText value="#{row.invoiceTo}" id="ot19"/>
    <af:selectOneChoice value="#{bindings.invoiceTo.inputValue}"
                                                        label="#{bindings.invoiceTo.label}"
                                                        required="#{bindings.invoiceTo.hints.mandatory}"
                                                        shortDesc="#{bindings.invoiceTo.hints.tooltip}"
                                                        id="soc3"
                                                        autoSubmit="true"
                                                        valuePassThru="true">
                                      <f:selectItems value="#{bindings.invoiceTo.items}"
                                                     id="si4"/>
                                    </af:selectOneChoice>
    </af:column>
    
    
    

    where invoiceTo is the table attribute and the invoiceTo attribute is dragged and dropped as a SOC function list Source data mapped data value with the List attribute

    and the display attribute

    Data value = invoiceTo List = lovMasterKey attribute

    Display attribute = lovMasterValue

    that list is maintained at < lovMasterKey, lovMasterValue >

    According to the value of invoiceTo line, it should show as default value is selectOneChoice, but its showing no not as a default value.

    Please, help me how set the default value of selectOneChoice in the table according to each value line invoiceTo.

    Thank you all for the help on this issue.

    Problem has been resolved.

    Reason for this was used

    It is solved using code used for the list built for selectoneChoice more

      List lovMasterList = new ArrayList();
    
    SelectItem siItem = new SelectItem();                      
    
    siItem.setLabel(objAfCmnLovMasterListVO1.getLovMasterValue());
    
    siItem.setValue(objAfCmnLovMasterListVO1.getLovMasterKey());
    
      lovMasterList.add(siItem);
    

    Now, I used the code where the line below. InvoiceTo is the key and row.invoiceToItems are the list of articles for selectOneChoice.

    
    
      
    
    

    Thank you very much...

  • How to get the number of line of a multi-line string

    It seems that this Panel of string does not provide the tool to get the chain line number,

    Does anyone have the same experience?

    so...

    How to get the line number of a variable string?

    Number of lines

  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

Maybe you are looking for

  • Rate of bytes downloads?

    I love to see a real flow and not a countingdown in seconds blue progress bar

  • find the device

    Hi, today my macbook couldn't not connet to my bluetooth headset. I did something stupid and removed the device and thought it will find, and maybe, this time it will connect. But it is not visible more in the bluetooth settings. Is it possible to in

  • Best way to generate signals of activation (square wave) with my 9401 on my 9022?

    Hi, I tried seriously over the past two days to find the best way to do it. I am trying to generate a very precise square wave, controlling the duty cycle and frequency, with the OID on the 9401 in testbed cRIO 9022. I have a VI that is theoretically

  • HP_TOOLS (E) is almost full

    I get notification that the HP_TOOLS (drive E :) is almost full. When I go to check it out, I realize I have two backups here. I got my dad's computer. Backups say 'Rob - HP' and the other 'Alex-HP. The 'Rob - HP", a last change in 2012, and mine was

  • Delete the empty folder on desktop

    When you try to remove the empty folder on desktop, I get: "Unable to find this article. It is no longer in C:\Users\Brock\Desktop. Check the location of the item, and then try again. I was not able to locate the folder anywhere else. HELP PLEASE